We have moved to a new Sailfish OS Forum. Please start new discussions there.
52

Native Offline Maps: OSM Scout Server

asked 2018-03-30 14:25:49 +0200

rinigus gravatar image

updated 2018-04-01 07:39:01 +0200

This is a thread dedicated to a native offline maps solution provided by OSM Scout Server. While I prefer to keep general discussion at TMO and get bug reports via GitHub, there are general announcements that could be of interest to SFOS users not following TMO.

Native offline maps have been requested by many, with the corresponding request being #1 most voted for. OSM Scout Server provides maps for rendering, calculates routes, and searches for locations. This is done in offline mode.

For users, in rather unusual manner for mobile map applications, there are two applications needed:

  • OSM Scout Server to provide data;
  • Map client accessing OSM Scout Server.

Usually, on mobile, all-in-one solutions are provided. By using such split design, users can select their own preferred client. Among clients providing offline maps access we have Poor Maps, modRana, and the new wave of OpenGL-accelerated map clients WhoGo Maps and sports application Laufhelden. All these clients, through accessing OSM Scout Server, share the storage data, benefit from improvements of the server and underlying libraries. In short, such split allows each of the parts to focus on one particular task and do it well, in line with Unix philosophy.

Fortunately, after integration with systemd, users don't have to be concerned about running the map client and server. The user is expected to fire up the map client with the server started automatically by systemd when needed. So, users are just using a favorite map client and need to access the GUI of OSM Scout Server only to download, update, or remove maps.

How does it compare to the best offline solutions on other mobile platforms? That's, in the end, to the users to test. When using with OpenGL accelerated maps, you are getting combination of state-of-the-art libraries, some of them not available or usually limited to online mode only on other platforms. Already more than a year ago, SFOS was the first mobile OS that had libpostal and its datasets available allowing OSM Scout Server to parse addresses in natural manner in many languages. Probably the main drawback, when compared to offline solutions on other platforms, is the larger data footprint required by OSM Scout Server. This is since the server combines multiple backend libraries and the data formats used by each of them are unique to the each of them. Fortunately, many of SFOS devices have access to SDCard which can be used to provide cheap storage for maps.

In addition to the software itself, we have extensive Users Guide in several languages providing tutorials on how to setup and run the server. Enjoy!

edit retag flag offensive close delete

Comments

Find a way to integrate this into the OS so that apps on the store -where they should be and no on unofficial repos- can use it as a dep.

Making it "difficult" for a user to install something is guaranteed that he won't bother at all.

ApB ( 2018-03-30 15:24:44 +0200 )edit
11

@ApB, is this a note to yourself, Jolla, or me? I have been jumping over many obstacles to keep the server in the store, including addition of modules. However, at some point, it all comes to the rules set by the store owner and whether they are compatible with the application. It is very contraproductive for me to spend time in keeping it there, I prefer to work on improving the server or work on something else.

In context of map applications, not using OpenRepos is just plain silly. You would be also missing MapboxGL based apps (fast, pretty rendering, 3d tilt, ...), voice prompts during navigation. Basically, for map applications, OpenRepos is a way in front of the Harbour.

So, if you wish to work on getting the server to Harbour, I'll be happy to merge your solution if it doesn't break anything or if you manage to convince Jolla to change the policy. I prefer to work on creating something instead.

rinigus ( 2018-03-30 15:49:13 +0200 )edit
4

@rinigus i made a topic on the next meeting to discuss solutions to this. (bring community solutions to long standing issues in the store/OS)

Lets see how this goes.

ApB ( 2018-03-30 16:03:45 +0200 )edit

Good luck, thank you!

rinigus ( 2018-03-30 16:08:26 +0200 )edit

TMO link has a typo ".org"

lal ( 2018-04-01 07:12:33 +0200 )edit

6 Answers

Sort by » oldest newest most voted
16

answered 2019-05-08 23:13:54 +0200

rinigus gravatar image

updated 2019-05-14 21:43:52 +0200

OSM Scout Server with Sailfish 3.0.3.x

Update

I have just updated OSM Scout Server at OpenRepos. This version is usable for SFOS 3.0.3.x users. The rest of us would have to use OBS and update either manually or through zypper after enabling my OBS repo.

For those going for update, please read the notes at OpenRepos. There are also instructions for SFOS 3.0.2.x users.

Similar situation is with mimic. But due to the package size, it will take some time before it will be available at OpenRepos.

Original message

There have been several reports regarding problems with using the server on 3.0.3.x releases. These are most probably induced by the differences in the versions of the libraries used by the application and provided in Sailfish release. Please be advised for not using the automatic activation of the server and not rely on the server if you use 3.0.3.x SFOS until corresponding build will be done.

I am planning to announce as soon as such build will be available via OBS. At this moment, corresponding target is not available, but it is expected shortly.

See official TMO thread for details and discussion.

edit flag offensive delete publish link more

Comments

Thank you very much!

Kopekenscheich ( 2019-05-15 07:45:40 +0200 )edit
14

answered 2018-03-30 14:28:30 +0200

rinigus gravatar image

As the first major announcement, I have decided to stop distribution of OSM Scout Server through Jolla Store. All the updates are going to be distributed through OpenRepos and I encourage all the users to switch to that. Right now, the available maps are compatible with the older version at Jolla Store. However, expect that with the future planned development of geocoder, the situation will change and the up-to-date maps will stop working with the old Jolla Store versions.

This change was induced by the deprecation of libsystemd-daemon library and integration of its functionality to libsystemd. So, instead of linking to libsystemd-daemon library only and provide it as an app-provided library, I suddenly had to link to full-blown systemd lib. I think providing full systemd library is excessive and I decided to pull out of Jolla Store.

