3

I have an app, and in my app I need to be able to send an intent to start navigation. In that intent, I need to have the start geopoint (or lat lon), multiple way points (as geopoints or lat lon), and then an end (as geopoints or lat lon). I know how to send the intent to do everything except the waypoints. I really need the format of the string that I would be sending to navigation.

Bart
  • 19,692
  • 7
  • 68
  • 77
user638049
  • 189
  • 2
  • 10

2 Answers2

0
There isn't a standard Intent URI for navigation.  

see this SO post.

Community
  • 1
  • 1
Eight
  • 4,194
  • 5
  • 30
  • 51
  • Ok I checked that link out, but I guess I didnt explain my question well enough. I need to know the actual URI or syntax I would use to add a start, end, and waypoints/stops in between there. I have a bunch of coordinates that I need to use in the navigation. I dont just want them to get from a to b anyway they can, I want them to use the waypoints. What would be the syntax for that URI. – user638049 Jun 07 '12 at 13:09
0

If you are in the US, you could use an unofficial way (I don't recommend using it though since it's not official). This will launch Google Maps in navigation mode.

Intent intent = new Intent(android.content.Intent.ACTION_VIEW, 
    Uri.parse("google.navigation:q=an+address+city");
Alex Lockwood
  • 83,063
  • 39
  • 206
  • 250