Google Maps algorithm

后端 未结 2 1895
时光说笑
时光说笑 2021-02-09 21:43

how can I implement algorithms such as Dijkstra or backtracking on Google Maps integrated in Android ? For example I want to compute a route from city A to city B such that I pa

相关标签:
2条回答
  • 2021-02-09 22:31

    Check this post. It has the Route finding Example. Google removes the Route finding api. But we have develop the code for the draw the route using Overlay. this is what done on that working example.

    0 讨论(0)
  • 2021-02-09 22:31

    Since Google Maps doesn't provide access to the actual road data, I don't think it is possible to implement your own routing algorithm.

    You could use road data from another source such as http://openstreetmap.org .

    0 讨论(0)
提交回复
热议问题