问题
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