Trying to retrieve road speed limit from drivers current location

℡╲_俬逩灬. 提交于 2019-12-11 15:48:54

问题


I am trying to retrieve current speed limit of a given road location data is passed to the Open Street Maps api every 2-3 seconds as the vehicle is in motion.

I have tried the code below using [around] however it only outputs results when the radius is at least 2500 metres

i am seeking to have a an area that is closer to 10 meters to determine the current speed limit of the vehicles location.

If there is an alternative endpoint to achieve the above so that is more robust and responsive please advise

i am basically wanting to replicate what i see on navigation apps where the speed limit value updates within 1-2 seconds of a vehicle passing a new speed sign of value different to the previous speed zone being driven in

I would appreciate any assistance to resolve this issue.

https://lz4.overpass-api.de/api/interpreter? data=[out:json];nodemaxspeed;out%20meta;

来源:https://stackoverflow.com/questions/56095855/trying-to-retrieve-road-speed-limit-from-drivers-current-location

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