This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Get speed limit of only one road ?

0

I search and found query of overpass-api to get speed limit of roads but it get by bounding box. I want to get speed limit of only one road by latitude and longitude of road. How can i do that ?

asked 01 Apr '15, 02:40

KimNamCham's gravatar image

KimNamCham
11113
accept rate: 0%

edited 01 Apr '15, 02:41


2 Answers:

1

Have a closer look at the overpass-api parameter "around" ... maybe at Overpass_API/Overpass_QL

BUT: How will you differentiate when there are other ways around your position that hou have lat lon from?

And: what is the source of your lat/lon?

Is it sure that each coordinate is a single node wich is an element of a certain way?

Or is your lat/lon only "near" any posible street?

answered 01 Apr '15, 17:13

stephan75's gravatar image

stephan75
12.6k556210
accept rate: 6%

edited 01 Apr '15, 17:13

0

My problem is when get information by boundingbox, the information of 1 road is repeated like speedlimits or oneway - when repeated, oneway information of road has different. So, i want to get information of road by 1 latitude and 1 longtidue, example when you click 1 point in map view, you can get information of this road. And i scare when boudingbox is to large, data get so slowly such as query on mobile.

answered 01 Apr '15, 18:14

KimNamCham's gravatar image

KimNamCham
11113
accept rate: 0%

edited 01 Apr '15, 18:18

This should have been a comment instead of an answer. But OSQA just throws an error when trying to convert it to a comment :\

(02 Apr '15, 20:31) scai ♦

Source code available on GitHub .