Android draw route on openstreetmap [closed]

 ̄綄美尐妖づ 提交于 2019-12-07 07:54:56

问题


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

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