Hi everyone I am a beginer with OSM dev I am currently working with different technologies for searching and showing OSM data in by search POI types . Like Google map , we have : https://maps.googleapis.com/maps/api/place/nearbysearch/json? and then put parameter to this URL so we can get a JSON Array with location data in types and nearby a location Does anyone know if there exists something ? and any one have idead to help me Sorry about my English . I am not good at english. Thank you very much. asked 21 May '13, 03:58 TuanDM |
The Overpass API supports an around keyword (see Overpass Turbo for a visualization of the example) and of course instead of a place you can also specify a bounding box. Various output formats are supported. Example:
This query returns all bank and restaurant within a distance of 150 meter around any node with the name Leipzig. Or another query using a bounding box instead of an object:
answered 21 May '13, 06:26 scai ♦ 1
First, thank for your answer.It's very helpful to me . One more question.How about Search with exactly lat and long , not an exactly node's name. Thanks
(21 May '13, 10:21)
TuanDM
1
You can also specify a bounding box as already explained. I updated my answer with a bbox example.
(21 May '13, 12:33)
scai ♦
1
Might want to add ways to that query. If the buildings are mapped then, as I understand it, the POI (restaurant, bank, etc.) may (should) be tagged on the way instead of on a node.
(21 May '13, 17:04)
n76
|