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

    Why does UT not have assisted GPS?

    Scheduled Pinned Locked Moved General
    17 Posts 7 Posters 724 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.
      • P Offline
        projectmoon @flohack
        last edited by

        @flohack BeaconDB is free? And ready to be used with Geoclue.

        Mario.CHM 1 Reply Last reply Reply Quote 1
        • Mario.CHM Offline
          Mario.CH @projectmoon
          last edited by

          Hi projectmoon,

          The beacondb.net website states, among other things:

          "usage:
          please note that beaconDB is experimental and may be inaccurate or unreliable
          as beaconDB is starting from scratch there is likely no wifi coverage for your area.
          if beaconDB can’t estimate your location using wifi, it will fallback to an approximate cell tower
          location sourced from MLS’ final data dump, or an IP-based estimate as a last resort. note that
          submissions will take at least 5 minutes to become available in the beaconDB API."

          So again, something that is still in its early stages.

          And by the way, what do you mean by free?
          In any case, it should always be borne in mind that behind there is work involved.

          My slogan is something like: Have you already paid all your donations for the year 2026? πŸ˜‰

          Greetings
          Mario

          πŸ“± Oneplus Nord N100 UT20.04 (OTA9); then Xperia X (since 2020) at last UT 20.04(OTA9), now out of service due to defective camera
          🐎 When you realize you are riding a dead horse, get off!
          My languages skill: πŸ‡¨πŸ‡­πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ, and only orally: πŸ‡¬πŸ‡§ πŸ‡ΉπŸ‡­

          P 1 Reply Last reply Reply Quote 0
          • P Offline
            projectmoon @Mario.CH
            last edited by projectmoon

            @Mario.CH By free, I mean you can change a config value in the geoclue config to point to BeaconDB, and it will work (insofar as their data is accurate), and no one will send you a bill.

            Edit: And BeaconDB has been around for a few years now, so their coverage is actually quite good in denser areas.

            flohackF 1 Reply Last reply Reply Quote 0
            • flohackF Offline
              flohack @projectmoon
              last edited by

              @projectmoon well ok then, just needs someone that implements it then πŸ™‚

              My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

              RapidRotatorR 1 Reply Last reply Reply Quote 0
              • RapidRotatorR Offline
                RapidRotator @flohack
                last edited by

                @flohack Atm it's quite busy because of the year-end with my kids (school, music performances, etc.), but between Christmas and new year I can remount the needed directories writeable and see if I can install and configure mmcli and geoclue to see if I can get those working on UT

                flohackF G 2 Replies Last reply Reply Quote 0
                • flohackF Offline
                  flohack @RapidRotator
                  last edited by

                  @RapidRotator that would be great. I guess its not so straightforward but maybe we are lucky πŸ™‚

                  My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                  Eric HE 1 Reply Last reply Reply Quote 0
                  • G Offline
                    gpatel-fr @RapidRotator
                    last edited by

                    @RapidRotator

                    while I'm no expert, I am taking a fleeting interest in these questions currently, and I can point you to an ooooold doc emerging from the mist of times:

                    https://manpages.ubuntu.com/manpages/questing/man2/lomiri-location-service.2.html

                    you'll notice that at some pre-historical point, the lomiri location service was written to allow to inject geoclue data into location info provided to applications. Is it still the case now, I have no idea. Looking at the service daemon command line (using ps) it's clear that it is not configured to do so currently.
                    I don't have the energy to try to hack the service to change the startup parameters accordingly - my hopes that it would just work are very low (if it was so easy, why would the UT devs not have done it already ?)

                    1 Reply Last reply Reply Quote 0
                    • Eric HE Offline
                      Eric H @flohack
                      last edited by Eric H

                      @flohack I quickly tested Geoclue on Ubuntu Touch 24.04-1.x/daily with success.

                      1. Setup
                        • I installed geoclue-2-demo and its dependencies via apt (without recommended or suggested packages).
                        • I modified Geoclue’s configuration to use Positon
                          [wifi]
                          enable=true
                          url=https://api.positon.xyz/v1/geolocate?key=test
                          
                          I also tested BeaconDB using:
                          url=https://beacondb.net/v1/geolocate
                          
                      2. Test
                        To verify it worked:
                        I started the agent in the background:
                        /usr/libexec/geoclue-2.0/demos/agent &
                        
                        Then I ran the test command:
                         /usr/libexec/geoclue-2.0/demos/where-am-i
                        
                      3. Results
                        With Positon: obtained a fix very quickly (~5 s). The coordinates are correct.
                        With BeaconDB: the fix is also quick, but the returned coordinates are incorrect.

                      Note: @vlad-nirky ran the same test on 24.04-2.x and reported similar results.

                      • Ubuntu Touch for Xiaomi POCO X3 NFC Telegram group
                      • Ubuntu Touch installation guide for Xiaomi POCO X3 NFC / X3
                      G 1 Reply Last reply Reply Quote 0
                      • Eric HE Offline
                        Eric H
                        last edited by

                        Since a Geoclue2 plugin for Qt is preinstalled with Ubuntu Touch, I tested it as well.

                        1. Setup
                        • I modified GPS ToolKit to use Geoclue2 instead of lomiri-location.

                        • I disabled GPS ToolKit’s apparmor confinement.

                        1. Test
                        • I started the Geoclue agent in the background from a terminal set to "prevent app suspension":
                          /usr/libexec/geoclue-2.0/demos/agent &

                        • I launched GPS ToolKit.

                        1. Result
                          I obtain fixes within a few seconds (~5 s).
                        • Ubuntu Touch for Xiaomi POCO X3 NFC Telegram group
                        • Ubuntu Touch installation guide for Xiaomi POCO X3 NFC / X3
                        1 Reply Last reply Reply Quote 1
                        • G Offline
                          gpatel-fr @Eric H
                          last edited by

                          @Eric-H said in Why does UT not have assisted GPS?:

                          With Positon: obtained a fix very quickly (~5 s). The coordinates are correct.

                          from https://positon.xyz/docs/

                          We currently do not expect to continue our operations beyond the year 2025
                          
                          Eric HE 1 Reply Last reply Reply Quote 0
                          • Eric HE Offline
                            Eric H @gpatel-fr
                            last edited by

                            @gpatel-fr said in Why does UT not have assisted GPS?:

                            We currently do not expect to continue our operations beyond the year 2025

                            Yes, Positon is intended as a temporary offering.
                            Please note that I do not recommend using Positon, BeaconDB, or even Geoclue 2 β€” I am only testing them

                            • Ubuntu Touch for Xiaomi POCO X3 NFC Telegram group
                            • Ubuntu Touch installation guide for Xiaomi POCO X3 NFC / X3
                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post