Locus Map - forum

Development => Other features => Topic started by: voldapet on March 08, 2016, 12:07:50

Title: LoMaps, offline addresses
Post by: voldapet on March 08, 2016, 12:07:50
Hello Guys,

Topic about problems with offline address search.
Prerequisites for offline addresses:

Standard Address search

Reverse geocoding

How to report:
Title: Re: Locus - offline addresses
Post by: gynta on March 18, 2016, 12:31:01

franc: ...use often uptodate andromaps therefore with bought LoMaps POI db. Possible?

Menion: Sure it is possible.
There is an only simple convention - database has to have same name and be in same directory as map.
So if you map has name.
"my_map.osm.map", then database has to be in same directory with name:
"my_map.osm.db".

Some time ago, there were restriction to only LoMaps + DB. This is not anymore needed, so feel free to use this database with all possible vector maps.

Ah only limitation is version of maps. It needs to be based on format of MapsForge V3.




Find old beta discussion thread here: http://forum.locusmap.eu/index.php?topic=5116


Title: Re: Locus - offline addresses
Post by: Andrew Heard on May 01, 2016, 12:25:42
Offline address search has regressed from beta 3.16.2.7 to 3.16.2.9 and user interface is better and worse.

1) old example: map=oceania.South Australia > city=Adelaide > street=North St > OSM way https://www.openstreetmap.org/way/13984883 was listed as result in previous beta 3.16.2.7 but no longer found.
(http://s32.postimg.org/vhk63lky9/only_1_result.jpg) (http://postimg.org/image/vhk63lky9/)

2) Now districts/ suburb names are displayed. Very nice improvement but inconsistent. In old example map=oceania.South Australia > city=Adelaide > street=Grenfell St the way https://www.openstreetmap.org/way/174104238 should have district name of Adelaide but is blank:
(http://s32.postimg.org/6sxtz5bgx/grenfell.jpg) (http://postimg.org/image/6sxtz5bgx/)

Other old examples of ways are still OK.

Some user interface issues.

3) Now each time address search is performed user must specify whether online/ offline search. Previously this was just a setting - fine. Also notice the dash-dash-dash icon in top/right corner wiggles madly. Necessary? Maybe just once but then remember preference please?
(http://s32.postimg.org/3wd3nqic1/on_offline.jpg) (http://postimg.org/image/3wd3nqic1/)

4A) When empty city field is displayed the keyboard is not always displayed.
4B) When empty city field is displayed a list of recently entered cities is not always displayed.
4C) When empty street field is displayed the keyboard is not always displayed.
4D) When empty street field is displayed a list of recently entered streets is not always displayed.
I can't work out why/ when this happens. Sometimes the keyboard is displayed OK, and MRU list is displayed OK, but other times it isn't. It seems related to the online/ offline side panel, but no pattern.

5) When I select a name from onscreen keyboard suggestions (eg. Swiftkey) it appears that Locus is now deleting the space character, for example "grenfell " ==> "grenfell" so if now have to tap space character myself if I want to add "str*" or "roa*".

When I compare the beta UI to current Locus Pro UI (for points 3 & 5) I definitely think the changes need further refinement.
Another missing result: map:Slovenia > city:Ljubljana > street:Pestotnikova ulica. Long tap displays the correct way https://www.openstreetmap.org/way/404274023.

edit
The nearby major road is found in search - map:Slovenia > city:Ljubljana > street:Celovška cesta = https://www.openstreetmap.org/way/39727341.
Title: Re: Locus - offline addresses
Post by: michaelbechtold on May 01, 2016, 17:33:18
Quote from: Andrew Heard on May 01, 2016, 01:21:03
Offline address search ...     ... character myself if I want to add "str*" or "roa*".
100% agree re. the annoying additional layer when search. Just add another function Offlone search to the list. And if you make the texts a bit more crisp,  the list will still fit into one page.

Gesendet von meinem LG-H850 mit Tapatalk

Title: Re: Locus - offline addresses
Post by: Menion on May 02, 2016, 10:56:42
Good day @Andrew Heard,

thank you for a very precise bug report, appreciate it!

Issue 1 and 2 are on Petr, because it's he who create database itself. Anyway because I was just solving some issues with him last days, I think that these two will be also solved with new database, but he will say more.

3. - correctly, I've forget to display this just once (because of testing), fixed

4A, 4C ... very hard to fix. When I notice it and discover some mechanism to repeat it, I'll definitely try to fix it.
4B ... found that happen right after open screen, fixed
4D ... it should not, there are currently no hints for a streets when no text is entered

