som
som

Reputation: 4656

How can I find road speed limit in open street map

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.

Upvotes: 1

Views: 3003

Answers (1)

scai
scai

Reputation: 21469

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

Upvotes: 1

Related Questions