You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on simulations and got stuck on while extracting data from OSM using overpy.Overpass API, I had a GPS data in the form of GPX format which includes the track, lat, long, alt, speed, time.
I am able to download the data from overpass API but the data is too large, I need the exact road node on which the car travel.
I also plotted the track on OSM and all the nodes are on road but I need the road nodes.
Please have a look towards the code, GPX file and help me in this situation.
CODE:
api = overpy.Overpass()
#(minimum lat, minimum long, maximum lat, maximum long)
result = api.query("""
way(40.725968457, -73.973420095, 40.730816424, -73.971729884)[highway~"."][highway!~"path|track|cycleway|footway"];
(._;>;);
out geom;
""")
Hi guys,
I am working on simulations and got stuck on while extracting data from OSM using overpy.Overpass API, I had a GPS data in the form of GPX format which includes the track, lat, long, alt, speed, time.
I am able to download the data from overpass API but the data is too large, I need the exact road node on which the car travel.
I also plotted the track on OSM and all the nodes are on road but I need the road nodes.
Please have a look towards the code, GPX file and help me in this situation.
CODE:
Gpx data:
Just need the road geometry of the road highlighted with pink line.
The text was updated successfully, but these errors were encountered: