PHP Classes
elePHPant
Icontem

File: docs/phpGPX-Models-Stats.md

Recommend this page to a friend!
  Classes of Jakub Dubec  >  PHP GPX Library  >  docs/phpGPX-Models-Stats.md  >  Download  
File: docs/phpGPX-Models-Stats.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: 0 years ago
Size: 1,584 bytes
 

Contents

Class file image Download

phpGPX\Models\Stats

Class Stats

Properties

$distance

public float $distance

Distance in meters (m)

  • Visibility: public

$averageSpeed

public float $averageSpeed = null

Average speed in meters per second (m/s)

  • Visibility: public

$averagePace

public float $averagePace = null

Average pace in seconds per kilometer (s/km)

  • Visibility: public

$minAltitude

public integer $minAltitude = null

Minimal altitude in meters (m)

  • Visibility: public

$maxAltitude

public integer $maxAltitude = null

Maximal altitude in meters (m)

  • Visibility: public

$cumulativeElevationGain

public integer $cumulativeElevationGain = null

Cumulative elevation gain in meters (m)

  • Visibility: public

$startedAt

public \DateTime $startedAt = null

Started time

  • Visibility: public

$finishedAt

public \DateTime $finishedAt = null

Ending time

  • Visibility: public

$duration

public integer $duration = null

Duration is seconds

  • Visibility: public

Methods

reset

mixed phpGPX\Models\Stats::reset()

Reset all stats

  • Visibility: public

toArray

array phpGPX\Models\Summarizable::toArray()

Serialize object to array