How can we get latitude and longitude data from the input on our jotform?

  • minenight
    Asked on March 3, 2015 at 2:21 AM

    Hi, I asked the above question, and Jan answered - thanks,

    However, the Address-Map-Locator doesn't help me.

    I need to get the form gps location as individual numbers, i.e. in its simplest form,

    I would like my form-users to submit 3 pieces of data:

    1: Name

    2: Latitude

    3: Longitude.

     

    I'm using Zapier to pipe this into Podio, and this is the error I got from them (Zapier):

    Podio: The value 54,840,548,997,000,000,000,

    000,000,000 is too high, it must be less than or equal 1,099,511,627,775.

     

    Are there any other possibilities?

     

    Best regards,

    Michael.

  • Ben
    Replied on March 3, 2015 at 8:41 AM

    I see Michael that this is related to this thread: http://www.jotform.com/answers/525032-Separating-the-latitude-and-longitude-values-using-map-widgets

    I would like to ask you to always reply to the same thread if the issue is the same as that allows us to see what was already suggested and to open a new thread if the issue/question is not related.

    I would like to suggest testing out 2 widgets to see if they do what you are after:

    Geolocation

    GPS Location

    The first one will give you the option of selecting what data you want to get from it, but both would allow you to capture the required data.

    Do let us know if they would work for you.

  • Michael Neidhardt
    Replied on March 3, 2015 at 9:00 AM

    Hi Ben,

    sorry for not replying to the thread - it was not quite clear how to do that. I hope this goes to the right place.

    As for my question, I need to get exactly the latitude and longitude, as 2 separate numbers, and also name etc, but that is not a problem. None of your form widgets seem able to give me lat+long the way I want it, unfortunately, but please correct me if I'm wrong.

     

    Regards,

    Michael.

     

     

  • raul
    Replied on March 3, 2015 at 10:41 AM

    I made some tests on my side and you're correct, the widget data is saved in a single field so this is why the integration is not working for you.

    You could try to use the full source code of your form so you can use a custom script to capture these values on a separate way and transfer them to your integration.

    If you need further assistance, please let us know.
    Thank you.

  • minenight
    Replied on March 4, 2015 at 2:56 AM

    Thanks, Raul,

    but we are using Zapier to pass on data to another service, and Zapier, I think, will not

    take into account any changes I make to my local copy of the form. They call up JotForm

    to get the fields available. I'll have a look, but dont think it'll work.

     

    Is there any way to make a widget myself and add it to your collection?

     

    Regards,

    Michael.

  • raul
    Replied on March 4, 2015 at 7:51 AM

    I was meaning that you can add 2 text fields to your form (in the form builder) and use a custom script to populate them, I suggested you to use the full source code of your form because this is the only way for you to be able to use custom scripts to manipulate the entered data in the form.

    Either way, you can also create your own widget and use it in your form.
    You can read more about this here: http://developers.jotform.com/widgets

    Let us know if you have further questions.
    Thanks.

  • minenight
    Replied on March 6, 2015 at 6:56 AM

    Hi Raul,

    thanks. That might be the answer, but it requires me to re-engineer the existing widget.

    I assume you mean that I capture the data I want before submitting, and then filling out the

    extra fields with data from the mapping-field.

     

    I'll look into that -

     

    Regards,

    Michael.

  • raul
    Replied on March 6, 2015 at 9:12 AM

    I assume you mean that I capture the data I want before submitting, and then filling out the extra fields with data from the mapping-field.

    Yes, that's what I meant.

    Feel free to contact us again if you need our help.
    Best Regards.