PDA

View Full Version : opening an address in the map application




mpbahl
Jul 21, 2008, 09:34 PM
I looks like the only way you can open an address in the map application programatically is if the address is in the address book

I've tried:
NSString *urlString=[NSString stringWithFormat:@"maps:address=%@"...]
NSURL *url = [NSURL URLWithString:urlString];
[[UIApplication sharedApplication] openURL:url];
which opens the map applicaiton but doesn't open to the correct address

I've see some incomplete examples like this
NSString *urlString=[NSString stringWithFormat:@"maps:address=%@&abPersonID=%d&abAddressID=%d"...]
NSURL *url = [NSURL URLWithString:urlString];
[[UIApplication sharedApplication] openURL:url];

is this true or am i missing something ?