Skip to the content.

phpGPX\Models\Stats

Class Stats

Properties

$distance

public float $distance

Distance in meters (m)

$averageSpeed

public float $averageSpeed = null

Average speed in meters per second (m/s)

$averagePace

public float $averagePace = null

Average pace in seconds per kilometer (s/km)

$minAltitude

public integer $minAltitude = null

Minimal altitude in meters (m)

$minAltitudeCoords

public [float,float] $minAltitudeCoords = null

Minimal altitude coordinates in associative array with keys: “lat” for latitude & “lng” for longitude

$maxAltitude

public integer $maxAltitude = null

Maximal altitude in meters (m)

$maxAltitudeCoords

public [float,float] $maxAltitudeCoords = null

Maximal altitude coordinates in associative array with keys: “lat” for latitude & “lng” for longitude

$cumulativeElevationGain

public integer $cumulativeElevationGain = null

Cumulative elevation gain in meters (m)

$startedAt

public \DateTime $startedAt = null

Started time

$startedAtCoords

public [float,float] $startedAtCoords = null

Started coordinates in associative array with keys: “lat” for latitude & “lng” for longitude

$finishedAt

public \DateTime $finishedAt = null

Ending time

$finishedAtCoords

public [float,float] $finishedAtCoords = null

Ending coordinates in associative array with keys: “lat” for latitude & “lng” for longitude

$duration

public integer $duration = null

Duration is seconds

Methods

reset

mixed phpGPX\Models\Stats::reset()

Reset all stats

toArray

array phpGPX\Models\Summarizable::toArray()

Serialize object to array