Locus Map - forum

Development => Discussion/New features => Topic started by: Menion on March 16, 2011, 12:38:15

Title: Google Maps in China
Post by: Menion on March 16, 2011, 12:38:15
Hi to all,
  so I thought about adding Google maps for China. It's simple, they're there or can be added from http://ditu.google.cn/ (http://ditu.google.cn/).

anyway, basic google maps have one problem. They're shifted by unknown value. Simple try. Looks in Locus with OSM maps on any place in china, then switch to google hybrid. Everything nice right? Fine, then switch to google basic ... still nice?

So, I want to add some fix to this. Few guys from China already asked me for this and now looks we'll have also China translation ...

so possibilities are two as I know

1) someone find any algorithm that do this shift!

2) if this shift is changing slowly, someone create for me some raster with identical points and shift value at these points and I'll do some interpolation in application from these values.

so, any idea?
Title: Re: Google Maps in China
Post by: liang3404814 on March 18, 2011, 13:21:14
For the trouble with with Google Maps in China, I Googled and found that although there are people figuring out ways to analyze google's Javascript tricks(to present the right picture at the right place), recently Google has changed the interface so the old ways are rendered useless.

The new method gets the image from

http://mt1.google.cn/vt/lyrs=s@58&gl=cn ... =14&s=Gali (http://mt1.google.cn/vt/lyrs=s@58&gl=cn&x=13381&y=7138&z=14&s=Gali)

and

http://khm1.google.com/kh/v=58&x=13381& ... =14&s=Gali (http://khm1.google.com/kh/v=58&x=13381&y=7138&z=14&s=Gali)


