![]() |
Re: [Announce] Native offline maps: OSM Scout Server
Quote:
One thing I've noticed while trying it is that the search results are totally not relevant when libpostal is not enabled. Wouldn't it make sense to enable it by default and invite the users to chose their search language(s) on first start? |
Re: [Announce] Native offline maps: OSM Scout Server
Quote:
Quote:
I'll add your suggestion into the issues of the server and will take a look into it a touch later. Its a great idea and should be implemented when I polish the interface. Right now, I am trying to get all the required features covered first, if I can do it in reasonable amount of time. |
Re: [Announce] Native offline maps: OSM Scout Server
Hello guys,
I am currently developing a sport tracker app for SFOS. I would like to use OSM Scout Server for providing map informations but unfortunately it does not work. This is what I tried: Code:
Map { The server is running nicely and works with modRana and Poor Maps. You can find the whole code here: https://github.com/jdrescher2006/Lau...edViewPage.qml |
Re: [Announce] Native offline maps: OSM Scout Server
Quote:
I presume that you have OSM Scout Server running on the background while using the tracker app, right? From the look of it, you are using QML Map type. I don't have experience with it, unfortunately. Maybe @otsaloma can help, or reading his Poor Maps code which seems to be using the same plugin. From reading Poor Maps MapPlugin, it looks like @otsaloma is using own server that probably re-routes requests further. Notice that URL syntax seems to be different. But again, I never used it in QML myself, others are much more qualified to help you out. On the server side, you could check out whether it is accessed. For that, in server settings, enable "Log info messages". Then, while accessing the map in your application, check whether requests arrive to the server (they should be shown in the main window under Events. If it turns out that Map prefers some other URL scheme than the one used in the server currently, we can add some simplified URL scheme under http://localhost:8553/v1/tile_simple/ or something similar. That's very easy. |
Re: [Announce] Native offline maps: OSM Scout Server
Quote:
What you're trying to do is (to my knowledge) simply not possible with the SFOS version of QtLocation. My advice would be to wait for QtLocation 5.6 (maybe we need a new community IRC pressure meeting?) or if you can't wait, ask Martin about his pure QML component. Poor Maps uses QtLocation's Map component, but has custom tile loading to work around stuff like this, but that's not designed to be reusable. |
Re: [Announce] Native offline maps: OSM Scout Server
Quote:
To keep you in the loop and give an overview of the server development: On the server side, I have been working on making it simple to use it with multiple maps. Rendering of the maps has been resolved already with Mapnik. Now I have added support for search using the data from all available maps. This is done for geocoder-nlp backend. Finally, I think I know how to get routing through multiple maps supported as well. Namely, I am planning to incorporate Valhalla (routing engine behind Mapzen routing solution). After few days of porting, I managed to run the first routing tests using valhalla's program on SFOS device. Calculation of a route from Stockholm (Sweden) to Aarhus (Denmark) took just 2 seconds on Nexus 4. That's compared to ~45 seconds on the same device on the same route when using libosmscout. Not sure whether valhalla is always faster, but the start is promising. In addition to speed, valhalla routing engine allows us to "glue" the countries/territories together solving the long-standing issue of routing between countries. There are several technical issues to be resolved with the adaptation of Valhalla, but it should be possible. Also we would have to discuss with @otsaloma and @MartinK few technical choices on how to do that when I know a bit more about Valhalla requirements. I might make one more release before adding Valhalla to push out support for search in all maps and catch up with the advances in libosmscout. |
Re: [Announce] Native offline maps: OSM Scout Server
Quote:
Also note, that this problem of using using a custom tile source, e.g. OSM Scout Server, is only partially served by the OSM plugin in QtLocation 5.6. It allows you to set the host, e.g. "http://tile.openstreetmap.org/" in "http://tile.openstreetmap.org/{z}/{x}/{y}.png", but the requested URL will always end in "{z}/{x}/{y}.png". What we'd really need is a plugin that supports a template URL string, so that you can have X, Y and Z as URL parameters instead of path components or additional parameters like day/night or API keys etc. And also, a plugin parameter for tile size so that the requested tiles can be shown correctly. A custom QtLocation plugin would be easy to distribute separately, e.g. at OpenRepos, but probably difficult to use in Harbour apps. |
Re: [Announce] Native offline maps: OSM Scout Server
Quote:
What's telling is that there has been no activity visible with QtLocation 5.6. From this maybe we can conclude that we should not expect situation change in a short term. |
Re: [Announce] Native offline maps: OSM Scout Server
Quote:
|
Re: [Announce] Native offline maps: OSM Scout Server
Thanks for the infos.
I have a lot of features to implement so I can wait a little longer. All in all for developers it's still a sad situation after so many years with SFOS. You can't even release a bluetooth app into the harbour. I think Jolla should make it as easy as possible for developers. Instead they are doing it the other way around :mad::eek: |
All times are GMT. The time now is 07:18. |
vBulletin® Version 3.8.8