简体   繁体   English

iOS Google Maps App上的“当前位置”问题

[英]Issue with 'Current Location' on iOS Google Maps App

In my application, I am attempting to give a user directions from her 'Current Location' to an arbitrary destination. 在我的应用程序中,我试图为用户提供从“当前位置”到任意目的地的路线。 To do this I send them to the Google Maps App on the iPhone / iPod passing the correct directions string. 为此,我通过正确的方向字符串将它们发送到iPhone / iPod上的Google Maps App。 However, it seems that when you pass 'Current Location' as the starting point, the Google Maps app has a decently high chance of setting the green pin to the wrong spot. 但是,当您通过“当前位置”作为起点时,Google Maps应用似乎很有可能将绿色图钉设置在错误的位置。

What causes this? 是什么原因造成的? Does the Google Maps App cache the current location, and use that for the green pin placement? Google Maps App是否缓存当前位置,并将其用于绿色图钉位置? If so, how do you ensure 'Current Location' will use a non-stale cache? 如果是这样,您如何确保“当前位置”将使用非陈旧的缓存?

Any help would greatly be appreciated. 任何帮助将不胜感激。

Thanks. 谢谢。

How far off is it? 它有多远? Are you trying to generate walking directions or driving directions? 您是要生成步行路线还是行车路线? Driving directions may be trying to automatically drop you on a road to start. 行车路线可能正试图自动将您带到开始行驶的道路上。

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

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