简体   繁体   English

苹果地图上的Apple路线点或Google路线点

[英]Apple route points or google route points on apple maps

It is against the policy of Google maps to show GOOGLE Route on any other maps except Google maps.I am using apple maps and i want to show route between two points. 在Google地图以外的任何其他地图上显示GOOGLE路线均违反Google地图的政策。我使用的是苹果地图,我想显示两点之间的路线。 Lets say current location and some other point 可以说当前位置和其他一些地方

From another stack flow question I saw this query 在另一个堆栈流问题中,我看到了此查询

NSString* apiUrlStr = [NSString stringWithFormat:@"http://maps.apple.com/maps/api/directions/json?origin=%@&destination=%@&sensor=false", saddr, daddr];

However it seems that this query redirects you to google maps instead when tried on browser. 但是,当在浏览器上尝试时,此查询似乎将您重定向到Google地图。 If anyone can confirm I can use its data on apple maps or is it against policy? 如果有人可以确认我可以在苹果地图上使用其数据,还是违反政策?

Why not give the user an option. 为什么不给用户一个选择。 If the user wants to open on MAPS then they can select a button and another button for Google Maps which you can force to open on Safari. 如果用户要在MAPS上打开,则可以为Google Maps选择一个按钮和另一个按钮,您可以强制在Safari上打开它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM