From ae02981234af209959aa7e0d8806f2fd8581d55c Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 7 May 2016 14:14:48 +0200 Subject: [PATCH] Fix: Add a bit more space around bbox This is required if for example only one hydrant is queried --- main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index d4ecca2..bebbdf9 100644 --- a/main.go +++ b/main.go @@ -239,7 +239,8 @@ func main() { } } - mapData, err := osmClient.RetrieveMapObjects(minLon, minLat, maxLon, maxLat) + border := 0.00009 // Equals ~10m using haversine formula + mapData, err := osmClient.RetrieveMapObjects(minLon-border, minLat-border, maxLon+border, maxLat+border) if err != nil { log.Fatalf("Unable to get map data: %s", err) }