I use http://api.openstreetmap.org/api/0.6/map?bbox=-118.28183448540011,34.02306804799843,-118.28091502587874,34.023833568382074 to ask for buildings or streets within the area that I provide. But I get nothing if my area do not contain Nodes coordinates which make of way(building or polygon). While, my area is within the way. How can I handle with it. asked 01 Jul '13, 21:25 dong han6 aseerel4c26 ♦ |
The map call on the main API searches for nodes within the bounding box only and not for intersecting way segments. You can use Overpass API instead, for example via Overpass Turbo:
This finds all ways that intersect the given bounding box. For more details, please read about some map call variants in the Overpass API documentation. answered 02 Jul '13, 08:47 Roland Olbricht |