overpass

package
v0.0.0-...-244c41e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bounds

type Bounds struct {
	LatMin  float64 `json:"latMin"`  // between -90 (south pole) and +90 (north pole)
	LatMax  float64 `json:"latMax"`  // between -90 (south pole) and +90 (north pole)
	LongMin float64 `json:"longMin"` // between -180 and +180
	LongMax float64 `json:"longMax"` // between -180 and +
}

type GeographicMapElement

type GeographicMapElement struct {
	Tags struct {
		Name  string `json:"name"`
		Place string `json:"place"`
		IsIn  string `json:"isIn"`
	} `json:"tags"`
}

type OverpassNearbyCityDataFetcher

type OverpassNearbyCityDataFetcher struct {
	Timeout time.Duration
	Sema    *semaphore.Semaphore
}

func NewOverpassNearbyCityDataFetcher

func NewOverpassNearbyCityDataFetcher(timeout time.Duration, maxConcurrentConnections uint) *OverpassNearbyCityDataFetcher

func (*OverpassNearbyCityDataFetcher) Fetch

func (fetcher *OverpassNearbyCityDataFetcher) Fetch(bounds Bounds) ([]*GeographicMapElement, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL