Class GpxFile Representation of GPX file.
public array<mixed,\phpGPX\Models\Point> $waypoints
A list of waypoints.
public array<mixed,\phpGPX\Models\Route> $routes
A list of routes.
public array<mixed,\phpGPX\Models\Track> $tracks
A list of tracks.
public \phpGPX\Models\Metadata $metadata
Metadata about the file.
The original GPX 1.1 attribute.
public \phpGPX\Models\Extensions $extensions
public string $creator
Creator of GPX file.
mixed phpGPX\Models\GpxFile::__construct()
GpxFile constructor.
array phpGPX\Models\Summarizable::toArray()
Serialize object to array
string phpGPX\Models\GpxFile::toJSON()
Return JSON representation of GPX file with statistics.
\DOMDocument phpGPX\Models\GpxFile::toXML()
Create XML representation of GPX file.
mixed phpGPX\Models\GpxFile::save(string $path, string $format)
Save data to file according to selected format.