11

I'd like to extract all the hospital locations in the US from Open Street Map as a reference for my 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?

7

Two more ideas:

1) The read-only Overpass API. I don't know that it'll work for the whole US in one pass, but maybe if you extend the time out enough...? For a smaller area (.5 degree max) and with the benefit of a (minimal) UI, you can access Overpass via the XAPI Query Builder. There, you can put amenity=hospital in the tag search, select your area, and go.

2) Geofabrik downloads, filtered with Osmosis, as described in How to extract partial data for large regions? on the OpenStreetMap Help.

| improve this answer | |
  • The XAPI Query Builder is not limited to .5 degree max. But its "live query" mode is. Click on the "Overpass API" link for example and it will work fine. – FredB Jun 5 '13 at 16:26
3

Nominatim can do this but on a large scale it would be more efficient to download the USA extracts and use your own.

Nominatim Example:

http://nominatim.openstreetmap.org/search?q=usa[hospitals]&format=json&polygon=0&addressdetails=1

Returns:

[

    {
        "place_id": "640932",
        "licence": "Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright",
        "osm_type": "node",
        "osm_id": "257489577",
        "boundingbox": [
            "42.3371238708496",
            "42.3371276855469",
            "-71.1060409545898",
            "-71.1060333251953"
        ],
        "lat": "42.3371263",
        "lon": "-71.1060391",
        "display_name": "Children's Hospital, Blackfan Street, Fenway, Boston, Suffolk County, Massachusetts, 02215, United States of America",
        "class": "amenity",
        "type": "hospital",
        "importance": 0.44314331355821,
        "icon": "http://nominatim.openstreetmap.org/images/mapicons/health_hospital.p.20.png",
        "address": {
            "hospital": "Children's Hospital",
            "road": "Blackfan Street",
            "suburb": "Fenway",
            "city": "Boston",
            "county": "Suffolk County",
            "state": "Massachusetts",
            "postcode": "02215",
            "country": "United States of America",
            "country_code": "us"
        }

for xml replace json with xml

Source: http://wiki.openstreetmap.org/wiki/Nominatim

You might be better off asking here: https://help.openstreetmap.org/

| improve this answer | |
2

This website can give you the correct info; http://osm2shp.ru/ it might be outdated (2016), but it will give you all the hospitals using amenity_pnt and all the ambulance stations using emergency_pnt. You can then import it into QGIS and filter it.

| improve this answer | |
0

just check out the project healthsites.io

Healthsites.io

https://healthsites.io/api/docs/

https://github.com/healthsites/healthsites/wiki To build a curated, open data commons of health facility data with OpenStreetMap

Supporting objectives

Our objective is to publish accessible health sites data to OpenStreetMap that is accurate and complete Accessible data People must be able to access accurate health care information in their area through a spatial lookup Healthsites.io must be interoperable with other systems The data is available from a link on the web site The data is available under an open license (ODBL) The data is available for download in accessible formats like .csv, shp, kml etc. The data is available through an API healthsites.io uses the OpenStreetMap data infrastructure to store the data

| improve this answer | |
-1

Have you look at the CloudMade Downloads website? They provide data in various formats for specific regions. This may have your required data?

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.