Class Segment A Track Segment holds a list of Track Points which are logically connected in order.
To represent a single GPS track where GPS reception was lost, or the GPS receiver was turned off, start a new Track Segment for each continuous span of track data.
public array<mixed,\phpGPX\Models\Point> $points
Array of segment points
public \phpGPX\Models\Extensions $extensions
You can add extend GPX by adding your own elements from another schema here.
public \phpGPX\Models\Stats $stats
mixed phpGPX\Models\Segment::__construct()
Segment constructor.
array phpGPX\Models\Summarizable::toArray()
Serialize object to array
void phpGPX\Models\StatsCalculator::recalculateStats()
Recalculate stats objects.