Skip to the content.

phpGPX\Models\Metadata

Class Metadata Information about the GPX file, author, and copyright restrictions goes in the metadata section.

Providing rich, meaningful information about your GPX files allows others to search for and use your GPS data.

Properties

$name

public string $name

The name of the GPX file.

Original GPX 1.1 attribute.

$description

public string $description

A description of the contents of the GPX file.

Original GPX 1.1 attribute.

$author

public \phpGPX\Models\Person $author

The person or organization who created the GPX file.

An original GPX 1.1 attribute.

public \phpGPX\Models\Copyright $copyright

Copyright and license information governing use of the file.

Original GPX 1.1 attribute.

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

Original GPX 1.1 attribute.

$time

public \DateTime $time

Date of GPX creation

$keywords

public string $keywords

Keywords associated with the file. Search engines or databases can use this information to classify the data.

$bounds

public \phpGPX\Models\Bounds $bounds

Minimum and maximum coordinates which describe the extent of the coordinates in the file.

Original GPX 1.1 attribute.

$extensions

public \phpGPX\Models\Extensions $extensions

Extensions.

Methods

__construct

mixed phpGPX\Models\Metadata::__construct()

Metadata constructor.

toArray

array phpGPX\Models\Summarizable::toArray()

Serialize object to array