iPhone上的原生Google地图应用程序支持哪些KML字段?

时间:2021-09-30 09:25:04

I have been doing some research on using maps in iPhone applications and it looks like most of my needs can be met passing KML data into the built-in google maps application, but I cannot seem to set the same values (phone, home page, address) that are available when performing a built-in search in the maps application. Does anyone know if there is any way to set those values, or what fields are available?

我一直在研究在iPhone应用程序中使用地图,看起来我的大多数需求都可以通过KML数据传递到内置的谷歌地图应用程序中,但我似乎无法设置相同的值(电话,主页,在地图应用程序中执行内置搜索时可用的地址)。有谁知道是否有任何方法可以设置这些值,或者哪些字段可用?

UPDATE: With the advent of the 3.0 OS and the Map API, applications no longer need to pass control to the built-in map application, so this question is no longer relevant.

更新:随着3.0操作系统和Map API的出现,应用程序不再需要将控制权传递给内置地图应用程序,因此这个问题已不再适用。

3 个解决方案

#1


KML is not officially supported by Apple as of now. It's specified in the URL schemes documentation. Any URL in the ?q= parameter will be ignored.

截至目前,Apple尚未正式支持KML。它在URL方案文档中指定。 ?q =参数中的任何URL都将被忽略。

#2


There are few options available for iPhone developers planning to use Google Maps in their software. I've seen sample code and implementations of WebKit that translates gestures to Google Maps loaded inside it, but performance is dismal at best. Doing a static map without a lot of zooming or scrolling is pretty much the only performance-preserving option until a native API is available.

对于计划在其软件中使用Google地图的iPhone开发人员,可用的选项很少。我已经看到了WebKit的示例代码和实现,它将手势转换为加载到其中的Google Maps,但性能最好是令人沮丧的。在没有大量缩放或滚动的情况下执行静态映射几乎是唯一的性能保留选项,直到本机API可用。

#3


Take a look at Developing Virtual Earth iPhone Applications with Objective-C

看看使用Objective-C开发Virtual Earth iPhone应用程序

#1


KML is not officially supported by Apple as of now. It's specified in the URL schemes documentation. Any URL in the ?q= parameter will be ignored.

截至目前,Apple尚未正式支持KML。它在URL方案文档中指定。 ?q =参数中的任何URL都将被忽略。

#2


There are few options available for iPhone developers planning to use Google Maps in their software. I've seen sample code and implementations of WebKit that translates gestures to Google Maps loaded inside it, but performance is dismal at best. Doing a static map without a lot of zooming or scrolling is pretty much the only performance-preserving option until a native API is available.

对于计划在其软件中使用Google地图的iPhone开发人员,可用的选项很少。我已经看到了WebKit的示例代码和实现,它将手势转换为加载到其中的Google Maps,但性能最好是令人沮丧的。在没有大量缩放或滚动的情况下执行静态映射几乎是唯一的性能保留选项,直到本机API可用。

#3


Take a look at Developing Virtual Earth iPhone Applications with Objective-C

看看使用Objective-C开发Virtual Earth iPhone应用程序