Open Streetmap Amenity Dataset
BRIDGES provides easy access to Open Street Map (OSM) Amenity data. Amenities are essential points of interest and other buildings/locations that might be of importance. This can be restraunts, schools, hosptials, etc... This can be very useful in graph algorithms and graph based applications (Bacon Number, Dijkstra's algorithms, MST, etc.). We have the capability to specify city names or bounding box of locations to retrieve the map data.
Possible filtering values include:
- food
- school
- firestation
- hospital
- airport
- heli
A list of avaliable cities can be found at Bridges OSM Cities
When using a bounding box for your input slection put the coordinates in the order of minLat, minLon, maxLat, maxLon or (SWNE).
Suggested Examples:
data_source.get_amenity_data("New York, New York", "food")
data_source.get_amenity_data("Los Angeles, California", "school")
data_source.get_amenity_data("Chicago, Illinois", "firestation")
See also
This tutorial gives an introduction to the usage of OSM Amenity Data. You can find the complete documentation of the features in the Doxygen documentation of the following classes and functions:
-
(links broken)
- AmenityData [Java] [C++] [Python]
- Amenities [Java] [C++] [Python]
- getAmenityData() [Java] [C++] [Python]
Accessing Open Street Map Amenity Data: An Example BRIDGES program
The program snippet below illustrates how to obtain map data of the UNC Charlotte.
- Copy/paste the code into your environment and compile.
- Assuming all your code is correct and it compiles correctly, the code will print a record of the the number of vertices and the location of the first vertex for this dataset.