phpGPX\Helpers\GeoHelper
Class GeoHelper Geolocation methods.
- Class name: GeoHelper
- Namespace: phpGPX\Helpers
- This is an abstract class
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.
- Visibility: public
- This method is static.
Arguments
- $point1 phpGPX\Models\Point
- $point2 phpGPX\Models\Point