Maps for ipod, the right way

I was looking into putting maps in my new video ipod. This guy has a “how to”, which is no more than “capture an image from your screen, put it in the ipod.” This is a nice mashup of Yahoo driving directions and the ipod, but is serving me corrupted zip files, and it’s not too general anyway.

I wanted to have more data than what the 320×240 resolution allows, and I wanted that data to be easily accessible. The video ipod shows thumbnail images in a 6×5 grid, which will scroll down as needed. So ideally, a map would have 6xn tiles, each 320×240. The whole map should be 1920 pixels horizontally, or 320*6.

I wrote a simple python script that will take an image and generate these 6xn tiles, ready to be uploaded to the ipod. The script can also generate 5xn and 4xn tiles for the ipods photo and nano, respectively.

If you sort the files generated by name, the thumbnails will form the bigger image in the ipod’s browser. You can then use the wheel to scroll to the area of the map you want to see bigger.

I started with this map, stitched together from several screen captures:

(I’m not going to post the full res one here, because that would be against Google’s terms of use)

Once processed into tiles and uploaded to the ipod, this is how it looks:

Here is one of the tiles, at full res:

Of course, the script will work with any image you give it. Here is a map of Australia, which I photographed from an encyclopedia from 1965:

Download the script here. It requires PIL, the Python Image Library. Run it from a terminal, by typing “ipodTiles [image name]“. The script will resize the initial image to the ideal size for your type of ipod (1920 pixels for the video, 1100 for the photo or 702 for the nano), so it is not necessary to be accurate with the size of the maps. However, the closest you get to the ideal size, the closest to 1 to 1 the image in the ipod will be, and the better the legibility.

What would be great is if the ipod supported photo folders, and each forder could be assigned its own icon. That would allow for multiple zoom levels in the same map. But this works quite well as is.

No Responses to “Maps for ipod, the right way”

  1. ????????? Says:

    ?????????????????????????????????

  2. ?? Says:

    ??????????????????????

  3. ???????? Says:

    ???????????å???????????????????????????

  4. ?????? Says:

    ????????H??OK???????SOS

  5. ???? Says:

    ???????????å??????????????????????

  6. ?????? Says:

    ??????????????????????????????????

  7. ???? Says:

    ???????????????????õ????????????????????????

  8. ??? Says:

    ?????????????????

  9. SM Says:

    WEB????????????????????????

  10. ???????? Says:

    ????????????????????ñ?????????

  11. ??????? Says:

    ????????????????????å?OK??????

  12. ???å? Says:

    ??????????OK?????å??????????

  13. ??????å? Says:

    ??????????????????????ñ???????????

  14. ??????? Says:

    ?????????????????????????????????

  15. ?????? Says:

    ????????????????????????????

  16. ???å?????????? Says:

    ???????????????????????å?????????????

  17. ?????? Says:

    ???å???????????????????????

  18. ????????? Says:

    ?????????????????????????????????????????????????ä?????????????????????u_u.s-yui.o.-@docomo.ne.jp??????????????

  19. ???å? Says:

    ??????????????????????????????????ä??????????????????

  20. ???? Says:

    ???????????????????????????????????????????

  21. ???? Says:

    H????????????????????????????

  22. ?? Says:

    ?????ï???????????????????????????????^^??????????????????(*??????*)???choco0315@softbank.ne.jp

  23. ???? Says:

    ??????????????????????????????????????????????

  24. ???????? Says:

    ????????????????????????????¬?????

  25. ?????¤ Says:

    ?????¤????????ä???????????????

  26. ??? Says:

    ?????????????????????????????????

  27. ??????å? Says:

    ?????????????????????????????????ñ???????????

  28. ???? Says:

    ?????????????????????????????????????

  29. ?????????? Says:

    ???????????????????¬???????

  30. ?????? Says:

    ??????????nana???????????????????????????H?????????????

  31. ?? Says:

    ????????????????????

  32. ????????? Says:

    ?¿??????????????????????