offline maps

414 views
Skip to first unread message

Ali Ahmadi

unread,
May 17, 2012, 9:11:51 AM5/17/12
to osm...@googlegroups.com
Hi all
i need to use OSMAND with offline maps due to connectivity problems.
please help me how to use it
also i need offline routing.
i have a tablet which it doesn't have internet connection, so i need offline maps and routing
thanks

sanderd17

unread,
May 17, 2012, 12:37:26 PM5/17/12
to osm...@googlegroups.com
Hi Ali.

I assume you have installed OsmAnd? If this is not the case, install it from here: https://play.google.com/store/apps/details?id=net.osmand&feature=search_result#?t=W251bGwsMSwxLDEsIm5ldC5vc21hbmQiXQ..

Now, once you installed it, you have to download data for your region. This can be done by going to Settings -> Offline data. When you are there, click on the "world globe" icon in the top right of your screen.

Now you can search for the region you need, and you can install a voice you want for navigation. Select the right files and click on "Download". This can take a while, so don't download a lot of files at once.

Once you have downloaded the data, you go back to settings, and at "Map configuration", you make sure that "offline vectormaps" is enabled. Under "Navigation", you also select "OSMAND" as your routing engine, so you can route with the offline data. Also, don't forget to select the right voice (after the file you just downloaded).

I hope this helps.

Ali Ahmadi

unread,
May 18, 2012, 4:07:10 AM5/18/12
to osm...@googlegroups.com
Hi
thanks
i've downloaded my preferred map via MOBAC cause my city was not in the list you mentioned
and put them in sdcard\osmand\tiles\GoogleMaps
now i need offline routing
how could it be possible?

sanderd17

unread,
May 18, 2012, 4:20:28 AM5/18/12
to osm...@googlegroups.com
There are two types of offline data:

  • There is tile data, this is the kind of data you can Download with MOBAC. Tile data only contains the images, so OsmAnd doesn't know where the roads are and can't do routing nor searching
  • There is also vector data: data that tells OsmAnd at which position there is a road, where there is a house ... OsmAnd can use this data to render it on your screen, it can use this data to calculate a route, or to search an address.
It is clear, with the data you've downloaded, you can only "view" a map offline, nothing else. To do those other things, you really need vector data. Normally all regions are available in the download section. Can you tell me what region you want, so I can see if that region does or does not exist, and on what keyword you have to search.

If the region doesn't exist yet, I'll tell you how to create your own data, and I'll file a bug report so that region will eventually be included.

Ali Ahmadi

unread,
May 18, 2012, 5:00:00 AM5/18/12
to osm...@googlegroups.com
thanks
i need tile data to show map offline on my tablet,
also i need vector files to calculate routes

i need my city map, wich is "Isfahan, Iran" and i searched for it
could you please teach me how to download vector map files?
thanks

Jindřich Makovička

unread,
May 18, 2012, 5:09:18 AM5/18/12
to osm...@googlegroups.com
You can download iran.osm.pbf from
http://download.geofabrik.de/osm/asia/ and use Osmand Map Creator to
generate Osmand's obf format.

Unfortunately, OSM maps for Isfahan (and all Iran) seem to be very
crude to be of any use for navigation.
--
Jindřich Makovička

Ali Ahmadi

unread,
May 18, 2012, 5:16:58 AM5/18/12
to osm...@googlegroups.com
i have tested online version and it seems to be good at 90% of routing times.
i hope to be OK when i download them.
thanks

sanderd17

unread,
May 18, 2012, 5:20:23 AM5/18/12
to osm...@googlegroups.com
Iran is also available directly on OsmAnd: http://download.osmand.net/indexes.php

But it's only the 1-version. So those maps only work with the market version of OsmAnd. Not with the nightly builds.

In other words, if you follow what I explained in the first post, and search for "Iran", you will get your map.

But I agree with Jinřich that OSM isn't very well developed in Iran.

Ali Ahmadi

unread,
May 18, 2012, 5:21:49 AM5/18/12
to osm...@googlegroups.com
could you please tell me where to download Osmand Map Creator ? in order to download iran data files!
thanks

sanderd17

unread,
May 18, 2012, 5:28:18 AM5/18/12
to osm...@googlegroups.com
There is no need to download the map creator when you use the market version of OsmAnd. Just search in the Download list for "Iran".

If you really do want to make your own maps, look here: http://code.google.com/p/osmand/wiki/HowToArticles#How_To_Prepare_own_data_to_use_offline