The situation will be resolved if systemd linking will be allowed to Harbour-approved apps. The corresponding issue is at https://github.com/sailfishos/sdk-harbour-rpmvalidator/issues/102 .

edit flag offensive delete publish link more

Comments

great stuff. Sadly the fonts-package can't be installed in latest Sailfish. Will there be a compatible package?

lazart ( 2018-04-03 00:50:47 +0200 )edit

There should be no limitations regarding versions - its mainly bunch of font files. I will be able to teat on 2.1.4.x when it will be available on my device. However, you need fonts only if you use Mapnik. Since most users are expected to use Mapbox GL, it should not be an issue either. Are you sure that you have sufficient space on root partition to install it?

rinigus ( 2018-04-03 07:58:58 +0200 )edit

it's the same little error note, typically when installing incompatible packages. Ok, I'll just avoid Mapnik. I have 7GB free space on root.

lazart ( 2018-04-03 13:39:54 +0200 )edit

I can look into it, but I will need some proper error messages. Did you use Harbour or OpenRepos? Can you try to install it from command line and paste the error?

rinigus ( 2018-04-03 14:06:25 +0200 )edit

Got it one time via Storeman and then downlaoded from OpenRepos directly. "rpm -iv harbour-osmscout-server-module-fonts-0.10.0-1.noarch.rpm error: Failed dependencies: libsailfishapp-launcher is needed by harbour-osmscout-server-module-fonts-0.10.0-1.noarch"

Maybe this can be useful for other users.. I'm happy for now, thanks :)

lazart ( 2018-04-03 14:14:07 +0200 )edit
8

answered 2018-05-27 07:08:27 +0200

rinigus gravatar image

I have just updated OSM Scout Server to version 1.6.0 and the maps on maps distribution servers. This update makes maps incompatible with the earlier versions of the server, such as the last version which was distributed via Jolla's Store. So, I suggest that all users would move now over to OpenRepos and grab the updates to the server from there.

To my understanding, Jolla is considering to allow systemd socket activated apps into its store, which I think is great. So, we would have to wait until such change in the policy will happen to distribute the server via Jolla's store as well.

For full description of the release, see the official TMO thread (post at https://talk.maemo.org/showpost.php?p=1544688&postcount=483)

edit flag offensive delete publish link more
1

answered 2018-06-15 14:44:46 +0200

speefak gravatar image

I installed the latest versions of whogo maps and the OSM Scout server for offline maps. The installation of whogomaps 1.0.1 requires the installation of mapboxgl-qml-1.3.0-10.35.1.jolla_.armv7hl.rpm , so i installed that package, too. Using the Scout server Standard configuration Whogo works great ;)

Only the speechoutput doesn`t work

edit flag offensive delete publish link more

Comments

3

For speech, install the TTS engine. There are two recommended, in the order of my preference

English: https://openrepos.net/content/rinigus/mimic

English (British, American), French, German, Italian, Spanish: https://openrepos.net/content/rinigus/picotts

After that, voice instructions should work

rinigus ( 2018-06-15 14:51:58 +0200 )edit
1

answered 2019-06-13 09:46:41 +0200

Question: Is it possible, to use already downloaded Maps/tiles of my OSMAND-App (android via Alien)-Installation for the scout server?

edit flag offensive delete publish link more

Comments

2

No. The databases for OSMAND and OSM Scout Server use different formats and internal structure.

rinigus ( 2019-06-13 09:50:18 +0200 )edit

This is not an answer, but a comment. Please consider this the next time. Thanks.

naytsyrhc ( 2019-06-13 10:50:36 +0200 )edit

... @BlaeX.
Specifically you posted a question as an aswer, which should rather have been posted as a comment to an existing answer or the original question!

olf ( 2019-06-13 19:02:24 +0200 )edit
0

answered 2018-06-05 12:17:20 +0200

speefak gravatar image

updated 2018-06-05 12:41:33 +0200

hello, im trying to install an native offline navigation system, first using an android app, downloaded via apk mirror from google play store an install fails with :

apkd-install net.osmand_2.8.2-282_minAPI14\(armeabi\,armeabi-v7a\,mips\,x86\)\(nodpi\)_apkmirror.com.apk
Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application
did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network  
connection was broken.

then i instaled the OSM scout server but the downloaded maps are incompatible.

since 3 Days nothing works, i am looking for an android alternative mobile to use the osmand app - because sailfisch OS does not have an working offline navigation, but i would like to use SF if there is any way to use the offline maps with native SFOS apps.

ist the OSM scout server completly broke to use offline maps ? which version works ? works any version ? tryin to install versino 1.4 , 1.5 from openreos now ...

edit flag offensive delete publish link more

Comments

4

After installing or upgrading OSM scout server, it is obviously necessary to download or upgrade offline maps. The built-in map manager is very convenient. It is of cause not possible to use offline maps of any other native or Android-based app with OSM scout server.

ziellos ( 2018-06-05 12:44:16 +0200 )edit
3

@speefak - WhoGo Maps, a native Sailfish OS app, combined with OSM Scout Server should give you navigation with offline maps.

vattuvarg ( 2018-06-05 12:54:40 +0200 )edit

you have to get the latest version from OpenRepos. For reasoning, see other "answers" above. Right now, you need OSM Scout Server 1.6.0 to get compatible maps. Please download maps using the server's Map Manager. If you have troubles, please look into users guide (see the original message for a link) - that should help you out.

rinigus ( 2018-06-05 14:36:13 +0200 )edit
Login/Signup to Answer

Question tools

Follow
19 followers

Stats

Asked: 2018-03-30 14:25:49 +0200

Seen: 3,316 times

Last updated: Jun 13 '19