Pulling data from Google Maps or MapQuest into a form?

Home Forum General Pulling data from Google Maps or MapQuest into a form?

Tagged: 

This topic contains 2 replies, has 3 voices, and was last updated by  JP31 1 year, 2 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9957

    pmeidinger
    Participant

    Does anyone have experience with this? For example, I’d like to have a web page with a Google Map and a PerfectForm on it, and when the user marks start and end points on the map I could pull the distance into PF. Is that even possible?

    #9964

    Karlo Huezo
    Keymaster

    Hello,

    There may be a few different ways to do this, but they would require use of the Google API, or the ability to receive JavaScript calls.

    The first example, you may want to play with inserting the map directly into the form. Using a “Text” field, select the “HTML” box in your properties to allow you to insert code into the text value. This code would reference the map you would like to insert. You may need to adjust it for proper fitment. Now, utilizing their API, you may be able to set up communications between the form and the map itself. Please refer to their documentation:
    https://developers.google.com/maps/

    The other option would be to embed both the form and the map in a web page. Utilizing our JavaScript Calling ability, we can insert values produced by the map into fields within the form.

    http://www.perfectforms.com/Documentation/manual/html/index.html?fl_call_javascript_properties.htm

    http://www.perfectforms.com/Documentation/manual/html/index.html?fl_passing_data_from_a_web_page_i.htm

    Either way may take some development, but I hope this leads you in the right path.

    Thanks!

    Karlo

    #10979

    JP31
    Participant

    I was just wondering if you were able to do this and if so, which approach did you take?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.