views:

833

answers:

3

I am trying to calculate a route based based on either geographic location or address. I figured the obvious way would be to use some part of the built-in Google Maps package, but it proved harder than assumed. There used to be a package called com.google.googlenav, but from that disappeared with the 1.0 release of the Android SDK.

I know that Google Maps has a public JavaScript API, but since the application is developed for the Android (in Java) and I would like to have an offline alternative, is there any other library packages, built-in or 3rd party, that I can use to achieve this?

A: 

I don't know of any other libraries that would do it for you, but even if you find one I'd assume you'd still need for it be "online" carrying around all that map data would be HUGE.

fiXedd
I would assume by 'offline' he meant that the code it was actually executing against wasn't an internet resource (Javascript) but rather a Java library.
Andrew Koester
A: 

Maybe you can have a look at the following link from anddev.org:

http://www.anddev.org/google_driving_directions_-_mapview_overlayed-t826.html

I'm not sure if it's outdated because the discussions started in 2008.

Willy
It's definitely outdated. com.google.googlenav.DrivingDirection isn't valid with Cupcake.
marcc
Yeah, it was pulled before 1.0.
fiXedd
+1  A: 

If I understand it correctly you need Java-library that find routes (not the off-line solution).

You may try Java API for CloudMade services: http://developers.cloudmade.com/projects/show/java-lib

CloudMade makes services around OpenStreetMap data, so it may be different from output of Google Maps. However OpenStreetMap is growing, and now could already compete with GMaps in many European countries.

Igor Shubovych