Take Google Maps Offline

So I bought a Nokia N800, initially so I can work on a mobile version of allurstuff, but also I’m curious if I can get android working on it… But while I’m waiting for FedEx to deliver, I decided that it needed a way to access Google Maps even without an internet connection.

And so was born ogmaps. It’s a fairly simple python script that downloads all the HTML/Javascript/image files used by gmaps, and modifies them to run right off your hard drive. (or flash drive, whatever) It then looks up whatever location you give it, and caches all the surrounding map files. (within reason….grabs about 5-10mb of data for each location you give it)

You don’t need a handheld to use it either… It’ll work wherever you have python and firefox. (I haven’t tried it with IE yet, and likely won’t - get a better browser!)

Anyway, tell me what you think. :)

derek

15 Responses to “Take Google Maps Offline”

  1. derek Says:

    argh. all it pulls up is a white page on the n800’s browser. where’s an embedded version of firebug when you need it?

  2. Tobias Says:

    In case your not notified. I posted a bug about me getting a white page (or rather a “loading” page). This is with Opera (same thing in Nokia tablets) but it’s also the same in Firefox.
    I added some Opera JS error output.

  3. milmomma Says:

    I am running it on a mac with both firefox and safari. I am also getting the dreaded white page

  4. dave Says:

    Installed today from scratch. First time install. I am not a ‘power user.’ I had to install svn - edited my .profile - finally got ogmaps to connect and download all the relevant map files from google.

    rebooted macintosh (10.4) and unplugged network cable. Opened up ogmap.html and got a gray page with ‘Loading….’ in the upper left hand side.

    If I connect network cable and open ogmap.html it connects to google maps.

  5. dave Says:

    I made an error in my earlier comment - ogmap.html does NOT connect to google maps is network cable is connected.

  6. dave Says:

    Same problem with IE on Windows XP.

  7. yvan Says:

    15 days passed and I’m curious to know if you were able to do what you wanted to do on the N800? What happened?

  8. egiron Says:

    I did the same but I got a gray “Loading page” too, the mapfiles and tiles didn’t load. It seems your program does not replace correctly the urls or something like that because it try to connect to google.

  9. derek Says:

    hmm….yeah, looks like one of their updates broke ogmaps. will try to figure out a fix this weekend.

  10. Jake Says:

    Derek,
    I’m very interested in your fix if you come by one. Thanks for putting together such a slick program; here’s hoping it works out!

    P.S. Any chance for Windows binaries? Pretty please?

  11. Iain Says:

    Just downloaded from svn today, April 7th 2008. Having the same problem as others with the tiles not loading. Do you have any ETA for the update? I would love to be able to give this a try!

  12. Wafflematt Says:

    Downloaded today, and I get a javascript error when running it (gapp is not defined).
    Map tile data did download.

    Posted a bug on google code.

    I’d like this to work…

  13. blur Says:

    if the tiles not downloaded. try change the line 87 and 88 of ogmaps.py from v=w2.63 to v=w2.75.

  14. FreakyT Says:

    I tried it, most of the images failed to download (blur’s fix managed to get it to download the tiles, but that didn’t help), and I also get a “gapp is not defined” error. Any chance of a fix?

  15. captainjc Says:

    current version is 2.80. that gets it to download the tiles, but still won’t display. would be great if someone would update this to work with the new google maps code.

Leave a Reply


<Kered.org>   © Copyright 2000-2005 by Derek Anderson
Get Firefox