Class phpGPX
const JSON_FORMAT = 'json'
const XML_FORMAT = 'xml'
const PACKAGE_NAME = 'phpGPX'
const VERSION = '1.0'
public boolean $CALCULATE_STATS = true
Create Stats object for each track, segment and route
public boolean $SORT_BY_TIMESTAMP = false
Additional sort based on timestamp in Routes & Tracks on XML read.
Disabled by default, data should be already sorted.
public string $DATETIME_FORMAT = 'c'
Default DateTime output format in JSON serialization.
public string $DATETIME_TIMEZONE_OUTPUT = 'UTC'
Default timezone for display.
Data are always stored in UTC timezone.
public boolean $PRETTY_PRINT = true
Pretty print.
\phpGPX\Models\GpxFile phpGPX\phpGPX::load($path)
Load GPX file.
\phpGPX\Models\GpxFile phpGPX\phpGPX::parse($xml)
Parse GPX data string.
string phpGPX\phpGPX::getSignature()
Create library signature from name and version.