Wednesday, June 17, 2009

Offline maps for G1/ HTC Dream/ android phone

So I got the HTC dream, which is excellent except for the fact that whenever I used the maps app, it started to download the maps using my 3G connection and without any plan ( I use prepaid card) it was surely costimg me a lot.
Solutoin : AndNav http://www.andnav.org/

Install andnav2 from the site using the instructions provided therein. Basically install "apps installer" app from google market. download the latest .apk file and install.

now for the maps: for some luckly places on earth, someone has already made the map tiles and those can be downloaded and you need to unpack them in the andnav2\tiles\mapnik folder on your sdcard ..and you will have a bunch of files in hierarchy like
0/0/0.png.andnav

for rest of us unlucky ones:
you need to use trekbuddy to create your own map tiles using the instructions available here
only one caveat :

all the instructions are fine and it should work as mentioned on the site. but in case you dont get the directory hierarchy in the atlases folder like 0/0 as it should be, even if you follow the instruction to the doit.
If so just before you click on "create the tile package", make sure you click on "clear " and then "add selection" in the tile content package box.


after that simply copy all the files to your sd card and you are good to go !


======================
added later
I have made a small one minute video of the tile creation.

9 comments:

Alex said...

Hi dear,
I've done like you say.
But nothing I can't get the right structure.

If you have any idea I will appreciate:-)
Thanks
Zioalex

Naradmuni said...

Do you get the flat directory with lots of .png files ?

I was getting that initially but if after selecting the levels , giving a new name to and then clicking on "clear" and then "add selection".

also selecting "Untared: tiles in separate folders"


moreover the dir structure is created in the

"..\TrekBuddy_AtlasCreator_4_AndNav2\atlases\packagename_time" folder

for example

TrekBuddy_AtlasCreator_4_AndNav2\atlases\world_2009-06-18_105715

Alex said...

AHHHHHHHHHHHHHHHHH
I'ven't the option "Untared: tiles in separate folders" ... but only "Untared: tiles in separate files"...

Sure this is the problem.
But WHY!?! :-O

Naradmuni said...

i wil try to see if i can make a video of the whole process over the weekend.

Alex said...

Dear .
Sure useful.

But the problem here is different.
You have an option that I haven't !!!
Which version of TrekBuddy have you?
And where does it run on windows or linux?

Naradmuni said...

windows and i created the latest stable version
this is the filename

TrekBuddy_AtlasCreator_4_AndNav2_NoSources.zip

Alex said...

Ok I'm using linux and I've used the prebuilded version. I try to build myself.


I keep you updated
BYe
Alex

Alex said...

I've found my problem!
I had selected the option "Recreate Adjust Map/...."
Without that the structure is ok.

Naradmuni said...

cool ! congrats !