Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Use google navigation within app?

Is there a way to embed the google navigation app within my Titanium app? Or at the very least, is there a way to launch google navigation from my app and pass in an address that it will start navigating to?

Basically I'm trying to create an app where it has a list of addresses and the user can click on one and it will start giving them turn by turn directions to that address.

— asked November 5th 2010 by Justin Toth
  • navigation
0 Comments

4 Answers

  • Accepted Answer

    It's actually very easy, just use the following:

    Ti.Platform.openURL('http://maps.google.com/maps?t=m&saddr=' +
    sourceAddress + '&daddr=' + destinationAddress);
    

    The address can be a comma separated Lat/Lng or a real address. I use Lat,Lng for source address and a real address for the destination.

    * This will open in Safari using the Simulator and will open in the Maps application on the phone.

    — answered November 5th 2010 by Shaun Berryman
    permalink
    0 Comments
  • Justin

    You will need to use the Titanium API to retrieve and process requests to the Google Directions API.

    It's certainly an achievable task.

    Hal

    — answered November 5th 2010 by Paul Dowsett
    permalink
    1 Comment
    • From reading that page, it sounds like I'd have to create an entirely new turn by turn directions app from scratch?? That sounds like something that would take years for one developer to do, I was hoping to just pass an address into an existing navigation app such as google navigation…

      — commented November 5th 2010 by Justin Toth
  • Probably just use the openurl (maps://) or something?

    — answered November 5th 2010 by Josh Lewis
    permalink
    1 Comment
    • nevermind, looks like Shaun has it.

      — commented November 5th 2010 by Josh Lewis
  • Yo Shaun,

    Is there a way to parse and show "just the driving directions from point A to point B" from google maps api navigation onto our android titanium application w/o showing the other features from the api?

    -Kevin

    — answered June 19th 2012 by Kevin Set
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.