Ali Ahmadi

unread,
May 18, 2012, 6:35:58 AM5/18/12
to osm...@googlegroups.com
thanks
I'll try it.
i want to weather i can view vector maps 3D in OSMAND or not?
i have  used NAVITEL and i just wonder how it rotates and changes to 3D

sanderd17

unread,
May 18, 2012, 6:54:32 AM5/18/12
to osm...@googlegroups.com
3D Navigation isn't supported (yet) in OsmAnd. It's not something that's really needed for navigation. There are other features I would rather see implemented (such as navigation to google contacts).

But if you want 3D mode, you can support that feature here: http://www.bidforfix.com/p/osmand.net/3/

You can also check out the other wanted features: http://www.bidforfix.com/p/osmand.net/

A lot of those features that got full support have already been implemented.

Ali Ahmadi

unread,
May 18, 2012, 8:33:46 AM5/18/12
to osm...@googlegroups.com
thanks
i downloded iran.osm.pbf file from http://download.geofabrik.de/osm/asia/
and also downloaded OsmAndMapCreator-0.6.8-beta.zip

but don't know how to use it to create obf file
would you please help me how to use them?
thanks

Ali Ahmadi

unread,
May 18, 2012, 9:35:17 AM5/18/12
to osm...@googlegroups.com
i made .obf file and copied to osmand folder
when i open OsmAND, it gives me error "The version of Index "iran.obf" is not supported!"
what should i do ?

Pavol Zibrita

unread,
May 18, 2012, 9:39:05 AM5/18/12
to osm...@googlegroups.com
From OsmAnd version 0.8 you will need newest MapCreator. Old maps will work till version 0.7.3.
There was also some period that 0.8 builds were marked as 0.7.3. So if you got the error,
you probably have 0.8 OsmAnd version.

Best regards,
Pavol

Ali Ahmadi

unread,
May 18, 2012, 9:50:29 AM5/18/12
to osm...@googlegroups.com
yes
i have compiled OsmAnd 0.8 alpha
and downloaded OsmAndMapCreator 0.6.8 beta
so what should i do now?

Pavol Zibrita

unread,
May 18, 2012, 9:53:36 AM5/18/12
to osm...@googlegroups.com
Download the correct map creator:
http://download.osmand.net/latest-night-build/OsmAndMapCreator-development.zip

Or use earlier OsmAnd version (OsmAnd on market is 0.7.3) branch: master-7.2

Best regards,
Pavol

sanderd17

