1

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.

3

1 Answer 1

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

4
  • Can you give me an example?
    – som
    Commented Aug 20, 2013 at 6:11
  • Let me try and let you know.
    – som
    Commented Aug 20, 2013 at 6:36
  • There is no http request for this ? Is it possible to put all this in a url as query parameter?
    – devdoe
    Commented Jun 8, 2015 at 12:40
  • Sure there is. Look at the export button or read about Overpass API which is used as backend.
    – scai
    Commented Jun 8, 2015 at 13:51

Not the answer you're looking for? Browse other questions tagged or ask your own question.