Hello, Here is what i'm trying to achieve: I have a lot of GPS coordinates (long/lat) that represents an itinerary. I would like to be able to evaluate the types of road (highway tag of a way) for all these locations to be able to have statistics like this. Your Itinerary : - 40% Secondary - 30% Track - 30% Residential What i tried : I tried to use the Overpass Turbo to get the ways around my gps coordonates with this kind of script
I do get some results, like that :
But i don't retrieve a result for each gps coordinate so i cannot do statistics on that... I am not sure if my approach is good. Any advice/ solution? Thanks for reading. Cheers. asked 09 Mar '18, 09:44 Hydeo |
What you want to do is called "track matching". It requires a routing engine. The routing engine will compute the most likely, valid path through the OSM street network that corresponds to your GPS track. Then, once you know exactly which roads have (likely) been traveled, you can compute your statistics. Many existing routing engines offer track matching (e.g. Graphhopper, OSRM), but I don't know off the top of my head whether their results will contain all the road type information you want, or whether you'll need to modify the software. answered 09 Mar '18, 10:12 Frederik Ramm ♦ |