Can I open a Google map using GPS coordinates on a form?

  • NJFallen
    Asked on April 1, 2015 at 1:06 PM

    I have a spreadsheet with 2 columns, 1 with about 200 names and the second has a GPS coordinate for each name.  The GPS coordinates are of exact meeting locations where the people named will be receiving an honor.   I would like to have a form with a series of drop downs sorted alphabetically where each person can select their name and on button press an individual Google map will open showing only that specified location. If necessary I can append the url https://www.google.com/maps/place/  to each GPS coordinate thus turning each into a full url?

    Is that possible? Thanks for the great work!! http://www.njrunforthefallen.org/

  • David JotForm Support Manager
    Replied on April 1, 2015 at 2:37 PM

    You could accomplish this using the Geolocation widgethttp://widgets.jotform.com/widget/geolocation, with the Drop Down field or the Auto Complete widgethttp://widgets.jotform.com/widget/autocomp

    However, this would required to download the full source code:

    Can I open a Google map using GPS coordinates on a form? Image 1 Screenshot 30

    And then do some JavaScript programming to output a value(Latitude and Longitude) to the widget:

    Can I open a Google map using GPS coordinates on a form? Image 2 Screenshot 41

    Let us know if you have more questions, we will be glad to assist you.

  • NJFallen
    Replied on April 1, 2015 at 3:03 PM

    Thanks - I'm wondering if there is an easier way!!   Let's say that I have 2 columns in my spreadsheet. the first has the names and the second has a link associated with each name, for example https://www.google.com/maps/place/39.383631, -74.529729

    Is there any way by selecting the appropriate name that on submit the form will pass the link and open it in a new browser window?

    Thanks for the help!!

  • David JotForm Support Manager
    Replied on April 1, 2015 at 3:46 PM

    You can accomplish this with conditional logic, click on Conditions, and select Change Thank You URL after Submission.

    Can I open a Google map using GPS coordinates on a form? Image 1 Screenshot 30

    There you can set condition like:

    Can I open a Google map using GPS coordinates on a form? Image 2 Screenshot 41

    Then repeat the steps to add the following name with it's URl, let us know if you need more help.

  • NJFallen
    Replied on April 1, 2015 at 3:53 PM

    Thank you - I will play with that and get back if I have any issues - thanks again!!