谷歌地图路线在 iPhone 上绘制 [英] Google Map Route Draw on IPhone

查看:38
本文介绍了谷歌地图路线在 iPhone 上绘制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个有两个版本的应用程序.一个用于网络,另一个用于 iPhone.

I am developing an application that has two versions. One for web and another for iPhone.

在网络应用程序中,我可以在道路上绘制路线(自动绘制遵循道路/高速公路的路线)和越野路线(在两个特定点之间绘制直线).

In the web app, I am able to draw a route on the road (drawing the route automatically that follows roads/highways) and off road (draw direct line between two specific points).

是否有适用于 iPhone 的 API 可用于在地图上绘制路线?我可以在两个节点之间的地图上绘制一条直线,但我无法在 iPhone 中绘制路线图路线.

Is there an API, for iPhone, that can be used to draw a route on the map? I am able to draw a straight line on the map between two nodes, but i am not able to draw a road map route in iPhone.

我正在使用 iPhone 3.0 和 SDK 3.0

I am using iPhone 3.0 and SDK 3.0

谢谢.

推荐答案

也许你想看看 Craig Spitzkoff 的 MapLinesAndAnnotations 他最近写的示例:

Maybe you want to take a look at Craig Spitzkoff's MapLinesAndAnnotations sample that he recently wrote:

  1. 在 MKMapView 上绘制折线或路线(在 iPhone 上使用 Map Kit)李>
  2. 使用 MKAnnotation、MKPinAnnotationView 并在 MKMapView 中创建自定义 MKAnnotationView

这篇关于谷歌地图路线在 iPhone 上绘制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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