maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [SFOS] [Announce] Native offline maps: OSM Scout Server (https://talk.maemo.org/showthread.php?t=97823)

BGK 2019-11-11 19:41

Re: [Announce] Native offline maps: OSM Scout Server
 
Got the address search in PM working again (without debugging via IDE) - here's what I did:

  • connected device via USB with developer mode on
  • opened a remote shell (within IDE)
  • started "harbour-osmscout-server" via remote shell and PM on device
  • (when trying to search for an address in PM) terminal output of started OSMSS told me: "ERR Error loading transliteration module, dir=/run/media/nemo/[sdcard-ID}/Maps.OSM/postal/global-v1/transliteration/transliteration.dat
    at libpostal_setup_datadir (libpostal.c:266) errno: None"
  • made a backup of "transliteration.dat" and deleted the original file
  • closed OSMSS in terminal and restarted it again
  • OSMSS's map manager told me "Missing data: Adress parsing language support (106,527,869 [sic!])", downloaded this by clicking "start download"
  • yeah, address search in PM is working again... ;)

BTW: when starting OSMSS via shell I get

"library "/vendor/lib/egl/libGLESv2S3D_adreno.so" not found"

as well as

"[W] unknown:57 - file:///usr/share/harbour-osmscout-server/qml/platform/PagePL.qml:57:9: QML Loader: Binding loop detected for property "active""

(but seem no negative effect)

rinigus 2019-11-11 19:51

Re: [Announce] Native offline maps: OSM Scout Server
 
So, it seems that the issue was due to the corrupted file. Thanks for reporting!

As for other issues:

binding loop is probably some smaller bug of mine;

GLES lib - that's something on your platform.

Don't think that they are that critical :)

BGK 2019-11-11 19:56

Re: [Announce] Native offline maps: OSM Scout Server
 
As I'm always trying to learn: Could you explain
  • what transliteration.dat is for and how could it be corrupted?
  • what the other issues are about?

rinigus 2019-11-11 20:58

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by BGK (Post 1561836)
As I'm always trying to learn: Could you explain
  • what transliteration.dat is for and how could it be corrupted?
  • what the other issues are about?

Sure. transliteration.dat is one of the datasets used by libpostal to parse addresses. For illustrations of what does it do, go to https://github.com/openvenues/libpos...les-of-parsing and scroll down to normalization as well.

fun fact: OSMSS was, to my knowledge, the first on mobile to use this library.

we use libpostal as a core for geocoder - the library that finds coordinates on the basis of your string. out of these datasets used by libpostal, transliteration is, as far as I can guess, used to make from Привет to privet. As a result, you can search for addresses even if you don't have the same chars on your keyboard.


Issues are many:

https://github.com/rinigus/osmscout-server/issues
https://github.com/rinigus/geocoder-nlp/issues
https://github.com/rinigus/mapbox-gl-styles/issues

to name few places.

BGK 2019-11-11 21:22

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by rinigus (Post 1561842)
Sure. transliteration.dat is one of the datasets used by libpostal to parse addresses. For illustrations of what does it do, go to https://github.com/openvenues/libpos...les-of-parsing and scroll down to normalization as well.

Great, thank you!

Quote:

Originally Posted by rinigus (Post 1561842)
Issues are many:

I had binding loop and GLES lib in mind... :) But thanx for hinting anyway...

BGK 2019-11-18 17:24

Re: [Announce] Native offline maps: OSM Scout Server
 
Hi rinigus,

seems I found a bug in version 1.15.5-1.120.1.jolla:

Using OSMSS in german language, it is possible to switch profile from "Vorgabe" (standard) to "Benutzerdefiniert" (user defined?).

But if you try to switch back to standard profile, this isn't possible - if you open the profile page again, it still tells you "Benutzerdefiniert".

rinigus 2019-11-18 17:51

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by BGK (Post 1562215)
Hi rinigus,

seems I found a bug in version 1.15.5-1.120.1.jolla:

Using OSMSS in german language, it is possible to switch profile from "Vorgabe" (standard) to "Benutzerdefiniert" (user defined?).

But if you try to switch back to standard profile, this isn't possible - if you open the profile page again, it still tells you "Benutzerdefiniert".

yes, can reproduce it in English as well. thanks for reporting.

pacman 2019-11-18 17:57

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by BGK (Post 1562215)
Hi rinigus,

seems I found a bug in version 1.15.5-1.120.1.jolla:

Using OSMSS in german language, it is possible to switch profile from "Vorgabe" (standard) to "Benutzerdefiniert" (user defined?).

But if you try to switch back to standard profile, this isn't possible - if you open the profile page again, it still tells you "Benutzerdefiniert".

I can confirm this in English as well: after switching from "Default" to "Custom", I can't change back to "Default". I can change to any of the other profiles, but there seems to be no path back to "Default". I tried stopping and starting OSM Scout again, and also unsubscribing from everything and cleaning up, but I can't get back to default. I also tried to 'rm -rf' from .cache/harbor-osmscout-server, but it didn't help.

rinigus 2019-11-18 17:59

Re: [Announce] Native offline maps: OSM Scout Server
 
For those looking for tmp resolution and wishing to go back to the default profile:

* close osm scout server
* open a terminal or (better) login into phone with ssh
* vi ~/.config/harbour-osmscout-server/harbour-osmscout-server.conf
* scroll towards the end and change to `profile=0` under [server-general] section

Profile should be back to default

BGK 2019-11-18 18:20

Re: [Announce] Native offline maps: OSM Scout Server
 
Quote:

Originally Posted by rinigus (Post 1562218)
For those looking for tmp resolution and wishing to go back to the default profile:

Thanks - that worked!


All times are GMT. The time now is 23:15.

vBulletin® Version 3.8.8