Saturday, January 8, 2011

Downloadable offline Google Tokyo maps for android



I recently had the need to put together some google maps for offline use. While I was at it, I created a map pack for inside the Tokyo Yamanote line. Here are links to an rmaps version and a maverick versionRmaps and maverick lite are both free and support user-generated maps. Mapdroyd is also free and will download OpenStreetMap format vector maps, which are much smaller in size but of lower detail. You can use any of these programs and the proper maps downloaded to find your way with only the GPS on your android phone.


Google Maps 5 now caches maps, but it doesn't work with my ht-03a, perhaps either because vector maps aren't supported, or because I'm doing it wrong. Maverick will also cache them. Either way, I'd rather know for sure that I've downloaded any maps I need before I am in an area with no connection, rather than zooming around the entire area and hoping all the tiles get cached properly.

It is actually not hard at all to create these. I ran across this post and basically followed the directions for using Mobile Atlas Creator, a cross platform open source Java application, to create the maps. You must check every zoom level you want to display, like in the below screenshot. You can click and draw a box or directly enter lats and lons. In this case I used one simple rectangle, but you can also draw many rectangles and click the "add selection" button after each one to create a custom shape that follows trails (for example). Drag the map around by holding the control key and clicking. Maverick rmaps requires an sqlite component. I downloaded the precompiled sqlitejdbc-v056.jar from here and placed it in the Mobile Atlas Creator root directory.


Maverick is much more feature rich than rmaps but also a bit heavier. There is also Maverick Pro. A downside to Maverick is, in addition to being a bit sluggish, the way it caches tiles as individual files. The map I created of central Tokyo has over 16,000 individual little files. Depending on the sector size of your SD card, this could really balloon the total file size when copied to your phone. It also takes longer to copy and delete. Rmaps has one single file, though it is still using tiles.

Place the rmap file in the root of the SD card as follows: rmaps/maps/Custom Central Tokyo.sqlitedb. For Maverick, unzip the file and place then contents in maverick/tiles (e.g., Maverick/tiles/googlemaps/0/0/0.png.tile)

8 comments:

  1. Very helpful instructions, thanks.

    ReplyDelete
  2. Thanks for the rundown. Google maps 5 doesn't cache manually yet. The more reliant on my phone for navigation, the more important this feature is. Especially when I happen to forget my router at home >.>

    Of the three, only Maverick does navigation though right? I'll test it out in the car. I go driving in the mountains where data is spotty or non-existent. I really need a client that actually works with Zero data connection.

    ReplyDelete
  3. I don't think any of them will do it like google nav does. msverick pro allows you to bring in gpx routes. there is a gmap to gpx bookmarklet that will convert google routes from your pc to a gpx file, but I don't think the added functionality is worth buying the pro app.

    I haven't had the chance to try it yet but maybe google nav does better for automatic caching of maps...

    ReplyDelete
  4. Wonderful, this is something I didn't know I needed - now I'm unhealthily obsessed with creating the perfect offline maps with balanced size/zoom considerations. Thanks! (Seriously.)

    ReplyDelete
  5. haha, what do you think I did all day Saturday? ;-)

    ReplyDelete
  6. Totally off-topic.

    Maybe old news for some of you.

    You guys have _GOT_ to try this...
    http://www.androlib.com/android.application.com-webkey-jznzx.aspx

    ReplyDelete
  7. Techniker TechnologeJanuary 18, 2011 at 9:15 PM

    concerning the new Google Maps (5?), I am having constant crashes with the cyanogenmod tmo-us image. While entering japanese locations in the search bar, the entry first gets quite slow (apperntly due to live-search preview) and then crashes with complex words. I had to revert back to the stock version (4 something?). Can anyone confirm?

    ReplyDelete
  8. Another Navigation software that supports offline caching and mobile atlas creator maps is BackCountry Navigator. They have a free trial in the market, and it seems to work well enough.

    ReplyDelete