4 ms·
Since I obviously have some OSM developers in the room, can somebody point me to the right place to query against OSM mapping data? That is, if I want to get a
by Pxtl 13y ago
Since I obviously have some OSM developers in the room, can somebody point me to the right place to query against OSM mapping data? That is, if I want to get all one-way streets and stop-lights within my area, how do I do that? I've tried the various tools that send you a subset of the map (they don't seem to work) and the "download the whole OSM map and play with the XML" seems like a good way to choke on the data... Anybody got pointers?
- jfirebaugh 13y agoA query like "one-way streets and stop-lights within my area" is perfect for the Overpass API: http://wiki.openstreetmap.org/wiki/Overpass_API http://wiki.openstreetmap.org/wiki/Overpass_API The best UI for Overpass is http://overpass-turbo.eu/ http://overpass-turbo.eu/
- Firefishy 13y agoOverpass is great: All hospitals in Western Cape of South Africa: http://overpass-turbo.eu/s/on http://overpass-turbo.eu/s/on Else there are more manageable regional extracts of OpenStreetMap XML: http://download.geofabrik.de/ http://download.geofabrik.de/
- revorad 13y agoA friend of mine has recently started a service for providing processed OSM data based on user's requirements for a small fee. Check it out - http://opencagedata.com/ http://opencagedata.com/
- JamesChevalier 13y agoI've been speaking to them a bit about city-specific data, and they've been incredibly helpful & knowledgable.
- olefoo 13y agoIf you're wanting to query the data importing into PostGIS is a fairly straightforward way to do it. And you don't have to download the whole planet in one go.
- bdon 13y ago+1 to this. Metro Extracts: http://metro.teczno.com/ http://metro.teczno.com/ along with osm2pgsql: http://wiki.openstreetmap.org/wiki/Osm2pgsql http://wiki.openstreetmap.org/wiki/Osm2pgsql is the way to go.
- JamesChevalier 13y agoBe aware that those extracts are squares around the cities - they're not exact city border outlines. This means that you can't just use the data without concern for whether the things you're gathering are actually within the city or not. I haven't found a very simple way to get everything within exact city borders, yet. This is the process I've been going with so far: https://github.com/JamesChevalier/cities#cities https://github.com/JamesChevalier/cities#cities
- olefoo 13y agoThat is a very useful resource; thank you. Some cities make shapefiles available for urban growth boundaries and city limits. It's worth enquiring. But be aware that some cities city limits are not simple polygons; depending on local ordinances you can see islands, internal voids and peninsulas attached with zero width stems.
- JamesChevalier 13y agoTrue! Like Houston, TX ... which looks a little like the flying spaghetti monster ... http://nominatim.openstreetmap.org/details.php?place_id=3675649666 http://nominatim.openstreetmap.org/details.php?place_id=3675... The poly files that you get from the process outlined in the readme file will include islands/voids. It's pretty cool.
- rmc 13y agoWell remember OSM is an international project, so trying to find one definition of "city" and "border of a city" is hard. Some places (like USA) seem to use "city" as a hard solid thing, other places (eg UK / ireland) don't.
- RyanMcGreal 13y agoWhy am I not surprised that you're interested in seeing data on one-way streets in your area? :) I've been meaning to dig more deeply into OSM for a while now, and this may be the kick I need to do it.