Android在OpenStreetMap上绘制路线 [英] Android draw route on openstreetmap
本文介绍了Android在OpenStreetMap上绘制路线的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在寻找一种在我的android应用中的openstreetmap
上绘制路线的方法.
我只有起点和终点,但是不希望只有一条直线.
关于如何执行此操作的任何想法?
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?
推荐答案
要获取路线,您可以使用各种用于OSM的在线路由器.他们中的许多人提供了计算出的路线的GPX导出,然后您可以在应用程序中显示它们.
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.
这篇关于Android在OpenStreetMap上绘制路线的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文