Geocoder - record A is xx miles from record B

3 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: July 7, 2011   (RSS)

By rjbathgate - July 6, 2011

Hello,

I have geocoded tables address and venue.

And want to display the distance between a record from each.

I.e. Your address is xx miles away from venue

Is that easily possible?

Thanks

Re: [Jason] Geocoder - record A is xx miles from record B

By rjbathgate - July 7, 2011

perfect, works a treat, thank you.

Just for info for anyone else, to convert the js to miles, change the var R = to var R = 3959 (this is the radius of the earth in miles)