问题描述
我一直在寻找如何使用iOS中的Google Places API 绘制两点之间的路线,但我没有找到有趣的地方。您可以在两点之间绘制路线的唯一方法是调用Web服务并将JSON解析到您的应用中,以在两点之间路由路线。
为参考。
问题:
是否有任何示例代码可以帮助我绘制两点之间的路线:原点(基于用户当前位置)和目的地。
您可以获得开发者指南供参考。您可以查看 youtube教程获取指导。
希望这会有所帮助。干杯:)
I've been searching for how to draw a route between two points using Google Places API in iOS, but I have not found something interesting. The only way you can draw route between two points is to call web services and to parse JSON into your app, to route a route between two points.Here is a reference.
The question :
Is there any sample code that can help me on how I can draw route between two points, an origin(based on user current location), and a destination.
You can get this tutorial of a google developer for reference. And you can check this youtube tutorial for guidance.
Hope this helps. Cheers :)
这篇关于iOS,如何使用Google Places Api在两点之间显示路线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!