omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    GPS confusion

    Pythonista
    3
    3
    1645
    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.
    • nuckler
      nuckler last edited by

      I am trying to acquire gps location data using a script.

      After doing some research and experimenting it appears that there are 2 ways to do this.

      1. Using IP address and which are linked to several back end databases to infer your address and hence infer your lat long

      I am using the following url for this code
      ip_request = requests.get('https://get.geojs.io/v1/ip.json')
      This works as expected
      2. Utilization of the gps chip in your mobile device to calculate it directly

      And I am using the location module loaded into pythonista for (I believe) gps data for this

      Does the location module directly provide gps data

      And when I use the location module multiple times it gives me the exact same time stamp
      And the lat long values never vary as I move around my building

      And I am implementing start stop to attempt to refresh the data

      cvp 1 Reply Last reply Reply Quote 0
      • cvp
        cvp @nuckler last edited by

        @nuckler Don't forget that if you have a WiFi iPad (not cellular one and not an iPhone) there is no gps circuitry in it, thus what the device knows is an approximate location function of your WiFi router.

        1 Reply Last reply Reply Quote 0
        • ccc
          ccc last edited by

          https://forum.omz-software.com/topic/620/location-timestamp-always-the-same

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Powered by NodeBB Forums | Contributors