1
0
Fork 0
mirror of https://github.com/Luzifer/gpxhydrant.git synced 2024-12-22 12:11:17 +00:00

Fix: Used wrong boundary variables

This commit is contained in:
Knut Ahlers 2016-05-07 20:22:10 +02:00
parent 1ccadb128b
commit 3c16c628d1
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -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)
}