jquery - Calculating "As the crow flies" distances wtih Google Maps API -


I am quite helpless here so that people can easily expect some good ideas executed.

Actually, I have a form that is divided into Google Maps so that someone types an address and specifies a late / long I want to add someone else, both inputs To the people and then calculate the distance in the form of "cave flies".

I want to give it just one address and how far the output is, the addresses are from each other, on a linear line, if it can show that everything on the map overlay, everything is better.

I am hunting for examples, but I am getting a lot of features from those who are getting me. I just want some simple source code that I can study this basic type of function.

This is where I am currently:

Any other ideas have to be loved.

computeDistanceBetween (from: LatLng, to: LatLng, radius?: Number) code>

Comments