How can I find road speed limit in open street map

北城以北 提交于 2019-12-23 03:28:14

问题


How can I find road speed limit in open street map? I am using open street map OverPass API . I have used following query to find bus stop.

<query type="node">
  <has-kv k="highway" v="bus_stop"/>
  <has-kv k="name" v="Lichtscheid"/>
</query>
<query type="node">
  <around radius="1000"/>
  <has-kv k="highway" v="bus_stop"/>
</query>
<print/> 

But I need road Speed Limit.


回答1:


Elements in OpenStreetMap are described by tags. For speed limits the maxspeed tag is used as already noted in tyr's comment. So you have to query for ways with the maxspeed tag.

Example Overpass XML query:

<osm-script output="json">
  <union>
    <query type="way">
      <has-kv k="maxspeed"/>
      <bbox-query {{bbox}}/>
    </query>
  </union>
  <print mode="body"/>
  <recurse type="down"/>
  <print mode="skeleton"/>
</osm-script>

Result



来源:https://stackoverflow.com/questions/18311721/how-can-i-find-road-speed-limit-in-open-street-map

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!