【发布时间】:2010-12-13 19:51:04
【问题描述】:
我已查看有关将用户发送到 Google 地图应用程序的 Apple 文档 (http://developer.apple.com/library/ios/#featuredarticles/iPhoneURLScheme_Reference/Articles/MapLinks.html),我有一个问题, "如何让它自动显示从用户当前位置到预定纬度/经度位置的路线?
Apple Docs 说源和目标分别使用“saddr=”和“daddr=”,但没有说明如何获取用户的当前位置。是否有某种关键字(例如“saddr=Current”或“saddr=Here”)可以获取用户的位置?
显然,这是行不通的:
[app openURL:[NSURL URLWithString:@"http://maps.google.com/maps?saddr=Here&daddr=Chicago"]];
..如果我试图将用户发送到芝加哥。有什么想法吗?
【问题讨论】:
标签: iphone objective-c