PHP Classes

File: docs/phpGPX-Models-Segment.md

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

Contents

Class file image Download

phpGPX\Models\Segment

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.

Properties

$points

public array<mixed,\phpGPX\Models\Point> $points

Array of segment points

  • Visibility: public

$extensions

public \phpGPX\Models\Extensions $extensions

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

  • Visibility: public

$stats

public \phpGPX\Models\Stats $stats

  • Visibility: public

Methods

__construct

mixed phpGPX\Models\Segment::__construct()

Segment constructor.

  • Visibility: public

toArray

array phpGPX\Models\Summarizable::toArray()

Serialize object to array

recalculateStats

void phpGPX\Models\StatsCalculator::recalculateStats()

Recalculate stats objects.