How would I best obtain all the schools (amenity=school) in the OSM database? This question asks how to do it for a specific location: https://help.openstreetmap.org/questions/11004/download-a-map-and-extract-position-from-places-like-schools-hospitals-etc And the answer is the use the Overpass API or XAPI. In my case, I want all the schools. The following is a question along those lines: https://help.openstreetmap.org/questions/13827/download-amenities However it dates back to 2012, and the most upvoted answer recommends to download a full planet dump (tens to hundreds of gigs) and retrieve what you want using a tool like Osmosis or OSMFilter. Is there a better way? asked 05 Sep '18, 16:57 mitchus |
If you need all the school data (~1 million of uses around the world), downloading planet file in PBF, which is only ~40 GB (not hundreds), and filtering them is the best option. Overpass has limits and might slow down your browser with such amount of data. answered 05 Sep '18, 18:08 kocio 3
After having downloaded the planet file, you could now use the Osmium command line tool (which wasn't available in 2012) to filter out the schools you are interested in. You have a big request and you need to be prepared to put a little bit of work in - OSM gives you all the data for free but it can't afford to give you the processing for free too.
(05 Sep '18, 20:01)
Frederik Ramm ♦
2
See the examples in documentation: https://osmcode.org/osmium-tool/manual.html#filtering-by-tags
(05 Sep '18, 23:26)
kocio
2
Note that you can use curl or wget whatever to retrieve a result from Overpass-API. Then the server limitations are likely to be the only issue. Still, for global results Overpass-API is unlikely to be the right approach.
(06 Sep '18, 01:08)
maxerickson
|