PHP Classes

File: docs/phpGPX-Helpers-GeoHelper.md

Recommend this page to a friend!
  Classes of Jakub Dubec   PHP GPX Library   docs/phpGPX-Helpers-GeoHelper.md   Download  
File: docs/phpGPX-Helpers-GeoHelper.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: PHP GPX Library
Parser and generator of GPS Exchange files
Author: By
Last change: Merge remote-tracking branch 'origin/master'
Date: 7 years ago
Size: 667 bytes
 

Contents

Class file image Download

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