Calculating the distance between 2 addresses can be done using the Google Distance Matrix API. This customization will require using the PHP scripts called on form display and the Javascript section (found in the Form Properties).
1st step
Create a new form and create a normal button (for this example i named it search);
Create 2 googlemaps (for this example i named them gmap1 & gmap2)
2nd step
Create a PHP Script called on form process to calculate the distance, this can be done like so...
Still not working right. I can fill out the Geolocation Search, but itś still not updating by itself. can someone please help or is it more efficient if I open a ticket? This is one of the mandatory things why I got RSFORM! Pro...
Hello Tiffjan, and I am sorry to bother you but I have been away from rs forms since 11/2012 and now they have maps. Reason I am contacting you ma'am is because this seems to be "fresh in your mind" [smile] and I was wondering if you would not mind helping me if you could get up to speed?
I also see that your had a github/k2 as well. I have only got as far to really download and install K2, but wondering how good you are with that as well please?
Thanks in advance for your time...and I also simply...
If anyone is interested I created a new function based off the rsform function with some minor alterations to get this working... I'll be the first to admit the code is crude but it gets the job done.
I'm trying to do something I thought would be repetitively simple yet I think I am missing something.
What I am trying to do is have 3 separate fields populate and update the google map marker and center on it. (ie Street Address, Suburb, Post code.) add them all to one javascript variable and then update the map.
So far I have only been able to replicate the google auto text list. That means the user still has to click the link to get the map to update. I was looking at...
Hi !
i found a solution to fill fields with adresses with google fields: adresseA and AdressB
And now i would like to calculate the distance between the two adresses.
I have the google script just below, but i don't know where to put it to have the field "distance" filled with the result of the calcul ?
designated place user is quite different from the position shown on the Google map - up to ten to twenty meters
- I selected point in the middle of a pedestrian crossing 49.655782,17.928514
- result shows elsewhere www.google.cz/maps/place/Komensk%C3%A9ho...9:0x89cf5f960261f9c1
with google maps filed which shows the Current position.....
please give me downlod files of the mentioned form or somthing like that...(if it is possible for you..)
when I add the Google Map plugin it works perfect in Firefox with the Enabled Geolocation search.
I can write any address and it will show in the list . But in Internet Explorer VER 11 I get some strange dropdown list where the addresses should be. It says
"undefined"
"undefined"
"undefined"
"undefined"
"undefined"
"undefined"
"undefined"
"undefined"
Annyone seen this??? and how to fix
I want to make a multipage form where the user inputs his address on page 1 and these values are used in a the google maps plugin. For this plugin to work I think of something like this: