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








December 6th, 2007 at 3:07 am
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?
December 11th, 2007 at 12:31 am
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.
December 12th, 2007 at 4:07 pm
I am running it on a mac with both firefox and safari. I am also getting the dreaded white page
December 14th, 2007 at 4:16 pm
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.
December 14th, 2007 at 4:45 pm
I made an error in my earlier comment - ogmap.html does NOT connect to google maps is network cable is connected.
December 14th, 2007 at 7:59 pm
Same problem with IE on Windows XP.
December 23rd, 2007 at 2:52 am
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?
February 14th, 2008 at 4:02 pm
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.
February 21st, 2008 at 10:50 am
hmm….yeah, looks like one of their updates broke ogmaps. will try to figure out a fix this weekend.
February 21st, 2008 at 5:41 pm
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?
April 7th, 2008 at 12:11 pm
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!
June 8th, 2008 at 9:45 pm
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…
June 27th, 2008 at 1:11 am
if the tiles not downloaded. try change the line 87 and 88 of ogmaps.py from v=w2.63 to v=w2.75.
July 7th, 2008 at 1:52 pm
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?
July 31st, 2008 at 6:44 pm
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.