kristianmandrup / geo-distance

Calculates the geo distance between two locations using longitude and latitude, using Haversine, Speherical or Vincenty formula
MIT License
52 stars 19 forks source link

Problem in .rpd #4

Open jcaraballoSC opened 8 years ago

jcaraballoSC commented 8 years ago

Dear Kristian

I'm having trouble with this, I lack any dependencies?

NoMethodError: undefined method `rpd' for 10.08114:Float

https://github.com/kristianmandrup/geo-distance/blob/master/lib/geo-distance/formula/haversine.rb#L49

kristianmandrup commented 8 years ago

Perhaps rpd has not yet been defined for the Float class? Check the specs. Feel free to make a patch/fix and a PR :)