5. hmm it really happen to you? Just testing (after some previous fixes for 3. and 4. point) and it do not happen to me with default keyboard and as I check a code, it really should preserve selected text from keyboard. Maybe a Swiftkey speciality? You will see in next version, but I'm worried it will be same. Are you able to test next version with different (default system) keyboard? Thanks
Title: Re: Locus - offline addresses
Post by: Andrew Heard on May 03, 2016, 01:09:13
thanks @menion for update
because I will be cycling in foreign countries for 2 months soon you can tell I am very keen to have offline address search working nicely

4A, 4C - I thought they were working better in 3.16.2.7 than 3.16.2.9

>5. hmm it really happen to you? Just testing (after some previous fixes for 3. and 4. point) and it do not happen to me with
> default keyboard and as I check a code,

I just tested with Swiftkey, when suggested "street" is tapped from keyboard, I can see briefly the full text "street"<space> pasted into the field (with cursor moved after <space>), and short time later a visual <backspace> operation to delete the <space> character. Could Swiftkey do that? When I use a text editor (Jota) and do exact same sequence the editor does preserve the <space> character!

So I tried default Google & Swiftkey keyboards with street "north" - fairly common, with Google no space is pasted, & with Swiftkey operation as described. I can't tell "who" is doing the mysterious <backspace>.
Title: Re: Locus - offline addresses
Post by: voldapet on May 03, 2016, 08:19:40
@Andrew Heard
1) North Street and Slovenia Ljubljana - this should be fixed in the next address database that is in generation process

2) Inconsistent suburbs - Well it's similar to previous problem - to find the best city / district / suburb for street. If no suburb is found for street then no suburb is shown in dialog. However especially mentioned Grenfell St should be displayed with Suburb - I'll check it in the next DB (probably in the end of this week)

5) @menion I can confirm issues with Swiftkey keyboard

