srs
srs

Reputation: 330

Unable to match distance computed in geocoder

As per geocoder official doc:

Distance between Eiffel Tower and Empire State Building

Geocoder::Calculations.distance_between([47.858205,2.294359], [40.748433,-73.985655])

=> 3619.77359999382 # in configured units (default miles)

def geodistance
   render json: Geocoder::Calculations.distance_between([47.858205,2.294359], [40.748433,-73.985655])
end

In my case I am getting the value to be:

=> 3648.3340765758867

Unit configurations are unchanged, not sure what can go wrong!

Upvotes: 0

Views: 118

Answers (1)

srs
srs

Reputation: 330

Read me doc distance value :=> 3619.77359999382 is outdated.

Upvotes: 1

Related Questions