This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Get amenities inside a range

0

I am trying to extract all the amenities inside a bounding box for different segments, I don't want to download them from the server every single time. Instead, I just want to download a general area and then if you select a specific street or segment show all the amenities in it.

I'm trying to build a python program where you specify two nodes (coordinates) and print out the amenities in that route.

Could you help please?

asked 19 Jul '17, 00:47

Sandra%20Garcia%20L's gravatar image

Sandra Garcia L
11112
accept rate: 0%


One Answer:

0

There are naturally many ways to achieve what you want, but a typical approach would be to import the POIs (extracted from a OSM planet dump) in a suitable format in to a database. You could either add a street reference to the POI before import, or use a geo-spatially enabled database (for example postgres with postgis) to on the fly determine which POIs to show based on their location.

answered 19 Jul '17, 11:19

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701
accept rate: 18%

Source code available on GitHub .