Current Location via JavaScript?

Viewing 1 reply thread
  • Author
    Posts
  • September 6, 2023 at 6:52 AM #49815

    Pinny Berlin
    Participant

    Hi,

    I have a neat POI form that tracks all of my favorite destinations and uses JavaScript to calculate their distance from my current location. (It sorts by Distance, making it easy to see which places are nearby.)

    I created a POI record called Current Location which I manually update each time I travel. Each other POI calculates the distance away from that Current Location POI.

    I was wondering if there is anyway to automatically update the Location field of my Current Location record. I have googled a bit and see mention of a navigator.geolocation object, but Tapforms throws an error when I try to reference it.

    Does anyone have any other ideas how I might capture my Current Location via JavaScript?

     

    Thanks,

    Pinny

    • This topic was modified 7 months, 4 weeks ago by Pinny Berlin. Reason: Added photo of Form
    Attachments:
    You must be logged in to view attached files.
    September 26, 2023 at 6:12 PM #49924

    Brendan
    Keymaster

    Hi Pinny,

    I’m sorry, but I don’t have an API in Tap Forms to get the current location via JavaScript. I’ll see about adding one.

    Thanks,

    Brendan

Viewing 1 reply thread

You must be logged in to reply to this topic.