如何从开放街道地图导出或查询所有医院?


10

我想从Open Street Map中提取美国的所有医院位置,以作为我的地理编码项目的参考。我知道如何使用QGIS插件获取小区域的所有OSM数据,但不确定如何查询更大的区域?

Answers:


6

还有两个想法:

1)只读的Overpass API。我不知道一次就能在整个美国使用,但是也许您可以延长时间...?对于较小的区域(最大.5度),并且受益于(最小)UI,您可以通过XAPI查询生成器访问“ 立交”。在那里,您可以在标签搜索中输入amenity = hospital,选择您的区域,然后继续。

2)如如何提取大区域的部分数据中所述,使用渗透压过滤的Geofabrik下载在OpenStreetMap帮助中。


XAPI查询生成器不限于最大0.5度。但是它的“实时查询”模式是。例如,单击“ Overpass API”链接,它将正常工作。
FredB 2013年

3

Nominatim可以做到这一点,但在大规模上,下载USA摘录并使用自己的摘录会更有效。

命名示例:

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

返回值:

[

    {
        "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"
        }

对于xml用xml替换json

资料来源:http : //wiki.openstreetmap.org/wiki/Nominatim

您最好在这里提问:https : //help.openstreetmap.org/


1

该网站可以为您提供正确的信息;http://osm2shp.ru/它可能是过时的(2016),但它会给你用所有的医院amenity_pnt和使用所有救护站emergency_pnt。然后,您可以将其导入QGIS并进行过滤。


By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.