苹果地图和谷歌地图API是否具有相同的参数?

8
在像iPhone和iPad这样的iOS 6设备上,以及最新的Mac电脑上,链接maps.apple.com/maps?q=cupertino会在苹果本地地图应用中打开。
在非Mac电脑和其他设备上,它会导向maps.google.com/maps?q=cupertino
这对于开发人员来说是一个受欢迎的功能,但是,Google地图是否支持苹果的API?
换句话说,所有以下Apple Maps参数是否都能在Web版Google Maps上完美转换?
q=      The query parameter.
near=   The location part of the query.
ll=     The latitude and longitude points for the map center point.
sll=    The latitude and longitude points from which a business search should be performed.
spn=    The approximate latitude and longitude span.
sspn=   A custom latitude and longitude span format used by Apple.
t=      The type of map to display.
z=      The zoom level.
saddr=  The source address, which is used when generating driving directions
daddr=  The destination address, which is used when generating driving directions.

那么,在网站上最好不使用其中一些吗?

1个回答

1
现在唯一的负面部分是https://maps.apple.com在苹果设备上显示证书错误,但在非苹果设备上直接进入谷歌。当然,你可以直接链接到http://maps.apple.com,但是HTTPS无处不在,这是新的口号,不是吗?

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接