Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pandana.loaders import osm
- # request them from the OpenStreetMap API (Overpass)
- pois = osm.node_query(lat_min, lng_min, lat_max, lng_max)
- network = osm.pdna_network_from_bbox(lat_min, lng_min, lat_max, lng_max)
- # define your selected amenities and bounding box
- amenities = ['hospital', 'school']
- amenity = 'school'
- pois = pois[pois['amenity'].isin(amenities)]
- #List how many we downloaded
- pois[['amenity', 'name', 'lat', 'lon']].head()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement