SYSTEM_METRIC

Calculate the distance between geographical coordinates, latitude and longitude.

Syntax

#define SYSTEM_METRIC 0 // kilometers

Usage

lat1 The first IP latitude.
lon1 The first IP longitude.
lat2 The second IP latitude.
lon2 The second IP longitude.
system The system of measurement, 0 = Metric(kilometers) or 1 = English(miles).

Return

The — distance as result in specified system of measurement.

Notes

This native requires GeoIP City database, which can be retrieved from:

Defined in geoip.inc at line 215 . This documentation was automatically generated from source.