Title: Re: Locus - offline addresses
Post by: Andrew Heard on May 13, 2016, 07:43:09
I have noticed a new? bug with long tap labels displaying the wrong offline address. I don't recall a problem prior to current beta 3.16.2.12 but maybe I just hadn't tapped in the "wrong" places. Below I long tap on "Huon Highway" (Oceania> Australia> Tasmania) S42.59.036 E147.11.591 https://www.openstreetmap.org/way/131480712 - address in label is correct:
(http://s32.postimg.org/7pkf90n0h/image.jpg) (http://postimg.org/image/7pkf90n0h/)

But when I long tap on another way "Pelverata Road" 200m to south S42.59.142 E147.11.650 https://www.openstreetmap.org/way/254103410 - observe that label incorrectly shows "Huon Highway" instead of "Pelverata Road":
(http://s32.postimg.org/u416mhrwh/image.jpg) (http://postimg.org/image/u416mhrwh/)

So I did some more testing. Mostly the label address is correct, but sometimes not.

I can do an offline address search and the road is correctly found: map=Tasmania city=Pelverata street=Pelverata Road.

PS issue still remains in 3.17.0 Pro.
Title: Re: Locus - offline addresses
Post by: Menion on May 16, 2016, 22:10:35
All databases was deleted from Google Drive because we had today published new version of Locus Map together with public official support for offline addresses.

They are now bound to LoMaps from Locus Store.

So for now it's needed to download new version of LoMaps from Store, to get these databases.

(Find old beta discussion here: http://forum.locusmap.eu/index.php?topic=5116 )
Title: Re: Locus - offline addresses
Post by: voldapet on May 17, 2016, 09:41:16
@Andrew Heard

Pelverata Road - unfortunately I'm not sure if this is issue or not. My goal was to limit long named roads that are fare from Cities or towns. Because named road outside the city is not street (from my central European point of view :) ) And such road should not be in address database. When you try the reverse search near Pelverata city you can get correct value - because there is a record in offline database for this part https://www.openstreetmap.org/way/59454330 of Pelverate road

Do you think that all named roads should have a record in offline DB? Let's say that there is a long road that have about 40 km. Is it important (in Australia) to use such long road for offline address search?
Title: Re: Locus - offline addresses
Post by: gynta on May 17, 2016, 20:26:52
Quote from: menion on May 16, 2016, 22:10:35
So for now it's needed to download new version of LoMaps from Store, to get these databases.
To be exact!:
You have to pay for new feature because there are new maps(+addressdata)
NO! No no - It's not a problem - but to be clear...
Title: Re: Locus - offline addresses
Post by: Menion on May 17, 2016, 20:29:41
Sure, or you have some gifts remaining. That's how it works with LoMaps for now.
Title: Re: Locus - offline addresses
Post by: Andrew Heard on May 18, 2016, 03:03:10
Quote from: voldapet on May 17, 2016, 09:41:16
@Andrew Heard

Pelverata Road - unfortunately I'm not sure if this is issue or not. My goal was to limit long named roads that are fare from Cities or towns. Because named road outside the city is not street (from my central European point of view :) ) And such road should not be in address database. When you try the reverse search near Pelverata city you can get correct value - because there is a record in offline database for this part https://www.openstreetmap.org/way/59454330 of Pelverate road
@voldapet - hmmm, strange, because another road few 100m south of example road (Talbots Rd) has correct long tap label and found with offline address search. This seems only example I have found. The road IS in the address database, simply that long tap displays wrong one. I think best to ignore report for now.

Quote from: voldapet on May 17, 2016, 09:41:16
Do you think that all named roads should have a record in offline DB? Let's say that there is a long road that have about 40 km. Is it important (in Australia) to use such long road for offline address search?
absolutely, but that appears case at present?
Title: Re: Locus - offline addresses
Post by: voldapet on May 18, 2016, 21:56:57
@Andrew Heard
My description were quite simplified. There are more values that influence if road / street has record in DB. Num of segments (number of OSM Way with the same name), the distance from the city (if any exist around), houses along the road...

The handling of long roads is not ideal and the address database does not expect that there could be long roads outside the towns. The generator process them but there are some weakness.
More over is complicated to recognize if Osm Way  is part of street inside any town if it is only some named road outside.  For example almost every forest track in Germany has defined the name. For example https://www.openstreetmap.org/way/37641016

And the question is how handle such way? Is it street? Should we use this road in address search? This is probably the question for every body..

However you can send me some mistakes and I'll check them.
Title: Re: Locus - offline addresses
Post by: michaelbechtold on May 18, 2016, 23:03:02
Quote from: menion on May 16, 2016, 22:10:35
All databases was deleted from Google Drive because we had today published new version of Locus Map together with public official support for offline addresses.

They are now bound to LoMaps from Locus Store.

So for now it's needed to download new version of LoMaps from Store, to get these databases.

(Find old beta discussion here: http://forum.locusmap.eu/index.php?topic=5116 )
Which brings back the issue of missing option to download only the Address/POI DBs.
As we know, those work nicely with maps like Mapsforge or OAM, if you respect the naming convention.  Hence there is no justification to handcuff those LoMaps and Address/POI DBs.
You argued in the past that the LoCoins cover the server cost and traffic. Fair enough. So, why let people create useless traffic and make them pay for it, if they only need the Address/POI DBs ??
TXS and cheers
Michael


Gesendet von meinem SM-N9005 mit Tapatalk

Title: Re: Locus - offline addresses
Post by: Andrew Heard on May 19, 2016, 01:59:00
Quote from: voldapet on May 18, 2016, 21:56:57
However you can send me some mistakes and I'll check them.
I think for now it's OK for me. You have done a fantastic job. In fact for me the Offline Address Search + BRouter GPX waypoints are best new features in last year. Thanks.
Title: Re: Locus - offline addresses
Post by: michaelbechtold on May 19, 2016, 07:52:32
 I agree 100% on those 2 topics!

Gesendet von meinem LG-H850 mit Tapatalk

Title: Re: Locus - offline addresses
Post by: gynta on May 19, 2016, 19:32:15
Hello Petr
We talk about "house number sorting" in march 2016. do you remember?
I think alphabetical sorting arrays will be work. Let's try
Currently we have a wild mixed list.
(http://s32.postimg.org/57teo1hj5/2016_05_19_191205.jpg) (http://postimg.org/image/57teo1hj5/)
Title: Re: Locus - offline addresses
Post by: voldapet on May 20, 2016, 11:08:00
@gynta
Thanks, I've already noticed it and want to discuss it with menion today. Sorting of house num is performed  in application.
Title: Re: Locus - offline addresses
Post by: eldron on May 20, 2016, 11:57:26
Just like Michaelbechtold I would really appreciate the possibility to just download the address database without the map. I am more than willing to pay for this, but I don´t see why I should download a few GB of map data to when all I want is the POI/address database.
Let´s say I am abroad and limited to a low bandwith allowance or a super slow Wifi and want to download the address database, it would be a real hassle to have to download the whole map as well.
If you don´t want to separate the database purchase from the map purchase - maybe you could make the database downloadable separately within in Locus Store once one has purchased the map?

EDIT:
I was just wondering, if I use a vector map for the whole of Germany (openandromaps), but I can only get the database for south and north - how could I use both databases at the same time with just one map of Germany? I obivously can´t rename both database files to match the map name.
Title: Re: Locus - offline addresses
Post by: Menion on May 20, 2016, 13:07:57
Quote from: gynta on May 19, 2016, 19:32:15
Hello Petr
We talk about "house number sorting" in march 2016. do you remember?
I think alphabetical sorting arrays will be work. Let's try
Currently we have a wild mixed list.
(http://s32.postimg.org/57teo1hj5/2016_05_19_191205.jpg) (http://postimg.org/image/57teo1hj5/)

done
Title: Re: Locus - offline addresses
Post by: michaelbechtold on May 20, 2016, 16:06:43
Quote from: eldron on May 20, 2016, 11:57:26
Just like Michaelbechtold I would really appreciate the possibility to just download the address database without the map. I am more than willing to pay for this, but I don´t see why I should download a few GB of map data to when all I want is the POI/address database.
Let´s say I am abroad and limited to a low bandwith allowance or a super slow Wifi and want to download the address database, it would be a real hassle to have to download the whole map as well.
If you don´t want to separate the database purchase from the map purchase - maybe you could make the database downloadable separately within in Locus Store once one has purchased the map?

EDIT:
I was just wondering, if I use a vector map for the whole of Germany (openandromaps), but I can only get the database for south and north - how could I use both databases at the same time with just one map of Germany? I obivously can´t rename both database files to match the map name.
You can take a map from Tuvalu or alike, 10 kB or so, and copy/rename it to the missing part. Then Locus will offer you the POI in the selection list. Of course no match geo wise ;-)

Gesendet von meinem SM-N9005 mit Tapatalk

Title: Re: Locus - offline addresses
Post by: gynta on May 20, 2016, 19:48:10
Quote from: menion on May 20, 2016, 13:07:57
Quote from: gynta on May 19, 2016, 19:32:15
We talk about "house number sorting" in march 2016. do you remember?
I think alphabetical sorting arrays will be work. Let's try
done
looks good in v3.17.0.2
Title: Re: Locus - offline addresses
Post by: Andrew Heard on May 21, 2016, 01:00:06
Quote from: gynta on May 20, 2016, 19:48:10
Quote from: menion on May 20, 2016, 13:07:57
Quote from: gynta on May 19, 2016, 19:32:15
We talk about "house number sorting" in march 2016. do you remember?
I think alphabetical sorting arrays will be work. Let's try
done
looks good in v3.17.0.2
+1 very nice
Title: Re: Locus - offline addresses
Post by: voldapet on May 23, 2016, 09:32:50
@michaelbechtold  @eldron and separated offline address DB
I can understand you. I would also appreciate separated DB but this is only my personal point of view  and I don't like it from global point of view. 90 percent user (definitely more) do not know anything about POI db or Adress DB. For them is everything only MAP. Whole system about LoMaps is complicated (upadte, versions, themes) now and I don't want to make it worse with separated DB. ...I'm sorry but I have different opinion.
Title: Re: Locus - offline addresses
Post by: michaelbechtold on May 23, 2016, 21:23:43
You have support for different levels of experience in more than one spot in Locus since years. So there is no place to hide behind your argument. People who understand use it,  people who don't, won't. And when it comes to cost, you will see people are even able to learn :-)

Gesendet von meinem SM-N9005 mit Tapatalk

Title: Re: Locus - offline addresses
Post by: voldapet on May 24, 2016, 08:49:46
You're right and menion would tell how many hours we spent arguing about number of features, settings, features that use absolutely minimal num of users, features for geeks, etc.. I have different attitude to lots of things then menion. But  we have the same opinion that LoMaps should be one package, one map package that contain everything what digital map should contain. I would even set that Locus would automatically download needed altitude data (hgt files) that covers downloaded LoMaps. 
Title: Re: Locus - offline addresses
Post by: michaelbechtold on May 24, 2016, 19:53:33
Quote from: voldapet on May 24, 2016, 08:49:46
You're right and menion would tell how many hours we spent arguing about number of features, settings, features that use absolutely minimal num of users, features for geeks, etc.. I have different attitude to lots of things then menion. But  we have the same opinion that LoMaps should be one package, one map package that contain everything what digital map should contain. I would even set that Locus would automatically download needed altitude data (hgt files) that covers downloaded LoMaps.
Well, forcing people to pay for stuff they do not need to get stuff that they cannot get in another way is an ethical question! And has nothing to do with geek versus mainstream.

Gesendet von meinem LG-H850 mit Tapatalk

Title: Re: Locus - offline addresses
Post by: eldron on May 24, 2016, 20:16:28
@ Voldapet
thanks for your explanation. I can understand your point of view and I totally agree with you, that a lot of the features discussed on this forum are only interesting to a very small percentage of Locus users. But I would also guess that although some locus features are only interesting to some users, it´s often those users who are willing to pay for the Pro Version and for those extra features in the Locus store.
I do respect you decision, but is it really that much effort to offer the POI database seperately in the Locus Store? I am guessing that you have to create the POI database separately anyway, before merging it with the map file.
Normal users could still just download the All-in-One map package. But for me (and surely a lot of others who use openandromaps or other maps) it means that I need to download several GB of data that I don´t need (using up bandwith and also storage space on my phone). Let´s say I want to have POI data for Germany, France, Spain and England - that would be almost 5GB of Map data that I don´t need.
As stated before - I am more than willing to pay or this data. Even the same as for the whole map package - I just don´t need the maps.