I am currently trying to import an offline map to nutiteq. I have downloaded a map from OpenStreetMap but that map has an .osm extension. How can I import that kind of extension to Android ?
-
MBTiles would be a good option to use maps in an offline mode. – Pihu May 26 '14 at 06:00
-
and how to make the *.osm become MBTiles @PriyankaMinhas ? nutiteq tutorials seems very advanced for beginner users.... – gumuruh Aug 25 '14 at 07:39
-
I have made mb tiles on my own using a software called Mobile Atlas creator. Hope it would help you too. Regarding the conversion of osm to mb tiles, i am not sure as i was unable to find a software related to it. – Pihu Sep 01 '14 at 09:07
2 Answers
As scai mentions, .osm is raw data file which cannot be directly used. .osm is data exchange format and it needs processing to be used in applications, including apps with Nutiteq SDK. Main missing piece from .osm file is visual styling: .osm file defines coordinates of objects and identity (e.g. that a line is "highway"), but it gives no hint whatsoever how to draw it - with which colors, line width etc.
What I'd suggest to try is to convert .osm file to .map file using osmosis, and then use mapsforge library to render a map like shown in Nutiteq wiki page. Mapsforge includes some default style, but you can find nicer stylesheets. There are several providers for readymade and up-to-date .map files with OpenStreetMap data, so maybe you do not need to do the conversion, one of them is AndroidMaps who even includes even several stylesheets.

- 4,107
- 5
- 24
- 37
-
you mean once we download the files from Androidmaps.co.uk we can directly set it as the offline source in Nutiteq code? @JaakL – gumuruh Aug 25 '14 at 07:23
-
@gumuruh - yes. For implementation sample see the wiki page mentioned in the answer above. – JaakL Aug 26 '14 at 09:08
.osm
is just OSM's XML file format containing elements and tags. That is, it contains raw data. According to the nutiteq website nutiteq doesn't support this format directly. But it supports various other formats like MBTiles which are suitable for offline use.

- 20,297
- 4
- 56
- 72
-
which means.... nutiteq has a converter for that format to be readable @ChasingCars ? – gumuruh Aug 25 '14 at 07:19
-
Nutiteq SDK supports several formats really. For Mapsforge you should use mapsforge tool - .map file plugin for osmosis. For Nutiteq vector maps (coming with SDK 3.x) nutiteq will provide OSM conversion toolkit. – JaakL Aug 26 '14 at 09:38