How to allow users to click on a map which then inputs the GPS coordinates into Lat / Lon fields in the form.

  • George
    Asked on May 29, 2019 at 10:56 PM

    Hi 

    I am interested in knowing if I can create a Form using Jot form to do the following:

    Allow users to click on a map which then inputs the GPS coordinates into Lat / Lon fields in the form. 

    This would need to be used for multiple questions.  

  • Jed_C
    Replied on May 30, 2019 at 1:43 AM

    You can use the Geolocation Widget to get the Latitude and Longitude (the Location Coordinates) of the machine filling the form.

    For this to work, you would need to add your own Google Maps API to the Widget.

    You can get one here https://developers.google.com/maps/documentation/javascript/get-api-key

    or if you already have one, you can find it here https://console.developers.google.com/projectselector/apis/credentials

    1535196087api Screenshot 10

    Form DEMO: https://form.jotform.com/82363039530958

    Please note that the users will need to give consent (click allow in the browser) so that the Widget can get the correct location.

    Try the demo using your browser in Private Mode (Incognito) to make sure that you get the prompt to allow the form to get your location. This prompt is made only once and your choice is saved in the browser.