1
Googleマップを呼び出す注釈には次のようなボタンがあります。 私は、現在の既知の場所から、注釈レコードから渡された目的地までのルートをマップしようとしています。現在地をgoogleMapsの目的地にマッピングします
現在の場所はGoogleマップで認識されず、Current、Dent、Missouriのようなランダムな場所が示唆されます。私はここで間違っつもり
- (IBAction)GoogleMap
{
NSString *mapAddress = [NSString stringWithFormat:@"%@, %@, %@, %@",location.address, location.city, location.state, location.zipcode];
NSString* url = [NSString stringWithFormat: @"http://maps.google.com/maps?saddr=Current+Location&daddr=%@",
// 40.7406578, -74.0020894, test coordinates
[mapAddress stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];
}
任意のアイデア?これはうまくいかないでしょうか?ありがとう。
これはiPhoneでうまくいくがiPadではうまくいかないことが奇妙です。 – Jeremy