views:

595

answers:

7

I'd like to use routing from my app, so that TomTom or Navigon get opened with right "from" and "to" addresses. Does anybody know if TomTom or Navigon apps register a URL Handler on the iPhone?

+3  A: 

If you have access to the application bundles (in other words, you own the applications so the iTunes bundles are in ~/Music/iTunes/Mobile Applications), you can unzip these .ipa bundles and take a look at their Info.plist files.

You should look to see if there are any URL schemes defined by looking for any values in an array at ["CFBundleURLTypes"]["CFBundleURLSchemes"]. You can take a gander at http://iphonedevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html for a more in-depth explanation.

Even if you determine that the applications are built to handle special URL schemes on the devices, you likely won't be able to determine what you would actually need to provide in a URL to get the applications to do anything useful. In other words, even if you knew that the TomTom app handled URL requests of the type "tomtom://", you wouldn't know what to do with that. It could expect all kinds of different information in an arbitrary arrangement in the URL.

Barring access to the application bundles, I suppose you could attempt to contact TomTom or Navigon directly. You'd likely need to contact them anyway to determine how exactly to use any URL handlers that you discover from digging though the IPA bundles.

Sbrocket
+2  A: 

Check out akosma's wiki: IPhone URL Schemes

cardinal
+4  A: 

Navigon offers a PDF presentation with the details of their scheme, which they call AppInteract. I have not seen anything similar from TomTom so far.

tmaes
+1  A: 

Don't bother with NAvigon. That AppConnect PDF is all but vanished now and we ran into a dead end after phoning Germany for support. We were able to get Navigon to launch when tapping a street address from our app, but it would not route or do anything - just open.

I am currently researching if any of the other vendors will. I am on hold as I type this with Tom Tom support.

Doug
I managed to get the appconnect working properly, see my code here http://stackoverflow.com/questions/2794514/custom-url-scheme-doesnt-work-navigon-appinteract/3014709#3014709
yonel
A: 

For Navigon, this works in my app Taskly

NSString *urlString = [NSString stringWithFormat:@"navigon://YourAppName|%@||||||%f|%f",destinationName,destination.longitude,destination.latitude];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[urlString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]];
Patrick Otten
For me don't work Patrick...but is the "YourAppName" the name of Bundle Display Name on info.plist or the appname is the name of an app on appstore?..when i call openUrl the app jump to Navigon app but don't jump to navigation, jump in the main view of Navigon(Enter an address, Search o POI etc, etc)...thanks
Mat
A: 

I've verified the ipa and TomTom actually implements some url schemes, like tomtomhome:// and tomtomTWOLETTERCOUNTRYCODE:// but I was unable to obtain further documentation.

I wrote to TomTom requesting documentation and will update my answer should I get some.

dwery
+2  A: 

There's some information about the tomtom custom scheme here : http://handleopenurl.com/scheme/tomtom

yonel