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

Fix: Increased border as default matching range are 20m

This commit is contained in:
Knut Ahlers 2016-05-07 14:16:01 +02:00
parent 0de60d94a7
commit 8a18e2454b
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -243,7 +243,7 @@ func main() {
log.Printf("Working on Changeset %d", cs.ID) log.Printf("Working on Changeset %d", cs.ID)
} }
border := 0.00009 // Equals ~10m using haversine formula border := 0.0009 // Equals ~100m using haversine formula
mapData, err := osmClient.RetrieveMapObjects(minLon-border, minLat-border, maxLon+border, maxLat+border) mapData, err := osmClient.RetrieveMapObjects(minLon-border, minLat-border, maxLon+border, maxLat+border)
if err != nil { if err != nil {
log.Fatalf("Unable to get map data: %s", err) log.Fatalf("Unable to get map data: %s", err)