gps - OpenStreetMap Nominatim 模式 : neighborhood, 郊区、城市、州区等

标签 gps maps openstreetmap nominatim

我正在试用 OpenStreetMap Nominatim反向地理编码器 RESTFul API。

API 返回的地址模式是否有明确的解释?某些位置在“addressparts” block 中具有不同的属性。

例如,对于 Seattle , Nominatim包括“suburb”和“city”属性。

<reversegeocode timestamp="Tue, 19 Nov 13 01:48:51 +0000" attribution="Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright" querystring="format=xml&lat=47.60647&lon=-122.32644&zoom=18&addressdetails=1">
  <result place_id="3681763473" osm_type="node" osm_id="2159323135" lat="47.6065166" lon="-122.3262919">
725, 9th Avenue, First Hill, Seattle, King, Washington, 98104, United States of America
</result>
  <addressparts>
    <house_number>725</house_number>
    <road>9th Avenue</road>
    <suburb>First Hill</suburb>
    <city>Seattle</city>
    <county>King</county>
    <state>Washington</state>
    <postcode>98104</postcode>
    <country>United States of America</country>
    <country_code>us</country_code>
  </addressparts>
</reversegeocode>

但是,对于 New York City ,它返回“neighborhood”和“state_district”属性。

<reversegeocode timestamp="Tue, 19 Nov 13 01:50:16 +0000" attribution="Data © OpenStreetMap contributors, ODbL 1.0. http://www.openstreetmap.org/copyright" querystring="format=xml&lat=40.71812&lon=-73.98298&zoom=18&addressdetails=1">
  <result place_id="5989088711" osm_type="node" osm_id="2273010097" ref="N.Y. Grill & Deli" lat="40.7184546" lon="-73.9828337">
N.Y. Grill & Deli, 208, Rivington Street, Lower East Side, New York City, New York, 10002, United States of America
</result>
  <addressparts>
    <address29>N.Y. Grill & Deli</address29>
    <house_number>208</house_number>
    <road>Rivington Street</road>
    <neighbourhood>Lower East Side</neighbourhood>
    <state_district>New York City</state_district>
    <county>New York</county>
    <state>New York</state>
    <postcode>10002</postcode>
    <country>United States of America</country>
    <country_code>us</country_code>
  </addressparts>
</reversegeocode>

最佳答案

据我所知,目前除了 Nominatim wiki page and subpages 之外没有太多的文档。和源代码。但是这些类别是在 boundary=administration 上找到的 admin_level 键的帮助下生成的。关系并通过placeaddr标签。每个 wiki 页面都包含一些关于相应键的可能值的信息。

关于gps - OpenStreetMap Nominatim 模式 : neighborhood, 郊区、城市、州区等,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20061746/

相关文章:

PHP exif_read_data 不再提取 GPS 位置

android - 权限 ACCESS_MOCK_LOCATION 被忽略?

javascript - leaflet.js 缩放到单击的功能,然后向右平移

ios - MapKit 定义所需的搜索结果类型(国家、城市、地区等)

java - 通过java在snappy数据中插入json对象时出现错误

javascript - 多条折线路线上的 Leaflet Loop Snake 功能

api - Google Maps、Bing Maps、OpenStreetMaps 和 MapQuest 限制

ios - objective-c MKMapView 以用户位置为中心

web-services - 获取 GPS 坐标的 Web 服务

qt - 在 QML 中使用离线交互式 map