elliotdennis / geocoding-net

Automatically exported from code.google.com/p/geocoding-net
0 stars 0 forks source link

EarthRadiusInKilometers is incorrect #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When using the distance feature of this API i found that the distances
provided are wrong if you're requesting results in 'Kilometers'

The reason being that the EarthRadiusInKilometers value is set to 3438.147.
This is wrong, the earth's radius in Kilometers is 6378.2. (as found here:
 http://msdn.microsoft.com/en-us/library/aa501849.aspx )

I couldn't find a mailing list for this project so i'm just posting this
here...

Original issue reported on code.google.com by exi.m...@gmail.com on 4 Jun 2008 at 2:50

GoogleCodeExporter commented 9 years ago
Fixed the issue -- although, it was not affecting any distance calculations 
since it
was using a hard-coded conversion constant 0.621371192 for calculations.

Original comment by chadl...@gmail.com on 16 Jul 2008 at 2:24