>launch the Google maps app embedded in the system, with the route.

If you just have a source and destination, you can get the Maps app to
show its own route between them with something like this:
Uri uri = Uri.parse("http://maps.google.com/maps?
saddr=42.35892,-71.05781&daddr=40.756054,-73.986951");
Intent intent = new Intent(android.content.Intent.ACTION_VIEW, uri);
startActivity(intent);

That pops up a dialog asking the user if they want to complete the
action with the Browser or Maps app, though. You can start the Maps
app directly with a geo URI intent, but that only seems to support a
single location or query. I tried sending it a from/to query that
worked against the browser version of maps once, but that didn't work.

Too bad we don't have a more powerful way to start the Maps app. Would
be great if there were a way to send areas, multiple locations,
relative locations, etc.. Then you could ask it to show a square mile
one mile to the East, all gas stations 1 mile ahead, a map showing how
5 different locations are positioned w.r.t. each other...

>Why com.google.googlenav is deprecated ?
>Google don't want us to show routes on maps ?

I don't know any public equivalent to the com.google.googlenav
classes, or the com.google.android.location.GmmGeocoder class for
business searches, either. The official API doesn't seem to support
anything near as powerful:
http://code.google.com/android/add-ons/google-apis/reference/index.html

I'm stuck calling the web API and parsing the results to replace those
lately, myself.

Looks like some other devs are trying to replace Google Maps
completely:
http://code.google.com/p/osmdroid/

Or trying to talk to an embedded web version with JavaScript:
http://code.google.com/p/map-for-osp/

I'll have to look into those options for my own maps related apps
next, I guess.

On Sep 17, 5:15 am, LEMESLE Philippe <[email protected]>
wrote:
> thank you for your answer ...
>
> but i have already integrated a map in my app with points on overlays ....
>
> Why com.google.googlenav is deprecated ?
>
> Google don't want us to show routes on maps ?  
>
> -----Message d'origine-----
> De : [email protected] 
> [mailto:[email protected]] De la part de Jeremy Logan
> Envoyé : jeudi 17 septembre 2009 10:57
> À : Android Developers
> Objet : [android-developers] Re: connect to Google maps API or app to trace 
> routes ...
>
> You'll have to draw your route manually (in a MapView) with an
> overlay. Thy the example 
> here:http://developer.android.com/guide/tutorials/views/hello-mapview.html
>
> On Sep 17, 1:02 am, LEMESLE Philippe <[email protected]>
> wrote:
>
> > Hello,
>
> > i'm trying to trace routes thanks to the Google maps API.
> > I'm disappointed because i haven't found any informations in docs.
>
> > An alternative would be for me to launch the Google maps app embedded in 
> > the system, with the route.
>
> > I succesfully launch the application, but i haven't found how i coul'd 
> > specify route parameters.
>
> > bgrds,
>
> > Philippe
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to