Currently we offer code-examples for asp, php and coldfusion.
Please keep in mind that all of our examples calculate distances in kilometres. If you need to calculate distances in miles, you need to transform the distance-parameter: 1km = 0.621371 miles and the earth-radius from 6378.388km to 3963 miles.
Also be aware of the decimal-point. The samples use the '.' as a decimal-delimiter, but depending of your programming-environment you might have to use the ',' as the decimal-delimiter.
Go to the ASP code-example...
Go to the PHP code-example...
Go to the ColdFusion code-example...
Example of a ASP code:
Example of a PHP code:
Example of a ColdFusion code: