• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

OSM Scout Server: offline maps

Scheduled Pinned Locked Moved App Development
32 Posts 13 Posters 6.5k Views 4 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      rinigus
      last edited by 24 Jan 2020, 15:31

      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!

      A 1 Reply Last reply 24 Jan 2020, 17:09 Reply Quote 13
      • A Offline
        AppLee @rinigus
        last edited by 24 Jan 2020, 17:09

        @rinigus
        Great news, thank you very much and many thanks to Jonatan for his help.
        You just made Ubuntu Touch more adapted to my needs.

        1 Reply Last reply Reply Quote 1
        • T Offline
          tigerpro
          last edited by 24 Jan 2020, 18:25

          I have been testing this on note 4 for the past couple days, it works pretty well for me (aside from my device specific issues)

          Whether you think you can, or you can't, if you do not try, you will never truly know. So give it a Go.

          1 Reply Last reply Reply Quote 0
          • M Offline
            mihael
            last edited by 24 Jan 2020, 23:32

            This is amazing! Thank you!

            1 Reply Last reply Reply Quote 0
            • P Offline
              poVoq
              last edited by poVoq 25 Jan 2020, 00:18

              Seems to work well on my Nexus5. Thanks a lot for making this!

              I am actually now considering if Ubuntu Touch wouldn't make for a nice in car entertainment and navigation system. I guess that should be very doable once the RasberryPi support (and GPS) matures a bit. Otherwise it seems to already tick all the boxes and should be easy to use in a car as well. Edit: maybe with KDEconnect you could even tether an Android phone to it to take hands-free calls?

              Fairphone 5 (waiting for port)

              1 Reply Last reply Reply Quote 0
              • D Offline
                dieharddan
                last edited by 25 Jan 2020, 01:19

                Awesome work, ill be trying this out soon!

                1 Reply Last reply Reply Quote 0
                • M Offline
                  ma
                  last edited by 26 Jan 2020, 11:45

                  For me it doesn't work. Pure Maps recognizes the OSM Scout maps, but if I zoom in it doesn't show small streets or street names or similar. Also, if the phone is total offline (wifi and mobile data), there will be an error message when Pure Maps starts.

                  A 1 Reply Last reply 26 Jan 2020, 12:42 Reply Quote 0
                  • A Offline
                    AppLee @ma
                    last edited by 26 Jan 2020, 12:42

                    @ma
                    I think maybe OSM server is not running then and it only show you what is already cached.
                    Even if you selected auto start of the server, I don't think it works on UT, so you need to run the OSM server manually.
                    The behavior you're reporting is the same I have when I forgot to start the server.

                    Keep us posted.

                    T M 2 Replies Last reply 26 Jan 2020, 19:28 Reply Quote 2
                    • T Offline
                      tigerpro @AppLee
                      last edited by 26 Jan 2020, 19:28

                      @AppLee I also used UTTT to set OSM so it doesnt sleep, otherwise I would get this issue as well

                      Whether you think you can, or you can't, if you do not try, you will never truly know. So give it a Go.

                      1 Reply Last reply Reply Quote 0
                      • M Offline
                        ma @AppLee
                        last edited by 27 Jan 2020, 08:18

                        @AppLee I reinstalled the maps. Now it works! Nevertheless I get an error message when starting Pure Maps if the phone is totaly offline.

                        A 1 Reply Last reply 27 Jan 2020, 11:06 Reply Quote 0
                        • A Offline
                          AppLee @ma
                          last edited by 27 Jan 2020, 11:06

                          @ma
                          Strange, as @tigerpro said you have to enable OSM server to never suspend with UT Tweak Tool.
                          In all the scenarios I ran, I don't have an error message within PureMaps.
                          You may want to try to reinstall PureMaps.

                          M 1 Reply Last reply 27 Jan 2020, 20:50 Reply Quote 0
                          • M Offline
                            ma @AppLee
                            last edited by 27 Jan 2020, 20:50

                            @AppLee The settings in UB Tweak Tool were made. Now I reinstalled Pure Maps. But the error message continues to appear when starting Pure Maps totally offline ("loading style failed: Host localhost could not be found"). Nevertheless the app works if you click the message away.

                            A 1 Reply Last reply 27 Jan 2020, 20:59 Reply Quote 0
                            • A Offline
                              AppLee @ma
                              last edited by 27 Jan 2020, 20:59

                              @ma Strange, I have no idea.
                              But if it works later then 🤷
                              I remember seeing this message the very first time I tried, but I don't know what I could have done instead of just running the server and then running pure maps...
                              Sorry

                              1 Reply Last reply Reply Quote 0
                              • R Offline
                                rinigus
                                last edited by 27 Jan 2020, 21:33

                                This message could be caused by Qt bug. Not 100% sure, but we had issues with offline mode on Sailfish and I had to use non-Qt ways of fetching data. If it works later, its probably OK. Otherwise we will have to use the same hybrid approach as we have.

                                If its a bug I am thinking about, all should work with misconfigured but non-offline net without errors. As soon as you make offline fully, it will stop working. Can be tested by comparing misconfigured wifi switch net with offline mode, for example

                                1 Reply Last reply Reply Quote 0
                                • R Offline
                                  ricardo65
                                  last edited by 7 Feb 2020, 10:40

                                  lately i have problems with osm scout offline, i install the server offline and when i open pure maps or not it opens the map or you see only some brown stripes and no street or anything.i have tested it in rc, devel and edge with the same result.i do not know if it is a problem of the app or the operating system.!screenshot20200207_112916365.png screenshot20200207_112927929.png

                                  R 1 Reply Last reply 7 Feb 2020, 11:03 Reply Quote 0
                                  • R Offline
                                    ricardo65 @ricardo65
                                    last edited by 7 Feb 2020, 11:03

                                    @ricardo65 said in OSM Scout Server: offline maps:

                                    lately i have problems with osm scout offline, i install the server offline and when i open pure maps or not it opens the map or you see only some brown stripes and no street or anything.i have tested it in rc, devel and edge with the same result.i do not know if it is a problem of the app or the operating system.!screenshot20200207_112916365.png screenshot20200207_112927929.png

                                    some of it is blank and some of it is with the streetsscreenshot20200207_120112796.png

                                    A 1 Reply Last reply 7 Feb 2020, 11:08 Reply Quote 0
                                    • A Offline
                                      AppLee @ricardo65
                                      last edited by 7 Feb 2020, 11:08

                                      @ricardo65
                                      Is OSM server running ? And did you allow background execution for it ?
                                      This looks like the cache version of previous data from the OSM server.

                                      R 1 Reply Last reply 7 Feb 2020, 22:43 Reply Quote 1
                                      • R Offline
                                        rinigus
                                        last edited by 7 Feb 2020, 16:45

                                        Indeed, looks like Pure Maps is using cached tiles and OSM Scout Server is not responding/running. And why, just why, on Linux, someone decided to freeze non-active apps? No such issues on Sailfish...

                                        1 Reply Last reply Reply Quote 1
                                        • R Offline
                                          ricardo65 @AppLee
                                          last edited by 7 Feb 2020, 22:43

                                          @AppLee Thank you very much.problem solved.a question that tab could not be activated by default?

                                          1 Reply Last reply Reply Quote 0
                                          • R Offline
                                            rinigus
                                            last edited by 18 May 2020, 17:55

                                            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...

                                            1 Reply Last reply Reply Quote 2
                                            • First post
                                              Last post