Navit/Android

From OpenStreetMap Wiki
Jump to: navigation, search
Help
Available languages
Deutsch English

Note: Now (4/2011) you probably can download Navit directly from Google's Android Market, but eventually the version offered there is a bit outdated. In this case download a freshly compiled apk file from the official Navit nightly builds.

Or you can try the android port called ZANavi.

The following description may possibly be helpful if this does not work.

Navit with maps from OSM on a Smartphone with Android 1.6 / 2.x

Here is a HowTo, how you can use Navit with maps from OSM on a Smartphone with Android:


tested Smartphones: HTC Desire Z (aka USA G2) (Android 2.2), Samsung I9000 Galaxy (Android 2.2), SE Xperia X10 (Android 1.6 and Android 2.1), HTC tattoo (Android 1.6, Android 2.2 and Android 2.3)



0. If you won't edit the navit.xml yourself, you can download a preconfigured xml-file from here with a small readme in German. With this xml-file, navit looks like this:

Navit android.png



1. Download the newest apk from here



2. open the apk with a zip-program (7z, archivmanager) and extract navit.xml from /res/raw/



3. copy the apk on the sd-card of the cellphone



4. install the apk with a file manager



5. download the map from the Navit Planet Extractor (Multipolyon-Landuses are not visible). For Germany, Switzerland, Austria, Liechtenstein, DACH, Benelux and the British Isles you can get a map from here (the Multipolygon-Landuses are visible on these maps).

Alternativ you can also use an osm-file from Geofabrik. But these Files must be converted manually to the bin-format.



6. save the bin-file somewhere on the sd-card from the cell. (p.e. I've created for the maps the folder /navit/maps.



7. open the file navit.xml (which we have extracted at point 2) with a texteditor like notepad.



8. in navit.xml: customize the coordinates and zoomlevel (approx line 37) (navit center="4808 N 1134 E" zoom="256" tracking="1" orientation="-1" recent_dest="10")



9. in navit.xml: search the line "Mapset template for openstreetmaps" (approx line 500).



10. in navit.xml: change mapset enabled to "yes" and adjust the path to the bin-datei - which we've saved on point 6. at my example it looks like:

		<!-- Mapset template for openstreetmaps -->
		<mapset enabled="yes">
			<map type="binfile" enabled="yes" active="yes" data="/sdcard/navit/maps/osm_ch.bin"/>
		</mapset>



11. just above these lines the Sample-Map is defined. This Sample-Map must be deactiveted with enabled="no":

		<!-- If you dont want to use the sample map, either set enabled="no" in the next line or remove the xml file from the maps directory -->
		<mapset enabled="no">
			<map type="binfile" enabled="no" data="/sdcard/navitmap.bin"/>
		</mapset>



12. in navit.xml: almost on the top of this file, search the OSD-settings



13. Customise the layout: to add GPS speed and maxspeed, add the following lines in navit.xml: below osd enabled="no" type="navigation_next_turn":

		<osd enabled="yes" type="text" label="${vehicle.position_speed}" x="-80" y="53" font_size="250" w="350" h="50" align="4" font_color="#808080"/>
		<osd enabled="yes" type="text" label="M:${tracking.item.route_speed}" x="-80" y="103" font_size="250" w="350" h="50" align="4" font_color="#808080"/>

There are also custom layouts that can be found on the navit wiki [1]. The layouts are cross-platform but they depend on the screen size.



14. Navit uses the system language, if you want to change it, search following line (approx line 9):

<config xmlns:xi="http://www.w3.org/2001/XInclude">

change this line to your language. p.e.:

<config xmlns:xi="http://www.w3.org/2001/XInclude" language="de_DE">

(or for Switzerland: language="de_CH", for Austria it is language="de_AT")



15. save the file navit.xml to the sd-card from the cell. Attention: don't save this file to a subfolder. Save it direct to the root from the sd-card.



Personal tools
Namespaces
Variants
Actions
site
Toolbox