Maps for Mobile Phones

From MMVLWiki
(Difference between revisions)
Jump to: navigation, search
m (Weybridge example map)
m
 
(15 intermediate revisions by 2 users not shown)
Line 27: Line 27:
 
* [http://www.wedesoft.demon.co.uk/downloads/splitmap.rb splitmap.rb] (638 bytes) source code of Ruby script for splitting up an input file into map-tiles (requires [[HornetsEye]])
 
* [http://www.wedesoft.demon.co.uk/downloads/splitmap.rb splitmap.rb] (638 bytes) source code of Ruby script for splitting up an input file into map-tiles (requires [[HornetsEye]])
  
Note, that for creating map-tiles yourself you need to provide maps for several resolutions (multiresolution pyramid). If you don't have a multiresolution map, you need to scale the input image down to 50% multiple times. You can use the command-line tool ''convert'', which is part of [http://www.imagemagick.org/ ImageMagick]) to do this:
+
Note, that for creating map-tiles yourself you need to provide maps for several resolutions (multiresolution pyramid). If you don't have a multiresolution map, you need to scale the input image down to 50% multiple times. You can use the command-line tool ''convert'' which is part of [http://www.imagemagick.org/ ImageMagick] to do this:
  
 
  convert map.png -scale 50%% map2.png
 
  convert map.png -scale 50%% map2.png
Line 35: Line 35:
 
  convert map5.png -scale 50%% map6.png
 
  convert map5.png -scale 50%% map6.png
  
 +
Note that each dimension of the last pyramid level (here: ''map6.png'') must not be bigger than the tile size (here: ''128'')!
 
Afterwards you can create the tiles using the Ruby script [http://www.wedesoft.demon.co.uk/downloads/splitmap.rb splitmap.rb]:
 
Afterwards you can create the tiles using the Ruby script [http://www.wedesoft.demon.co.uk/downloads/splitmap.rb splitmap.rb]:
  
Line 43: Line 44:
 
  ./splitmap.rb map5.png 128 1
 
  ./splitmap.rb map5.png 128 1
 
  ./splitmap.rb map6.png 128 0
 
  ./splitmap.rb map6.png 128 0
 +
 +
It is also recommended to compress the resulting map tiles by reducing the number of colours (no dithering!). To do this move the map-tiles into an empty directory and compress the map tiles as follows:
 +
mkdir targets
 +
for i in *.png; do convert $i -depth 8 -colors 32 +dither target/$i; done
  
 
==Political world map==
 
==Political world map==
Line 85: Line 90:
  
 
=External Links=
 
=External Links=
* [http://www.wedesoft.demon.co.uk/ Maps for mobile phones] at www.wedesoft.demon.co.uk
+
* [http://java.sun.com/javame/ Java ME Toolkit]
* [http://java.sun.com/j2me/ J2ME SDK]
+
 
* [http://gnuite.com:8080/nokia770/maemo-mapper/ Maemo-Mapper] is a free mobile map software for Nokia 770 (GPL) (hosted at [https://garage.maemo.org/projects/maemo-mapper/ garage.maemo.org])
 
* [http://gnuite.com:8080/nokia770/maemo-mapper/ Maemo-Mapper] is a free mobile map software for Nokia 770 (GPL) (hosted at [https://garage.maemo.org/projects/maemo-mapper/ garage.maemo.org])
 
* [http://wiki.openstreetmap.org/index.php/GpsMid GpsMid] J2ME displaying multiresolution streetmaps by rendering OSM vector data
 
* [http://wiki.openstreetmap.org/index.php/GpsMid GpsMid] J2ME displaying multiresolution streetmaps by rendering OSM vector data
Line 95: Line 99:
 
* [http://www.home.fh-karlsruhe.de/~scpa0023/Autobahn.html German motorways (copyrighted)]
 
* [http://www.home.fh-karlsruhe.de/~scpa0023/Autobahn.html German motorways (copyrighted)]
 
* This software and other mobile phone applications at [http://www.getjar.com/ getjar.com]
 
* This software and other mobile phone applications at [http://www.getjar.com/ getjar.com]
** [http://www.getjar.net/products/4729/VerkehrsnetzMuenchen VerkehrsnetzMuenchen]
+
** [http://www.getjar.com/mobile/19008/worldmap/ WorldMap]
** [http://www.getjar.com/products/4200/ShoppingList Shopping List]
+
** [http://www.getjar.com/mobile/4200/shoppinglist Shopping List]
** [http://www.getjar.com/products/329/FirstPastThePost FirstPastThePost] is a horce-racing game
+
** [http://www.getjar.com/mobile/329/firstpastthepost FirstPastThePost] is a horce-racing game
** [http://www.getjar.com/products/1155/Compass Compass] gives the position of sun and moon to determine true north
+
** [http://www.getjar.com/mobile/1155/compass Compass] gives the position of sun and moon to determine true north
** [http://www.getjar.com/products/3076/LondonStreetMap London street map] developed by [http://jtrustn.byethost12.com/streetmaps.html JTrustN]
+
** [http://www.getjar.com/mobile/3076/londonstreetmap London street map] developed by [http://jtrustn.byethost12.com/streetmaps.html JTrustN]
 +
** [http://www.getjar.com/mobile/17716/chesschampion ChessChampion]
 +
* This software and other applications at [http://softonic.com/ softonic.com]
 +
* [http://tdhutt.googlepages.com/ London Tube Map] (and London Street Map)
 
* [http://ngphone.com/j2me/opensource/ J2ME open source software]
 
* [http://ngphone.com/j2me/opensource/ J2ME open source software]
 
* [http://www.panayotis.com/yoda/yoda.html Yoda decision maker]
 
* [http://www.panayotis.com/yoda/yoda.html Yoda decision maker]
Line 113: Line 120:
 
* [http://www.google.com/gmm/ Mobile Google map client]
 
* [http://www.google.com/gmm/ Mobile Google map client]
 
* [http://j2memap.landspurg.net/ J2MEmap]
 
* [http://j2memap.landspurg.net/ J2MEmap]
* [http://huah.net/snakeonaplane/ J2ME Snakes on a plane]
 
 
* [http://www.xk72.com/midpssh/ MidpSSH]
 
* [http://www.xk72.com/midpssh/ MidpSSH]
 +
 +
{{Addthis}}
  
 
[[Category:Projects]]
 
[[Category:Projects]]
 
[[Category:Fun-Projects]]
 
[[Category:Fun-Projects]]

Latest revision as of 00:12, 25 June 2011

Weybridge/UK example map
NYC subway map
Political world map
Political world map
Sheffield Supertram map
Public transportation in Munich
Mobile streetmap of Cambridge (multiresolution)
An image created by NASA's Visible Earth project
Mobile streetmap of Weybridge (multiresolution)

Contents

[edit] Maps for J2ME mobile phones

You can download some interactive maps for mobile phones with J2ME/MIDP (Java 2 Micro Edition) as JAR files. If you want to download the file using GPRS you have to use the link to the JAD file instead. Please refer to your mobile-phone's manual on how to install Java programs. E-mail me, if you find a bug in the software.

The size of each software package is mentioned. Note, that temporarily you will need twice as much memory on your mobile, because the JAR-file will only be deleted after installation. You can put comments and submit ratings at getjar.com.

If you want to compile or emulate the software on your PC, you need to download the Java 2 Micro Edition (J2ME) Wireless Toolkit.

[edit] Weybridge example map

The map was taken from openstreetmap.org (License: GFDL).

Note, that for creating map-tiles yourself you need to provide maps for several resolutions (multiresolution pyramid). If you don't have a multiresolution map, you need to scale the input image down to 50% multiple times. You can use the command-line tool convert which is part of ImageMagick to do this:

convert map.png -scale 50%% map2.png
convert map2.png -scale 50%% map3.png
convert map3.png -scale 50%% map4.png
convert map4.png -scale 50%% map5.png
convert map5.png -scale 50%% map6.png

Note that each dimension of the last pyramid level (here: map6.png) must not be bigger than the tile size (here: 128)! Afterwards you can create the tiles using the Ruby script splitmap.rb:

./splitmap.rb map.png 128 5
./splitmap.rb map2.png 128 4
./splitmap.rb map3.png 128 3
./splitmap.rb map4.png 128 2
./splitmap.rb map5.png 128 1
./splitmap.rb map6.png 128 0

It is also recommended to compress the resulting map tiles by reducing the number of colours (no dithering!). To do this move the map-tiles into an empty directory and compress the map tiles as follows:

mkdir targets
for i in *.png; do convert $i -depth 8 -colors 32 +dither target/$i; done

[edit] Political world map

The map was taken from the The World Factbook (License: public domain).

[edit] Visible Earth

The picture was taken from the Visible Earth project (License: public domain).

[edit] Munich public transportation map

The map was taken from de.wikipedia.org (License: GFDL).

[edit] New York City Subway Map

This NYC subway map originated from www.nycsubway.org (License: public domain).

[edit] Sheffield Supertram map

The map was taken from en.wikipedia.org (License: Creative Commons Attribution-ShareAlike 2.0 Canada)

[edit] Cambridge multiresolution map

Thanks to the work of the OpenStreetMap community it is now possible to create free multiresolution streetmaps for mobile phones! Free multiresolution maps is a valuable addition to the worlds inventory of free data. The data is subject to the terms and conditions of the Creative Commons Attribution ShareAlike License v. 2.0.

[edit] Weybridge multiresolution map

Now there also is a free multiresolution streetmap of Weybridge for J2ME mobile phones. The data is provided by the OpenStreetMap community and subject to the terms and conditions of the Creative Commons Attribution ShareAlike License v. 2.0.

[edit] Further ideas

  • Sky atlas
  • Lunar atlas

[edit] External Links

Bookmark and Share

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox