-
Re: Offline maps on Android in China
Quote:
But when I try to download the map after clicking the "Create atlas" button I get the following error: Unable to find SQLite libraries. These are required for selected atlas format.
Motokai, if you haven't sorted "Unable to find SQLite libraries"
this is how i got it work:
download http://files.zentus.com/sqlitejdbc/sqlitejdbc-v056.jar, and place to same directory where Mobile_Atlas_Creator.jar is located.
SQLite (optional)
Some atlas formats uses a SQLite database for storing the tiles. For creating SQLite database the additional Java library SQLiteJDBC is required. MOBAC has been tested with sqlitejdbc-v056.jar - newer versions should also work.
Installation of the additional SQLite libraries is pretty simple: Just jownload the JAR file and place it in the same directory where Mobile_Atlas_Creator.jar is located. Alternatively you can place it in any path covered by the JAVA search path. The next time MOBAC is started the SQLite library is loaded and can be used."
-
Re: Offline maps on Android in China
felix, thank you for sharing the infor corrects gps coordination. do you get that offset value by manual calibration?
-
Re: Offline maps on Android in China
Hi td-ref, no problem i'm happy to share. I'm not sure what you mean by that question. I used googlemaps to calculate the offset, and it's actually quite easy:
(This only works in maps.google.com, it doesn't work with ditu.google.cn)
In googlemaps right-click on an intersection of two roads and select "what's here". That gives you the coordinates of that point, for example 31.375452, 120.951090
Then switch to satellite view, find where that intersection really is, and using right-click again get the coordinates for that, in this example it will be 31.377550, 120.946839
Then just subtract one from the other to find the offset. So in this example the offset is +2098, -4251
I get slightly different values every time i do it, but it doesn't make any big difference on the phone. Also remember that the offset is different in other parts of China, so if you're in Shenzhen you should find out what the offset is down there!
-
Re: Offline maps on Android in China
Quote:
Originally Posted by
felix
Hi td-ref, no problem i'm happy to share. I'm not sure what you mean by that question. I used googlemaps to calculate the offset, and it's actually quite easy:
(This only works in maps.google.com, it doesn't work with ditu.google.cn)
In googlemaps right-click on an intersection of two roads and select "what's here". That gives you the coordinates of that point, for example 31.375452, 120.951090
Then switch to satellite view, find where that intersection really is, and using right-click again get the coordinates for that, in this example it will be 31.377550, 120.946839
Then just subtract one from the other to find the offset. So in this example the offset is +2098, -4251
I get slightly different values every time i do it, but it doesn't make any big difference on the phone. Also remember that the offset is different in other parts of China, so if you're in Shenzhen you should find out what the offset is down there!
I did some investigation on the GM offset as well.
- The difference from now to next time may be related to the zoom factor.
- I heard the offsets are random (within certain limits) but Google folks seem to have a muzzle :confused1:
I came across this website. hey have a database which might be useful - haven't checked it out though.
-
Re: Offline maps on Android in China
Quote:
Originally Posted by
chinabiker
I did some investigation on the GM offset as well.
- The difference from now to next time may be related to the zoom factor.
- I heard the offsets are random (within certain limits) but Google folks seem to have a muzzle :confused1:
I came across this
website. hey have a database which might be useful - haven't checked it out though.
The algorithm has been cracked and and open sourced. It's not that difficult to program into an application, but it's a PITA if you're just trying to fix a single track. I'm sure someone will come along soon with a web based form where you can upload a kml file and convert it from correct to China or China to correct. I started working on it, but got scared. The reason you don't hear more about it is to avoid a re-setting of the algorithm by the gvmt.
Cheers!
ChinaV
-
Re: Offline maps on Android in China
Quote:
Originally Posted by
felix
Motokai, this is exactly the same problem you had before. To output sqlite files, you need to have that sqlite_jni.dll file in the mobac folder. Since you upgraded to mobac 1.8 that file is no longer in there.
Just do the same thing you did last time.
Euphonius, it's been hard work getting this far but it's nice that it's all sorted and working now. Are you sure you can't figure it out with the info in this thread? Extremely basic breakdown:
1 - Mobac 1.8 for your computer
2 - Oruxmaps for your android phone
3 - Edit coordinates in the xml file.
To all: never forget the power of google! I knew nothing about any of this a few weeks ago. FAQ and instructions already exist for Mobac and Oruxmaps, the only hard part is the china offset which i explained above.
If still needed, i may start a new thread with step by step.
#3 how exactly do you edit the coordinates in the xml file? I figured out how to calculate the offset, +/-xxx, +/-yyy .. but then you have to calculate the new coordinates for every point? It's an XML file, you used some xml editor or what? I never got to working with xml files so I don't really know my way..
Yes, this is from a year ago, but so far I've been creating maps and ignoring the China offset, or using my imagination on the road when in doubt, which got me into serious trouble once.
-
Re: Offline maps on Android in China
Hi Slabo,
I use a program called notepad++ for editing, it's free and simple. I just open the .otkr2.xml file in that, change the numbers and then save. (back up the original file first in case you mess up)
Yes once you've worked out the offset you have to change every point in the file, but actually it doesn't take that long, there are 8 points for each zoom level. 10mins with a calculator is well worth it for having correct maps on your phone. You can round the last 2 numbers to 0 as they make very little difference, for example these are the corrections i use for the shanghai area:
lon -0.004600
lat +0.001900
One year later, i am still using this method. The latest version of oruxmaps is very good.
-
Re: Offline maps on Android in China
Hi!
I'm glad I stumbled upon this post randomly. I am going to visit China in 10 days. As usual for foreign countries, I grab a map of the country with MOBAC, save it in .sqlite format for use in Locus application on Android.
I've noticed the strange mismatch between Google satellite photos and street maps, but hoped till the last that the street maps should be correct.
Anyhow, you were talking about "offset of death".
Are maps grabbed with MOBAC with this offset?
Does offset apply to satellite photos or to street maps?
Thank you! :)
P.S. In case you were wondering: Locus application - http://forum.asamm.cz/viewtopic.php?f=26&t=348
-
Re: Offline maps on Android in China
Quote:
Originally Posted by
Zuru
Hi!
I'm glad I stumbled upon this post randomly. I am going to visit China in 10 days. As usual for foreign countries, I grab a map of the country with MOBAC, save it in .sqlite format for use in Locus application on Android.
I've noticed the strange mismatch between Google satellite photos and street maps, but hoped till the last that the street maps should be correct.
Anyhow, you were talking about "offset of death".
Are maps grabbed with MOBAC with this offset?
Does offset apply to satellite photos or to street maps?
Thank you! :)
P.S. In case you were wondering: Locus application -
http://forum.asamm.cz/viewtopic.php?f=26&t=348
Yes, your maps grabbed with MOBAC are going to be offset. Satellite view will probably be fine.
Cheers!
ChinaV
-
Re: Offline maps on Android in China
I accidentaly found out that Gaode/autonavi GPS navigation app has native English support, I couldn't believe it it has been there for sometime in their android app. am I the first one who knows that, switching the system language also apply the application?
check this out FYI
http://c.autonavi.com/club/android/
the apk URL
http://mlbsdown.autonavi.com/navi/Autonavi.apk 30 day trial license before payment.
maps can be download by provineces over WIFI.
-
Re: Offline maps on Android in China
Hi everyone!
This is very interesting thread! I am planing the route for October holidays. I've exported google maps route to gpx/klm (via gpsvisualiser website) but after I load it to OruxMaps on android phone as klm overlay, it's all shifted :/
It's 2+ years since last update to this thread so I was wondering if there is any easy way to shift whole gpx/klm track by "China offset" in Shanghai/Zhejiang area? I'm imagining some neat mapping website where you can load gpx/klm file and then drag and drop it where it should be (or at least enter [x] and [y] shift) and export it again :) If no such thing exists I will dive into editing sqlite xml as Felix described years ago!
thanks for any tips and wish everyone safe travels during the holz !
Daniel
-
Re: Offline maps on Android in China
Try Here maps (formerly Nokia Ovi Maps). I haven't given it a shot yet, but if it's anywhere near what Ovi was, then we've got ourselves some great offline navigation app here.
https://play.google.com/store/apps/d...app.maps&hl=en
-
Re: Offline maps on Android in China
I haven't paid much attention to this thread, despite being a long time user of GPS software/apps in PRC and elsewhere. Mainly this is due to the fact that I have used such GPS apps on Window Mobile based smartphones (namely HTC's). I developed a fondness for Garmin XT on WinMo, and have been using it for many years. GarminXT managed to get me from Ningbo to all manner of locations in and round PRC, and most recently from Ningbo to Chiang Rai, Thailand albeit the PRC map being 2012 is fairly out of date in places (I have more recent maps but 2,2GB for PRC is an intensive RAM consumer - over the 750MB map I've been using, so I sacrifice the up-to-date larger RAM hungry map for the older map that works more cleanly and quickly on the HTC HD2). However a couple of issues forced me to look at my Samsung Galaxy Note which I had not used for more than a camera alternative, ebook reader, and watching the odd video etc.
Since being in Thailand I have had to look at GPS options for the Android (JB 4.2) based Samsung, and have been utilising both Sygic and OSMand+ - both of which provide offline map and routing like true GPS devices/apps do and not the data connection dependant (revenue driven) aGPS like G00g.le maps et al., offer. I am aware that G00g.le offer the ability to download tiles of maps for offline use, but routing like a true GPS is not a strong function IMO. That and the issues with G00g.le in PRC lessen any mild enthusiasm I might have for G00g.le. I have been playing with CityMaps 2Go Pro, which offers a full range of downloadable offline maps including PRC. The maps for PRC though are only offered as either cities or provinces etc, there's no one full map of the whole of the country. Great if one has a specific place to navigate in mind, but a when one has to cross numerous jurisdictions it can be a little tedious getting all the maps needed. CityMaps 2 Go, doesn't offer any routing ability (like G00g.le maps), but instead working like a true map, with the added advantage of using satellites and not data (Simcard/Wifi).
OSMand & OSMand+ offer a full suite of offline maps, including PRC. I've downloaded a full range of OSMand maps for Asia and Australasia and have found the functions and mapping features of OSMand+ in Thailand to be very good. Sygic offer offline maps however don't have maps for PRC, - so despite having the map for Thailand loaded, I have used Sygic far less. The Sygic map also does not have many if any, dirt tracks mapped - which the OSMand Thailand map does. Sygic does have the ability to link photos with GPS locations though which seems like a very worthwhile feature. Still I have hardly used Sygic.
My only concern is whether or not there will be any issues with map 'offset' on the OSMand PRC map when I ride back from Thailand to PRC via Laos in the next few weeks.
I've been attempting to install Navigon onto the Samsung Android phone, but can't seem to get Android Market or Google play to link/work to fully install and therefore download (Garmin) maps. My thinking was to utilise Navigon and work on reformatting and composing the Garmin PRC map to work with Navigon (owned by Garmin) since Navigon only offers EU maps at this moment in time. I give up on Navigon.
-
Re: Offline maps on Android in China
Further to post #43 above, I used OSMand+ loaded with a bunch of maps including Thailand, Laos & PRC and navigated from northern Thailand through Laos and into PRC via the Boten border crossing all the way up to Ningbo successfully. The OSMand map of PRC is incomplete which does impact (offline) routing as I discovered in Southern Zhejiang when I got escorted off the Expressway riding my GS. I soon discovered some of the secondary roads on the OSMand map were not mapped fully (either with some minor roads missing, or not joined to other roads, wherein reality the road does).
OSMand+ worked flawlessly without any offset inside PRC!
I have bought a Garmin Nuvi 2805 (¥880) complete with maps of NZ, Australia, Thailand & PRC for my next big trip on my GS end of 2015. I've also made a Garmin compatible map of Laos which I've put onto the Nuvi micro-SD card. The Nuvi finds and recognises the Laos map which I made routable. Fingers crossed that I'll be able to plan a route all the way from my house near Ningbo, south to the Boten Border crossing (PRC & Laos) then navigate southwest through Laos to the Chiang Khong crossing into northern Thailand again near end of December. Basically same trip I completed 1 January-5 March 2015. This will make the third trip to northern Thailand in 2 years (inclusive of Jan & Feb 2014, Jan-Mar 2015). Planning to hop on the Expressways and hang on for the ride... again
:riding:
I bought the Garmin Nuvi as a backup mainly for using here in PRC. I plan to continue to use the Samsung / Android with the offline navigating apps as mentioned in my post #43, as well as using GarminXT on my HTC HD2 (WinMO) phone.
I was able to copy my 900+POIs over from GarminXT to the Nuvi.
:icon10:
-
Re: Offline maps on Android in China
Have installed "Offline Maps+" as well as "TomTom Go" onto my Samsung (Android JB 4.2) phone and plan to check these nvigation apps out. Offline Maps+ allows map tiles or cache which can be downloaded and saved from multiple sources including Goog.le and B!ng maps amongst about 8 different source options buitl into Offline Maps+ which can then be utilised for offline navigation without the need for data (simcard or wifi) connection. Still getting familiar with the app at the minute.
Another Android navigating map I might try out is Back Country Navigator Pro...
-
Re: Offline maps on Android in China
Try OsmAnd+ with china maps, but you have to compile the source code.
https://github.com/swkim01/osmand
-
Re: Offline maps on Android in China
What do you mean "Have to compile the source code"? OsmAnd+ works perfectly out of the box on android phones. Unless you mean compiling it to use a different map source. It currently uses openstreetmap.org as map source. openstreetmap.org have great maps, and are very complete in Europe and N. America. In China though, many of the smaller tertiary roads are missing or incomplete. What is there though is not affected by offset issues. Further, Osmand+ works quite well as a turn by turn navigation tool. I used it daily in Canada as a service technician getting to addresses all over my territory. In China it is all I use and it gets me where I need to go. For backroads and hiking trails, there is not much listed but I turn on tracking and upload all my tracks to the openstreetmap.org servers so it is there for the next user. Osmand+ links to updated openstreetmap.org maps about once per month so what you download is pretty up to date.
Quote:
Originally Posted by
aquilegia
-
Re: Offline maps on Android in China
Quote:
Originally Posted by
billeuze
What do you mean "Have to compile the source code"? OsmAnd+ works perfectly out of the box on android phones. Unless you mean compiling it to use a different map source. It currently uses openstreetmap.org as map source. openstreetmap.org have great maps, and are very complete in Europe and N. America. In China though, many of the smaller tertiary roads are missing or incomplete. What is there though is not affected by offset issues. Further, Osmand+ works quite well as a turn by turn navigation tool. I used it daily in Canada as a service technician getting to addresses all over my territory. In China it is all I use and it gets me where I need to go. For backroads and hiking trails, there is not much listed but I turn on tracking and upload all my tracks to the openstreetmap.org servers so it is there for the next user. Osmand+ links to updated openstreetmap.org maps about once per month so what you download is pretty up to date.
^Ditto to that.
I've used OSMand+ in Ch!na, Laos & Thailand & found it to be equally as good as either GarminXT on my WinMo HTC HD2 (Leo) T8585 devices or dedicated Garmin Nuvi device. The China mapping is pretty darn good on the OSMand+ IMO with the Openstreet maps despite some roads being incomplete. In NZ, OZ, Laos and Thailand OSMand+ maps are so good that many dirt tracks are also mapped, even single tracks. The Ch!na mapping being a little less complete simply reflects the decreased number of users that upload new tracks to the Openstreetmap server - something I'm also guilty of...
The positive aspect is that there are no areas in Ch!na affected by any map offset issues.
I've used Osmand+ three times to navigate from Zhejiang province through Ch!na, Laos and Thailand very very successfully, including extensive riding through Yunnan province this past March 2016.
:eek2:
-
Re: Offline maps on Android in China
Works for me as well on my little ride I am on now Shandong to London with most EU country's and then back to China.
-
Re: Offline maps on Android in China
Quote:
Originally Posted by
billeuze
What do you mean "Have to compile the source code"? OsmAnd+ works perfectly out of the box on android phones. Unless you mean compiling it to use a different map source. It currently uses openstreetmap.org as map source. openstreetmap.org have great maps, and are very complete in Europe and N. America. In China though, many of the smaller tertiary roads are missing or incomplete. What is there though is not affected by offset issues. Further, Osmand+ works quite well as a turn by turn navigation tool. I used it daily in Canada as a service technician getting to addresses all over my territory. In China it is all I use and it gets me where I need to go. For backroads and hiking trails, there is not much listed but I turn on tracking and upload all my tracks to the openstreetmap.org servers so it is there for the next user. Osmand+ links to updated openstreetmap.org maps about once per month so what you download is pretty up to date.
That version is not just same as original. I revised to support commercial chinese maps such as baidu, sogou, and so on, which have offset issues with their own map coordinates, and even 3d viewing with dem data. Please read that link, especially advanced feature and east asia map sections. But note that the source code is old dated more than one year.
-
Re: Offline maps on Android in China
Quote:
Originally Posted by
aquilegia
That version is not just same as original. I revised to support commercial chinese maps such as baidu, sogou, and so on, which have offset issues with their own map coordinates, and even 3d viewing with dem data. Please read that link, especially advanced feature and east asia map sections. But note that the source code is old dated more than one year.
Well, in that case, I'd say your link certainly deserves looking into. I'll check it out.
-
Since several years I use in China now "route66 navigator". It cost one time about 50 Euro. After that the app is running well and all maps worldwide are online available or you download the maps u need and use them offline. The map quality is very good under up to date. Offroad tracks are not available.
Sent from my HUAWEI P7-L07 using Tapatalk
-
2 Attachment(s)
Re: Offline maps on Android in China
Quote:
Originally Posted by
aquilegia
Aquilegia, I have downloaded the source code and I have installed the Android SDK for windows. I started the SDK manager and it asks which modules and images I want to install. What is the minimum I need to compile this OsmAnd?
Note I am not a developer but I am quite familiar compiling Linux applications from source and I have dabbled a tiny bit making simple programs in Java, C, C++. At the moment I only have a windows computer to use and a slow internet connection (downloading the Android Studio says it'll take a day to download).
Attachment 18654
Attachment 18655
-
Re: Offline maps on Android in China
Quote:
Originally Posted by
billeuze
Aquilegia, I have downloaded the source code and I have installed the Android SDK for windows. I started the SDK manager and it asks which modules and images I want to install. What is the minimum I need to compile this OsmAnd?
Note I am not a developer but I am quite familiar compiling Linux applications from source and I have dabbled a tiny bit making simple programs in Java, C, C++. At the moment I only have a windows computer to use and a slow internet connection (downloading the Android Studio says it'll take a day to download).
Refer to this link. But you can use a pre-compiled version from https://github.com/swkim01/Osmand/releases.
-
Re: Offline maps on Android in China
Quote:
Originally Posted by
aquilegia
OK, that makes it a lot easier, thanks aquilegia. Downloading the apk to my phone now...
-
Re: Offline maps on Android in China
well my phone doesn't want to install this app because it has the same name as one already installed. Seeing as I happen to have a brand new phone arriving in 2 days, I'll just wait and install the new Osmand-East-Asia on the new one. I don't want to uninstall my current OsmAnd just yet.
-
Re: Offline maps on Android in China
Thank you so much aquilegia, this is wonderful.
I installed to test on my new phone. Note, for anyone using this, you must do the step listed in the notes, that means copy the custom_tile_sources.xml file into the "tiles" folder of the OsmAnd data path. Once that file is in place, when you choose :"Settings" >> "Configure Map" >> "Map Source" >> "Install more", then scroll about 1/3 of the way down the list to the section on China maps (its not alphabetically listed) where you can select which ones to ad to your regular "Map Source" list.
I added Baidu, Sogou and GoogleMaps of China. The only downside to using these alternate maps is that they are not offline maps like the regular OsmAnd OpenStreetMap map. But, as long as you enable a data connection on your phone, you can use these maps. When I have a section of map on my display, I just switch to a different map source and it shows the same area but with the new map. This is great for filling in the gaps where OpenStreetMaps is missing some smaller roads.
It even uses google map, with corrected offset and with just a normal internet connection (no VPN)!
I just had one issue is that in this interface I can't download the contour maps for each province of China like I can with the current official OsmAnd. Even though I installed my purchased copy of OsmAnd contour lines support on the new phone I still can't download the contour lines. But, I copied the contour files over from the old phone to the new and now they display on the new phone too.
Quote:
Originally Posted by
aquilegia
-
Re: Offline maps on Android in China
Quote:
Originally Posted by
billeuze
Thank you so much aquilegia, this is wonderful.
I installed to test on my new phone. Note, for anyone using this, you must do the step listed in the notes, that means copy the custom_tile_sources.xml file into the "tiles" folder of the OsmAnd data path. Once that file is in place, when you choose :"Settings" >> "Configure Map" >> "Map Source" >> "Install more", then scroll about 1/3 of the way down the list to the section on China maps (its not alphabetically listed) where you can select which ones to ad to your regular "Map Source" list.
I added Baidu, Sogou and GoogleMaps of China. The only downside to using these alternate maps is that they are not offline maps like the regular OsmAnd OpenStreetMap map. But, as long as you enable a data connection on your phone, you can use these maps. When I have a section of map on my display, I just switch to a different map source and it shows the same area but with the new map. This is great for filling in the gaps where OpenStreetMaps is missing some smaller roads.
It even uses google map, with corrected offset and with just a normal internet connection (no VPN)!
Once you displayed a section of map, the corresponding image tiles of that section are cached to the "tiles" folder, then next time you can display it off-line without data connection. Even you can download multiple tiles with multiple zoom scales at one time through "Download map" item in context menu.
-
Re: Offline maps on Android in China
Quote:
Originally Posted by
aquilegia
Once you displayed a section of map, the corresponding image tiles of that section are cached to the "tiles" folder, then next time you can display it off-line without data connection. Even you can download multiple tiles with multiple zoom scales at one time through "Download map" item in context menu.
OK, you've got me there. How do I access the context menu in order to "Download Map"? I can't find it
-
Re: Offline maps on Android in China
Quote:
Originally Posted by
billeuze
OK, you've got me there. How do I access the context menu in order to "Download Map"? I can't find it
After long-clicking a point on the map, click the pop-up location box. Then the context menu will be appeared.