How can I export or query all hospitals from Open Street Map and maintain the data in a postgresql-db for further analysis and steps...
'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
update: since i am interested especially in the dataset of healthsites.io i can download it at this page:_ https://healthsites.io/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
update: since i am interested especially in the dataset of healthsites.io i can download it at this page:_ https://healthsites.io/map
- and import all that OSM-data to PostGIS for the purpose of visualization and further analytics. There are a bunch of tools on the market— osm2pgsql; imposm; ogr2org; just to mention some of those. i will do any further steps according this manual: https://www.cybertec-postgresql.com/en/open-street-map-to-postgis-the-basics/