UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. rinigus
    3. Best
    R
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 67
    • Groups 0

    Posts

    Recent Best Controversial
    • OSM Scout Server: offline maps

      This is to announce the release of OSM Scout Server on Ubuntu Touch. The packaging was done by Jonatan Hatakeyama Zeidler and his testing. Thank toy and it was fun to bring the server to UT with his help!

      In short, this is an application that provides data for map clients, such as Pure Maps. When used together, you can navigate, search, and browse maps offline. See user's guide at https://rinigus.github.io/osmscout-server/en/ for details of operation and setup.

      In addition, please follow the instructions on package description page at OpenStore.

      At the moment of release, there are few limitations which I hope UT community will resolve and send PRs with the fixes:

      • translations are built using qmake feature which is not available for Qt 5.9. If you want the server to use available translations, please send PR with qmake pro file fixes for UT.
      • you cannot select location of the maps folder as we don't have implementation for FileDialog that we could use in UT.

      At present, you have to use default location, close the server, move it to the location you want and make symbolic link from the default to the new location. Not very user-friendly. To fix it, FileDialog for UT platform has to be written and submitted for inclusion. I hope someone can step up and do that.

      Finally, you have to have to run the server as an app right now. On Sailfish, we use systemd socket activation which allows users to configure the server to autostart on demand. Sounds like you will move to systemd at some point, so we can work on it when it is available.

      Enjoy!

      posted in App Development
      R
      rinigus
    • RE: Pure maps navigation port

      Version 1.26.1 is out.

      This version has a major rewrite of navigation and follow me modes. Its remaining part of the implementation along the lines discussed this summer with Sailfish users. We have now navigation start/pause and clear road buttons accessible on map view. Clicking on manoeuvrers button, you get to combined navigation/manoeuvrers page. Speed is shown now on the top right (shows up only when you get the gps fix), next to other current manoeuvrer info (suggested by @popanz). We do have now current speed and speed limit on opposite corners of the screen, but I didn't find a better place for speed limit, unfortunately as top right is busy already.

      Its intentional that you cannot open menus and start searching while you navigate. If you wish to do it, pause the navigation and, after you finish search or some other activity, start it again.

      Translations have been updated, thanks to all translators!

      And finally, thanks to @jonnius for UBPorts packaging!

      posted in App Development
      R
      rinigus
    • RE: Pure maps navigation port

      New release is out - 1.25.0

      This release is mainly about fixing smaller annoyances. As usual, though, big thanks to translators for the updates.

      This release brings optional DBus activation, based on xXSparkeyy's work (thank you!). Currently its not used to ensure that the environment is controllable by local environment variables simplifying the debugging on all the supported platforms. For Sailfish users, though, geo handler has been fixed with xXSparkeyy's help. I expect that all these calls by SpritRadar (Sailfish) should work as expected. At least they did work over here.

      Attribution button has been redesigned as it was not clear that the button is interactive. That should make data source acknowledgments clear.

      Search engines are now taking into account your location for location bias. This is currently supported by online providers, for offline operation its in TODO list of OSM Scout Server.

      For QtControls and Kirigami, fallback icons loading has been improved (although not yet for PostmarketOS) and clipboard support was added. For UBPorts, and other non-Silica platforms, navigation icons have been reduced making them more suitable.

      Some other smaller bugs were fixed as well.

      PS: There is a know issue with the release - geocoder function is broken. Fix is coming up

      posted in App Development
      R
      rinigus
    • RE: Pure maps navigation port

      @dobey thanks! OK, that's way easier then. Kirigami would be better, since it has few features that make it more convenient to use on mobile, when compared to my QtControls implementation.

      So, I will have to adopt the code to Qt 5.9, if any changes are needed at all. After that I'll ping over here and maybe someone can help with click packaging.

      Pure Maps uses QMapboxGL Native library, the separate QML plugin - both would probably need to be packaged. I don't know whether you have pyotherside and Nemo DBus QML plugins available already. In addition, it uses Mimic or Flite for voice prompts.

      How is the application expected to keep display on in UBPorts? That will probably need to be adopted as well

      posted in App Development
      R
      rinigus
    • RE: Pure maps navigation port

      released.

      posted in App Development
      R
      rinigus
    • RE: Pure maps navigation port

      Hi!

      Thank you for the interest!

      Pure Maps works on Qt 5.6 as well (Sailfish) with the current lowest required API as specified in https://github.com/rinigus/pure-maps/blob/master/qml/README.md.

      Pure Maps and OSM Scout Server (latter is offline maps provider required for offline maps) follow the same basic principle: most of the code is cross-platform and written in QML that is understood by all platforms where its ported to. Platform specific implementation is described by a number of QML items (example at https://github.com/rinigus/pure-maps/tree/master/qml/platform.qtcontrols). For porting to UBPorts, we would need to create qml/platform.ubports and fill it with the the similar items that should provide native look and feel.

      Pure Maps and OSM Scout Server are available for testing on regular Linux PC via flatpaks: https://flathub.org/apps/details/io.github.rinigus.PureMaps and https://flathub.org/apps/details/io.github.rinigus.OSMScoutServer
      Latter is needed for offline maps, but you could start testing with Pure Maps only and just keep online profile.

      Coming back to porting: the most efficient way would be to get someone interested in writing UBPorts platform code. I'll be happy to assist and help as much as I could and as fast as possible.

      posted in App Development
      R
      rinigus
    • RE: offline navigation for ubports

      Hi,

      I am a developer working on Sailfish and an author of OSM Scout Server: https://rinigus.github.io/osmscout-server/en/ . I would like to describe the solution that I have been working on to get offline maps on Sailfish.

      OSM Scout Server is a server that can be activated by systemd socket activation and QML app. It provides map tiles (Mapnik raster tiles and vector in MapboxGL format), allows to search for locations and POIs, and provides routing data. The app part allows you to download, update, and delete maps as well as change the settings and check server's logs. In addition to the code, I try to import the Planet once in 2 months and we have two servers distributing these maps in relevant format.

      For offline operation, you just need the server and a map GUI client running on the same device. For example, uNav can contact a specified port at localhost and get the data. On Sailfish, we have Poor Maps and modRana as the main clients. Recently, I also wrote an unofficial QML plugin for MapboxGL to get OpenGL accelerated maps (https://github.com/rinigus/mapbox-gl-qml). This works very well and we have already sports application ported to it, Poor Maps GL version and its developed continuation https://github.com/otsaloma/whogo-maps already. Since you probably have newer Qt, you may as well use QtLocation Mapbox GL plugin for developing the client.

      Porting the server should be relatively simple. It has Qt C++ and QML mix with Silica components. So, QML part has to be translated, but it shouldn't be much work. The server can be used with CLI only as well, but I haven't worked on the map managing switches too much and mainly use it for debugging on Linux PC. To compile it, you would have to package or use packages for various backends. See https://build.merproject.org/project/show/home:rinigus:maps for a list. I suspect it will be way easier on Ubuntu than it was for me - many packages are probably there already or easily available from PPAs.

      Porting the clients or writing new is not too hard either. I would recommend using Mapbox GL for maps - its just easier to get all POIs and maps are fast as well.

      We have phones that have as little as 1GB RAM working with such solution. However, devices with 1GB have not been successful running MapboxGL widget, so they use slower raster map rendering.

      posted in General
      R
      rinigus
    • RE: Looking for offline map app

      When we get OSM Scout Server ported over to UT, Pure Maps will be able to use the map data from that server for offline operation. This includes search, navigation, and map matching, in addition to MapboxGL map tiles.

      Plan is to do it soon, but I will depend on packagers. On my side, I will use the same GUI abstraction as we have for Pure Maps for UBPorts support. On the server side abstraction is ready, I have to just add and test UT platform code.

      posted in Support
      R
      rinigus
    • RE: Pure maps navigation port

      OK, we can replace qmlscene with my qmlrunner for a bit more functionality. I can also adapt qmlrunner for our needs if it helps.

      From quick scan of the docs, UBPorts have their own icons, units, and other style elements. So, it would make sense to create separate ubports style which is mainly copy of kirigami, but then use few elements from ubports API. Rather minimal work.

      From earlier description of click packaging, it sounds a bit similar to flatpak. As it creates its own folder, icons will be located in some fixed location. That would make loading them trivial. As mentioned above, I presume that I can also add my own QML modules (in my case, Mapbox GL QML plugin https://github.com/rinigus/mapbox-gl-qml), latest Kirigami (Pure Maps has few features in convergent design that depend on it), Nemo DBus.

      Now I would like to get someone who would like to package Pure Maps and test it. I can make all adaptations on Pure Maps side, add UBPorts "platform" and help with making it work. But I don't have a device with UBPorts on it nor expertise in click format. Feel free to send me direct email (as listed in AUTHORS.md of Pure Maps) if you want to help.

      I would expect that it will take us few days to make it work (time assuming that we have 1-2 hours per day and taking into account that delays will be induced by differences in time zones and free time allocations). So, nothing major is expected.

      posted in App Development
      R
      rinigus
    • RE: Pure maps navigation port

      Wait a bit. we are fixing few last issues and getting ready for release

      posted in App Development
      R
      rinigus
    • RE: Pure maps navigation port

      @BrisPete Pure Maps has been built in a modular way. In particular, its possible to choose search and routing engines as well as other providers. By default, search is provided by Photon. Maybe OpenCage will work better in UK (doesn't support autocomplete though, you would have to write a string and then press Enter). If there is some other geocoder that works better in UK, let me know and we can discuss how to implement it.

      If you have some good examples with incorrect search results using Photon, please file an issue at https://github.com/komoot/photon/issues

      When/if offline maps land at Ubuntu Touch, that geocoder was written by me. It should support postcodes in UK, but that you could test later.

      posted in App Development
      R
      rinigus
    • RE: sound issue playing music and voice navigation

      That's thanks to you for finding it out 🙂

      posted in Support
      R
      rinigus
    • RE: Pure maps navigation port

      Re issues with key pasting: turned out that UT doesn't support copy&paste in regular QQC2 text fields. The issue was solved by switching over to the text field provided by Ubuntu Components. This will be fine in the next release, so you may wait for that as well with the key, I think.

      Why not on Flathub: Number of users is expected to be smaller at Flathub. With Sailfish users, I observed that we were getting close to the limits - hence the request for them as well. As for UBPorts, the key is provided by the packager and he will monitor the situation. Note that it is shared commodity and it would help if the active users do register and use their own key. Note that the blessing for such registration has been given by Mapbox when I contacted them at the end of 2018.

      PS: If I start getting issues with larger user base on Flathub, the same note will be added there as well

      posted in App Development
      R
      rinigus
    • RE: Bad routing in navigation apps when using OSM Scout Server Offline

      This issue was raised at https://github.com/rinigus/osmscout-server/issues/450

      Turns out that the server distributed in Ubuntu Touch is using old Valhalla. The maps are generated using Valhalla 3.4 and with older Valhalla on UT, it seems to lead to such funky trajectories.

      As jonnius is aware of the issue, I think the new version of the server should be on the way to UT as well.

      @Keneda said in Bad routing in navigation apps when using OSM Scout Server Offline:

      Did you try to untick the "act like alcoholic" box in the app ?!?

      its not implemented yet, but maybe can be suggested to Valhalla developers 🙂

      posted in Support
      R
      rinigus
    • RE: Pure maps navigation port

      @Josele13 : great! as for too large data consumption - that should be resolved with the port of offline data server. hopefully, this year 🙂

      posted in App Development
      R
      rinigus
    • RE: OSM Scout Server: offline maps

      New maps are imported and out. Took longer break due to the lockdown and thought that there was no big point in refreshing it before...

      posted in App Development
      R
      rinigus
    • RE: Viewer for vector maps

      OSMScout for Ubuntu is way outdated if you take into account the development of the library behind it - libosmscout. During this time, API has changed multiple times and the devs should be ready to work on these changes. Although, libosmscout community will help you via mailing list, if needed.

      In general, we should join forces in developing apps for Ubuntu Touch, Sailfish (I am working on that platform), and Plasma. There are many similarities (Qt/QML/Linux) and we could surely benefit from working together.

      As for offline vector maps, SFOS has progressed massively in the last few years. I am working on solution that provides offline/online OpenGL-accelerated maps, routing, search and spoken instructions. My solution was described here earlier at https://forums.ubports.com/topic/1022/offline-navigation-for-ubports/4 .

      Recent development in terms of offline server: I have ported GUI to QtQuick. This, in my eyes, should help bringing it to UT as well, if I understand your architecture correctly.

      posted in App Development
      R
      rinigus
    • RE: Looking for offline map app

      @MarkG_108 As mentioned above, when OSM Scout Server (https://rinigus.github.io/osmscout-server/en/) will get ported to Ubuntu Touch, that one will provide offline search, map tiles (vector and raster), as well as route calculation. As a result, map clients, such as Pure Maps, can work in fully offline mode. Should be easy to expand to uNav as well - uNav would have to just use the documented HTTP API to use it. Such solution works perfectly on Sailfish for years now, with Pure Maps, modRana, and Laufhelden accessing the same offline server for data.

      To my understanding, porting has been stuck on permissions system used by Ubuntu Touch. Communication between OSM Scout Server and Pure Maps (or other clients) is done via HTTP (raster tiles, search, routing) at localhost port. That probably requires some kind of unrestricted app - not sure what it means. In addition, the persons who helped me with Pure Maps are probably just busy right now. So, while I am happy to help on my side by adjusting code and adapting the abstraction layers that I used for Pure Maps, I need someone to work on UBPorts side by writing packaging scripts and testing on device.

      As for uNav offline, it sounds its essentially map tiles cache used by that app. You cache only bitmaps, without databases that can be searched or used for routing.

      posted in Support
      R
      rinigus
    • RE: Pure maps navigation port

      The server is having libosmscout only as one of the possible backends and its not even maintained by me anymore. So, the name "OSM Scout Server" is mainly left for historical reasons. But in terms of porting, Pure Maps and OSM Scout Server are very similar and should be trivial.

      posted in App Development
      R
      rinigus
    • RE: Looking for offline map app

      @AppLee Personal reasons are exactly why it was written 🙂

      posted in Support
      R
      rinigus