location-distance-utils

location-distance-utils — Utility functions for calculating distances

Synopsis

double              location_distance_between           (double latitude_s,
                                                         double longitude_s,
                                                         double latitude_f,
                                                         double longitude_f);

Description

The circle distance function is used for calculating the distance on the surface of the earth between two points

Details

location_distance_between ()

double              location_distance_between           (double latitude_s,
                                                         double longitude_s,
                                                         double latitude_f,
                                                         double longitude_f);

Calculates the circle distance between two points, the origin (described by latitude_s,longitude_s) and the destination (described by latitude_f,longitude_f).

latitude_s : Origin latitude
longitude_s : Origin longitude
latitude_f : Destination latitude
longitude_f : Destination longitude
Returns : Distance in km between the two points