mirror of
https://github.com/Luzifer/gpxhydrant.git
synced 2024-12-22 20:21:17 +00:00
Fix: Used wrong boundary variables
This commit is contained in:
parent
1ccadb128b
commit
3c16c628d1
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -136,7 +136,7 @@ func createChangeset(osmClient *osm.Client) *osm.Changeset {
|
|||
|
||||
func getHydrantsFromOSM(osmClient *osm.Client, bds bounds) []*hydrant {
|
||||
border := 0.0009 // Equals ~100m using haversine formula
|
||||
mapData, err := osmClient.RetrieveMapObjects(bds.MaxLon, bds.MinLat-border, bds.MaxLon+border, bds.MaxLat+border)
|
||||
mapData, err := osmClient.RetrieveMapObjects(bds.MinLon-border, bds.MinLat-border, bds.MaxLon+border, bds.MaxLat+border)
|
||||
if err != nil {
|
||||
log.Fatalf("Unable to get map data: %s", err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue