Faster_haversine is a project mainly written in RUBY and C, based on the MIT license.
Haversine great-circle distance formula implemented as C extension gem
Calculation of great-circle distance by Haversine formula implemented as C extension
Usage:
FasterHaversine.distance(latitude1, longitude1, latitude2, longitude2)