Popular routing engines like GraphHopper an OSRM offer this feature, but as you have already seen, when you use the standard routing profiles they will refuse to route over roads that are not allowed for cars. Use a "track matching" software that finds the most likely route travelled by a vehicle when you have a GPS track as input.The disadvantage is that it does not take the road network into account at all, so if you have some recording errors or missing points, your track will not follow the road nicely. The advantage is that this shows exactly the path you have recorded. This can be done with standalone programs like those mentioned by Gys de Jongh or with QGIS, and alternatively with online services like UMap. Simply draw your GPX track onto a map.I also know that OSM has bus routes, but they contain partially old or wrong data so I can't use it. Or maybe there is a way to force such Directions services to draw what I want. try to get a polyline of a part of the road by GPS coordinate and then glue these polylines together to get the whole route. I believe that OSM has stored roads as a data. I will upload picture to the post to show what I want. Instead, they try to navigate around such roads. To achieve this, I tried several Directions API services like mapbox or graphhopper, but they don't always draw a route correctly, because some roads are not accessible by car. Finally, I would like to have an encoded polyline of the route so that later I could use this polyline to show the route on a map. Now I want to use these coordinates to draw a bus route. What I have is GPS coordinates of a bus that traveled along its route. "Are you trying to add a bus route to OSM and then create a map from that data that shows the route?" - yes.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |