问题
I am looking for a way to draw a route path on openstreetmap
in my android app.
I only have the start and end points, however do not want just a straight line.
Any ideas on how I could do this?
回答1:
For obtaining a route you can use one of the various online routers for OSM. Many of them offer a GPX export of the calculated route which you then can display in your application.
回答2:
Have you looked at the Open Street Map wiki, including the Traveling Salesman example: http://wiki.openstreetmap.org/wiki/Traveling_salesman
来源:https://stackoverflow.com/questions/28528810/android-draw-route-on-openstreetmap