Same parameters for Apple Maps and Google Maps API?
在iPhone和iPad等iOS 6设备以及最新的Mac上,在Apple的本地地图应用程序中打开了maps.apple.com/maps?q=cupertino的链接。
在非Mac计算机和其他设备上,它会转至maps.google.com/maps?q=cupertino。
这是开发人员欢迎的功能,但是Google Maps是否支持Apple的API?
换句话说,以下所有Apple Maps参数是否可以完美地转换为网络上Google Maps中的某些内容?
1 2 3 4 5 6 7 8 9 10 | 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. |
还是最好不要在网站上使用其中一些?
现在唯一的负面影响是,https://maps.apple.com在Apple设备上显示证书错误,但在非Apple设备上直接显示给Google。当然,您可以直接链接到http://maps.apple.com,但是HTTPS到处都是新的口号,不是吗?