Locus Map - forum

Support => Troubles & Questions => Topic started by: mynamemyname on March 13, 2011, 21:36:02

Title: Location error ~25km using yandex.maps
Post by: mynamemyname on March 13, 2011, 21:36:02
Hello! There is a bug(?) which is exists in any releases till now.
It cause permanent location error ~25km to notrh (even if restart the application), if use OFFLINE yandex.maps after usage of any ONLINE maps except yandex.maps

How you can simulate it:
1) switch to online classic.yandex.maps
3) exit application, then start it again
4) save offline map of your region using classic.yandex.maps source
5) exit application, then start it again
6) switch to online classic.google.maps
7) exit application, then start it again
8) switch to offline classic.yandex.maps - Voila! - we have location error 25 km to north. The error is permanent, it exists even if restart the application.

To make location correct back, we need to do those steps:
1) switch to online classic.yandex.maps
2) exit application, then start it again
3) switch to offline classic.yandex.maps
now, we have correct location at offline classic.yandex.maps, but offline classic.google.maps became with error 25km to south  :o

ps. gps was always on and send my coordinates when i do all steps listed above - i don't know, maybe it matters.

Thanks for fix! :)
Title: Re: Location error ~25km using yandex.maps
Post by: Menion on March 14, 2011, 11:52:50
oh thanks, my big mistake. Yandex maps use little different projection. Now should be this fixed. Check test version ...
Title: Re: Location error ~25km using yandex.maps
Post by: mynamemyname on March 14, 2011, 23:13:59
Thank you, good deal!  :)  Where I can download that test version?
Title: Re: Location error ~25km using yandex.maps
Post by: berkley on March 15, 2011, 07:13:45
Hey,

have a look into the sector "Version". Latest version is 0.9.28.2. download/file.php?id=118 (http://forum.asamm.cz/download/file.php?id=118)
0.9.28.3 is a kind of "debug"-version. Don't use this one!
Title: Re: Location error ~25km using yandex.maps
Post by: mynamemyname on March 15, 2011, 14:01:45
0.9.28.3 i not exists anymore, but i had downloaded 0.9.28.6.apk
the error is still here - nothing changed
Title: Re: Location error ~25km using yandex.maps
Post by: Menion on March 15, 2011, 14:21:07
and which error? on online maps or only on offline?

Online should be fixed!

Offline - there is description below new testing version
"For offline, Yandex maps have to be created with new locus version. Old will not work. "

So?
Title: Re: Location error ~25km using yandex.maps
Post by: mynamemyname on March 15, 2011, 23:16:57
Quote from: "menion"and which error? on online maps or only on offline?

Online should be fixed!

Offline - there is description below new testing version
"For offline, Yandex maps have to be created with new locus version. Old will not work. "

So?
Definitely, I had no problems with online maps at all.
I had problems with offline maps only/
So, as I understood, now I need to re-create offline maps?
Title: Re: Location error ~25km using yandex.maps
Post by: Menion on March 16, 2011, 06:11:53
fine, as I wrote.

How big are your created map? If they're big and you're little bit familiar with databases, there is need to change one parameter (int table info, column provider) in sql database. Otherwise download new ...

So write me, and I should write you more about parameter to change.
Title: Re: Location error ~25km using yandex.maps
Post by: mynamemyname on March 16, 2011, 21:37:09
read PM
Title: Re: Location error ~25km using yandex.maps
Post by: Menion on March 17, 2011, 08:25:46
fine, so I'll write description here, if anyone need this ...

1. run at least once new Locus. This will update database file.
2. Then download and run software called Sqlite database browser (//http://sqlitebrowser.sourceforge.net/)
3. open you map in it and go to Browse data tab
4. select table info and you can see all additional info that I'm writing to table
5. there is provider column. In this column you need to get number 80 which is ID of yandex maps
6. so in last (third) tab, write "DELETE FROM info" (without ") which will remove one line in info table
7. then "INSERT INTO info (provider) VALUES ('80')" which add required provider into table. Rest of data will add Locus itself during initialization process

Write me if this work for you
Title: Re: Location error ~25km using yandex.maps
Post by: mynamemyname on March 17, 2011, 10:57:52
it does not work.
i changed value provider to 80, Locus successfully filled other values (like map center, etc) at start. but location error still exists when switching maps...
Title: Re: Location error ~25km using yandex.maps
Post by: Menion on March 17, 2011, 11:05:53
and are you using one of last version from forum? I have to check then ...
Title: Re: Location error ~25km using yandex.maps
Post by: mynamemyname on March 17, 2011, 11:10:38
yes I use 0.9.28.9
Title: Re: Location error ~25km using yandex.maps
Post by: Menion on March 17, 2011, 11:13:16
hmm you're correct, there is still some problem. When you choose first online Yandex, and then your offline map, all works for me. But when I select another online map and then offline, this not work anymore ...
Title: Re: Location error ~25km using yandex.maps
Post by: mynamemyname on March 17, 2011, 11:25:03
Quote from: "menion"hmm you're correct, there is still some problem. When you choose first online Yandex, and then your offline map, all works for me. But when I select another online map and then offline, this not work anymore ...
yes, exactly what i said in the first post
and if you choose first online yandex, and then your offline google, it has error too, but 25km to south instead of north
Title: Re: Location error ~25km using yandex.maps
Post by: Menion on March 17, 2011, 11:29:01
ah fine you're correct, so after my fix, we are still on begin, nice :D

EDIT: ah, I'm stupid. I forgot to change one parameter on one place ... so now fixed finally :)
Title: Re: Location error ~25km using yandex.maps
Post by: mynamemyname on March 17, 2011, 11:42:34
ah ah, it looks like firstly you fixed yandex and next you fixed google, and then both fixes are absorbed each other  :D

EDIT: apply fixed fixed version to the download section!
Title: Re: Location error ~25km using yandex.maps
Post by: mynamemyname on March 17, 2011, 18:52:44
Yuppi! It's worknig like a charm now!

ps. I can do russian translation for Locus - just ask what i need to do for it.
Wishes!  ;)
Title: Re: Location error ~25km using yandex.maps
Post by: Menion on March 18, 2011, 06:52:24
perfect, glad to help :) Anyway count then when you download Yandex maps on any other software like Mobac, you'll then have to do similar process with number 80 :) to work it correctly in Locus

and about translation, you're IDDQD? This guy just started russian translation also. Looks like some Doom maniak :) anyway, when you want to start, read this viewtopic.php?f=21&t=255 (http://forum.asamm.cz/viewtopic.php?f=21&t=255)
Title: Re: Location error ~25km using yandex.maps
Post by: ArcMa on April 17, 2011, 18:30:20
I have the same problem if I make offline yandex map with mobac v1.9b2 in RMaps SQLite format. Big Planet Tracks format did not work with yandex maps..
OruxMaps works fine with that offline yandex map.
PS: Locus ver.1.5.1

Update:
I tried this method and it works!
6. so in last (third) tab, write "DELETE FROM info" (without ") which will remove one line in info table
7. then "INSERT INTO info (provider) VALUES ('80')" which add required provider into table. Rest of data will add Locus itself during initialization process