Skip to the content.

phpGPX\Helpers\GeoHelper

Class GeoHelper Geolocation methods.

Constants

EARTH_RADIUS

const EARTH_RADIUS = 6371000

Methods

getDistance

float phpGPX\Helpers\GeoHelper::getDistance(\phpGPX\Models\Point $point1, \phpGPX\Models\Point $point2)

Returns distance in meters between two Points according to GPX coordinates.

Arguments