Skip to the content.

phpGPX\Models\Track

Class Track

Properties

$segments

public array<mixed,\phpGPX\Models\Segment> $segments

Array of Track segments

$name

public string $name

GPS name of route / track.

An original GPX 1.1 attribute.

$comment

public string $comment

GPS comment for route.

An original GPX 1.1 attribute.

$description

public string $description

Text description of route/track for user. Not sent to GPS.

An original GPX 1.1 attribute.

$source

public string $source

Source of data. Included to give user some idea of reliability and accuracy of data.

An original GPX 1.1 attribute.

public array<mixed,\phpGPX\Models\Link> $links

Links to external information about the route/track.

An original GPX 1.1 attribute.

$number

public integer $number

GPS route/track number.

An original GPX 1.1 attribute.

$type

public string $type

Type (classification) of route/track.

An original GPX 1.1 attribute.

$extensions

public \phpGPX\Models\Extensions $extensions

You can add extend GPX by adding your own elements from another schema here.

An original GPX 1.1 attribute.

$stats

public \phpGPX\Models\Stats $stats

Objects contains calculated statistics for collection.

Methods

__construct

mixed phpGPX\Models\Collection::__construct()

Collection constructor.

getPoints

array<mixed,\phpGPX\Models\Point> phpGPX\Models\Collection::getPoints()

Return all points in collection.

toArray

array phpGPX\Models\Summarizable::toArray()

Serialize object to array

recalculateStats

void phpGPX\Models\StatsCalculator::recalculateStats()

Recalculate stats objects.