iOS,如何使用Google Places Api在两点之间显示路线? [英] iOS, how to display route between two points using Google Places Api?

查看:237
本文介绍了iOS,如何使用Google Places Api在两点之间显示路线?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找如何使用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在两点之间显示路线?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