Page 1 of 1

How to launch device's native navigation app?

Posted: Wed Apr 10, 2013 9:41 pm
by Slang

Hello

I ave an app that displays a map using the Google map component. It displays multiple markers that are dynamically generated. When the user selects a marker, I can get the lat/long/address associated with the marker and display this information in various label/button components, etc. At this point I would like the user to be able to launch the native navigation app of the device to navigate to the selected marker. How do I do that?

Please note I am not interested in getting the directions to the marker, as in your tutorial at http://docs.tiggzi.com/tutorials/#Goo...
I am more interested in invoking GPS navigation from the device, once I have the geolocation of the device and the destination information.

Thanks


How to launch device's native navigation app?

Posted: Wed Apr 10, 2013 11:08 pm
by Illya Stepanov

Hi - I'm not really understand what do you mean by that: "...user to be able to launch the native navigation app of the device..."?

And what kind of app you're building? Web App or a native App for Android/iOS?


How to launch device's native navigation app?

Posted: Wed Apr 10, 2013 11:17 pm
by Slang

Native app for Android.

For example if you have a database of store locations and your app displays those stores on a map. Then once the user picks a store, you want to let them use their navigation app to navigate to that location. How would I invoke the navigation app from within my app, and ask it to provide directions to the store?


How to launch device's native navigation app?

Posted: Thu Apr 11, 2013 1:51 am
by Illya Stepanov

It's not so simple as it looks, for Android there is no standard Intent URI for navigation.

Maybe this could give you some direction: http://datamoil.blogspot.com/2011/04/...

But we'll seek for a solution and update.


How to launch device's native navigation app?

Posted: Thu Apr 11, 2013 10:54 am
by Kateryna Grynko

Hi,

You can use link in format:
codegeo:..../code
Find more here:
http://developer.android.com/guide/ap...
https://groups.google.com/forum/?from...


How to launch device's native navigation app?

Posted: Thu Apr 11, 2013 8:17 pm
by Slang

Thanks, that works