How can I export or query all hospitals from Open Street Map?
by rincon from LinuxQuestions.org on (#56GDX)
dear linux experts,
How can I export or query all hospitals from Open Street Map?
'd like to extract all the hospital locations in the from Open Street Map as a reference for my ,little geocoding project.
I know how to get all the OSM data for a small area with the QGIS plugin but not sure how to query a larger area eg for the whole planet-file?
some ideas:
1) The read-only Overpass API. I don't know that it'll work for the whole planet-file in one pass, but maybe if we extend the time out enough?
For a smaller area and with the benefit of a (minimal) UI, we can access Overpass via the XAPI Query Builder. There, we can put amenity=hospital in the tag search, select our area, and go.
2) Geofabrik downloads, filtered with Osmosis, as described in How to extract partial data for large regions? on the OpenStreetMap Help.
3.what about using healthsites.io: regarding healthsites this is the most important link: https://healthsites.io/api/docs
can i use healthsites.io for my project!?
what is aimed: i want to maintain the dataset in a pustgresql-db


How can I export or query all hospitals from Open Street Map?
'd like to extract all the hospital locations in the from Open Street Map as a reference for my ,little geocoding project.
I know how to get all the OSM data for a small area with the QGIS plugin but not sure how to query a larger area eg for the whole planet-file?
some ideas:
1) The read-only Overpass API. I don't know that it'll work for the whole planet-file in one pass, but maybe if we extend the time out enough?
For a smaller area and with the benefit of a (minimal) UI, we can access Overpass via the XAPI Query Builder. There, we can put amenity=hospital in the tag search, select our area, and go.
2) Geofabrik downloads, filtered with Osmosis, as described in How to extract partial data for large regions? on the OpenStreetMap Help.
3.what about using healthsites.io: regarding healthsites this is the most important link: https://healthsites.io/api/docs
can i use healthsites.io for my project!?
what is aimed: i want to maintain the dataset in a pustgresql-db