unread,
May 18, 2012, 10:12:48 AM5/18/12
to osm...@googlegroups.com
Maybe one thing: routing is broken in the alpha version (it's called alpha for a reason)

Ali Ahmadi

unread,
May 18, 2012, 10:18:15 AM5/18/12
to osm...@googlegroups.com
thanks
the problem of versions solved.

but now, the problem is that when i try to calculate routing, it gives me error and OsmAnd closes unexpectedly.

Pavol Zibrita

unread,
May 18, 2012, 10:53:13 AM5/18/12
to osm...@googlegroups.com
Offline routing is not yet working at all in 0.8 version.

Best regards,
Pavol

Ali Ahmadi

unread,
May 18, 2012, 10:55:32 AM5/18/12
to osm...@googlegroups.com
here is the exception.log content

Exception occured in thread Thread[Calculating route,5,main] : May 18, 2012 6:45:33
java.lang.UnsupportedOperationException: This functions is deprecated and should be deleted
    at net.osmand.binary.BinaryMapDataObject.getTagValue(BinaryMapDataObject.java:125)
    at net.osmand.router.CarRouter.getRoadPriorityToCalculateRoute(CarRouter.java:126)
    at net.osmand.router.BinaryRoutePlanner.findRouteSegment(BinaryRoutePlanner.java:160)
    at net.osmand.plus.routing.RouteProvider.findVectorMapsRoute(RouteProvider.java:627)
    at net.osmand.plus.routing.RouteProvider.calculateRouteImpl(RouteProvider.java:272)
    at net.osmand.plus.routing.RoutingHelper$3.run(RoutingHelper.java:605)
    at java.lang.Thread.run(Thread.java:1019)
Exception occured in thread Thread[Calculating route,5,main] : May 18, 2012 6:46:53
java.lang.UnsupportedOperationException: This functions is deprecated and should be deleted
    at net.osmand.binary.BinaryMapDataObject.getTagValue(BinaryMapDataObject.java:125)
    at net.osmand.router.CarRouter.getRoadPriorityToCalculateRoute(CarRouter.java:126)
    at net.osmand.router.BinaryRoutePlanner.findRouteSegment(BinaryRoutePlanner.java:160)
    at net.osmand.plus.routing.RouteProvider.findVectorMapsRoute(RouteProvider.java:627)
    at net.osmand.plus.routing.RouteProvider.calculateRouteImpl(RouteProvider.java:272)
    at net.osmand.plus.routing.RoutingHelper$3.run(RoutingHelper.java:605)
    at java.lang.Thread.run(Thread.java:1019)
Exception occured in thread Thread[Calculating route,5,main] : May 18, 2012 6:50:09
java.lang.UnsupportedOperationException: This functions is deprecated and should be deleted
    at net.osmand.binary.BinaryMapDataObject.getTagValue(BinaryMapDataObject.java:125)
    at net.osmand.router.CarRouter.getRoadPriorityToCalculateRoute(CarRouter.java:126)
    at net.osmand.router.BinaryRoutePlanner.findRouteSegment(BinaryRoutePlanner.java:160)
    at net.osmand.plus.routing.RouteProvider.findVectorMapsRoute(RouteProvider.java:627)
    at net.osmand.plus.routing.RouteProvider.calculateRouteImpl(RouteProvider.java:272)
    at net.osmand.plus.routing.RoutingHelper$3.run(RoutingHelper.java:605)
    at java.lang.Thread.run(Thread.java:1019)

Ali Ahmadi

unread,
May 18, 2012, 10:56:05 AM5/18/12
to osm...@googlegroups.com
in which version is working?

Pavol Zibrita

unread,
May 18, 2012, 11:43:04 AM5/18/12
to osm...@googlegroups.com
0.7.3 and lover.

best regards,
Pavol

Rahul Maindargi

unread,
May 18, 2012, 11:49:40 AM5/18/12
to osm...@googlegroups.com

Offline Navigation is working perfectly in 0.7.3 or 0.7.2. 

I will suggest you to download osmand from Android market. (https://play.google.com/store/apps/details?id=net.osmand

and OSM Map creator from below Link

in this case your offline navigation will be working fine... 

Hope it helps. 

sanderd17

unread,
May 18, 2012, 12:02:28 PM5/18/12
to osm...@googlegroups.com
There is no need to use the map creator when using 0.7.x versions. Iran is in the repository.

In other words. Do as I suggested in my first post. There was no need to make this a 24-posts thread.

Sorry if I'm rude, I'm no developer of OsmAnd BTW. I just thought I would hop in and try to answer some questions (developers don't have to put their time in this). But this apparently failed.

Ali Ahmadi

unread,
May 18, 2012, 2:10:51 PM5/18/12
to osm...@googlegroups.com
i need to compile it myself
because i use my own external GPS device and i have to make them compatible.
how can i download 0.7.3 source code?

Jindřich Makovička

unread,
May 18, 2012, 3:05:42 PM5/18/12
to osm...@googlegroups.com

You can clone the OsmAnd Git repository and checkout the 0.7.3 branch, if you are sure what you are doing.

Ali Ahmadi

unread,
May 19, 2012, 9:51:09 AM5/19/12
to osm...@googlegroups.com
I'm sure about what i'm doing
but i don't know how to clone 0.7.3 on Git repository
please help me on this
thanks

Jindřich Makovička

unread,
May 19, 2012, 10:15:51 AM5/19/12
to osm...@googlegroups.com
git clone https://github.com/osmandapp/Osmand.git
git checkout master-7.2

you can also do this in the Eclipse GUI using eGit.
--
Jindřich Makovička

Ali Ahmadi

unread,
May 19, 2012, 10:32:38 AM5/19/12
to osm...@googlegroups.com
is there any online way to do this?
thanks

Robert Grant

unread,
May 20, 2012, 10:54:24 PM5/20/12
to osm...@googlegroups.com
I would also like to add that the background service with offline routing works well in version 0.7.3.  With the screen off and background service running the user can enjoy very long battery life.  I recently rode my bike for over 7 hours outside of Munich running multiple apps, including Osmand and Strava.  With the phone in airplane mode and using a mix of screen on and off, I arrived with 30% battery life remaining.

Robert

Sent from my iPad
Reply all
Reply to author
Forward
0 new messages