1. Welcome to the new MacRumors forums. See our announcement and read our FAQ

opening an address in the map application

Discussion in 'iPhone/iPad Programming' started by mpbahl, Jul 21, 2008.

  1. macrumors newbie

    #1
    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:mad:"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:mad:"maps:address=%@&abPersonID=%d&abAddressID=%d"...]
    NSURL *url = [NSURL URLWithString:urlString];
    [[UIApplication sharedApplication] openURL:url];

    is this true or am i missing something ?
     

Share This Page