Android draw route on openstreetmap [closed]

2019-05-06 20:02发布

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?

2条回答
手持菜刀,她持情操
2楼-- · 2019-05-06 20:29

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.

查看更多
家丑人穷心不美
3楼-- · 2019-05-06 20:31

Have you looked at the Open Street Map wiki, including the Traveling Salesman example: http://wiki.openstreetmap.org/wiki/Traveling_salesman

查看更多
登录 后发表回答