to see the shift in the coordinates in the centre of picture.
(http://http://www.anttna.com/wp-content/uploads/2010/04/findoffset21.jpg)



(Origin: http://wap.anttna.com/index-wap2.php?p=641 (http://wap.anttna.com/index-wap2.php?p=641) I'm not so confident if I could translate the site well...)
Title: Re: Google Maps in China
Post by: rijackson741 on June 13, 2011, 22:43:39
Anyone intending to go to China with Locus should be aware of this:

http://news.xinhuanet.com/english2010/c ... 302696.htm (http://news.xinhuanet.com/english2010/china/2010-05/19/c_13302696.htm)

As I read it, if you even have China maps on your phone you are violating the law. If you create so much as one POI you are breaking the law.

Talk about draconian!

(and if you are dumb enough to stand outside a military base entering POI information, see you in 20 years  :D )
Title: Re: Google Maps in China
Post by: wldbest on August 06, 2011, 02:01:18
i checked hybrid map and it seems works fine

but i had made POIs based on shifted google roadmap.
it still causes big problems.

could you please implement manual calibration?
i think google chages algorithm regurally
so manual calibration is good enough.

entering numbers east/north or
manually move map to current gps location..

i really need this fearure.
my pois are useless now...
 i spent much time finding some pois...
Title: Re: Google Maps in China
Post by: rijackson741 on August 06, 2011, 02:47:17
Google gets the mapping data from China. The Chinese government supplies that data with offsets that vary across the country. The offset information is not available to anyone other than a few certified Chinese mapping companies, and certainly not to any foreign entity. All maps based on that data, which includes, Google, Microsoft, etc, show identical offsets. The only maps that are not affected are satellite images from Google (and maybe also from ArcGIS; I haven't checked), and OSM. OSM is correct because it's not under the control of the Chinese government, but that means even having it on your phone in China is illegal. I personally couldn't care less about that (just don't stand next to a police officer and play with the mapping on your phone!), but OSM maps have so little information they are essentially useless outside the major cities. The one thing I can think of that is a viable, if not ideal, solution, is to allow maps to be offset by the user. That offset could be figured out using the crude OSM maps or satellite images before even going to the specific location. Since it varies by location, it would be almost essential that the offsets could be stored, and recalled later. Allowing for such user defined offsets would also fix a couple of issues unrelated to China: http://http://forum.asamm.cz/viewtopic.php?f=10&t=659&p=3968&hilit=beijing#p3968
Title: Re: Google Maps in China
Post by: rijackson741 on November 21, 2011, 22:45:04
Quote from: "rijackson741"
The one thing I can think of that is a viable, if not ideal, solution, is to allow maps to be offset by the user. That offset could be figured out using the crude OSM maps or satellite images before even going to the specific location. Since it varies by location, it would be almost essential that the offsets could be stored, and recalled later. Allowing for such user defined offsets would also fix a couple of issues unrelated to China: http://http://forum.asamm.cz/viewtopic.php?f=10&t=659&p=3968&hilit=beijing#p3968

I'm off to China very soon (maybe as early as Saturday). Any thoughts on the idea of user offsets for maps? I realize this is a far from ideal solution, but I can't think of any other one.
Title: Re: Google Maps in China
Post by: Menion on November 22, 2011, 08:04:31
from my side no. I'm sorry but I have no reason to support some offset for maps. Google maps aren't supported by locus and no other map need this
Title: Re: Google Maps in China
Post by: rijackson741 on November 22, 2011, 16:27:21
Quote from: "menion"
no other map need this

Also OVI, Bing, and Yahoo maps, and any off-line map created from these sources. Although, since they are not supported either I guess the answer is still no.

As far as I can tell, outside Beijing and parts of Shanghai (where OSM maps are good) any map with enough detail to be useful to someone walking has the offsets, because the data was supplied by the Chinese government. So, sadly, outside a couple of locations, Locus is not very useful in China. I think you are in good company though, because I don't think there are any other mapping apps that are any better in this regard.
Title: Re: Google Maps in China
Post by: Menion on November 22, 2011, 16:32:51
OVI Bing and Yahoo maps also need this offset?? Anyway, non of them are officially supported as you surely know ... ok, I'll try to look at it soon ... anyway till sunday it surely not will be completed
Title: Re: Google Maps in China
Post by: rijackson741 on November 22, 2011, 17:06:39
Quote from: "menion"
OVI Bing and Yahoo maps also need this offset??

Yes. The offsets for these maps are in fact all the same (at least, based on my limited testing, they are). To be fair, the Bing and Yahoo maps do not have enough detail to be useful anyway, even if they did not have the offsets, but the OVI and Google maps are very good.

Because I travel to China quite a lot I did some research into the problem. All mapping data supplied by the Chinese government, which means all official mapping data from China, has these offsets. It seems kind of pointless to me, since any country or entity with enough power to even contemplate attacking China surely has accurate maps anyway, but things are not always logical!

Quote from: "menion"
Anyway, non of them are officially supported as you surely know ...

Yes, I realize that. I do not think there are any officially supported maps with much detail outside Beijing and Shanghai.

Quote from: "menion"
ok, I'll try to look at it soon ... anyway till sunday it surely not will be completed

Thanks. That is greatly appreciated.  :mrgreen:

Don't knock yourself out getting it done though. I realize that Sunday is a too short a time to get something like this done. I didn't know until yesterday morning that I was even going though; it's a very short notice trip. When I found out I was going it made me think of it again, but when I asked about it I didn't expect a solution by the time I left.

Also, when I'm there my chances of being able to download a new version are slim. I do not allow data roaming, and free WiFi hotspots are almost non-existent. There is going to be a next time though, and of course other users will also benefit from this.

Thanks again  :)
Title: Re: Google Maps in China
Post by: Menion on November 26, 2011, 17:43:16
hi,
  are you in China? Check new version from market (currently uploading). Go to functions and scroll down .. there's new "Map offset" tool ...
Title: Re: Google Maps in China
Post by: rijackson741 on November 28, 2011, 15:13:07
Quote from: "menion"
hi,  are you in China?

No. My trip got delayed. I have now been told that I have to be there soon, but I don't know exactly when. Maybe before the end of the week, maybe not until the middle of December. PITA :roll:

Quote from: "menion"
Check new version from market (currently uploading). Go to functions and scroll down .. there's new "Map offset" tool ...

Thanks Excellent.  :D  I'll check how it works.
Title: Re: Google Maps in China
Post by: rijackson741 on November 30, 2011, 20:04:07
This seems to solve the problem. I can now get my maps to line up properly with each other. I'll check it works with the GPS when I'm in China (although I can't see why it wouldn't!). Since the offsets vary from one place to another it would be nice if we could store multiple sets, with a name for each. That's not really necessary though, because I can store them in another file and copy and paste them into Locus

Working out the correct offsets is rather painful, so for anyone that wants them:
In Beijing: Forbidden City (in the center), 533m and 159m; Friendship Hotel (NW from the center, by the third ringroad), 518m and 139m; Summer Palace (NW from the center, by the fifth ringroad), 508m and 132m
Chengdu center: 250m and -265m.
I'll add other locations when I figure them out.

Thanks very much for this. It is going to make it so much easier when I'm in China!  :mrgreen:
Title: Re: Google Maps in China
Post by: EGE on February 26, 2012, 23:02:57
This resolved the problem for me too.

For Shanghai I used:
-420
230

Thank you Menion for the good work!
Title: Re: Google Maps in China
Post by: jeanwills on March 07, 2012, 03:48:58
thanks for all of these!
Title: Re: Google Maps in China
Post by: wldbest on July 06, 2014, 03:58:57
Hello.
Is there any solution for googlemap-china now?

I think I saw a message that support manual calibration of location at locuspro changes log.
But I can't find a proper menu now.

Please let me know whether there is a solution now.
Thanks..
Title: Re: Google Maps in China
Post by: Menion on July 06, 2014, 11:30:20
Hello,

as I know, currently only working solution is using "Offset".

For this, you have to use this function

http://docs.locusmap.eu/doku.php?id=manual:functions:map_offset