GPXParser#
GPX#
- class GPX#
Represents a GPX document
- doc#
The parsed GPX document
- Type
str
- to_csv(include_waypoints, include_tracks, include_routes)#
- Parameters
include_waypoints (bool) – A bool determining if waypoints should be included in the resulting CSV file. Defaults to True.
include_tracks (bool) – A bool determining if tracks should be included in the resulting CSV file. Defaults to True.
include_routes (bool) – A bool determining if routes should be included in the resulting CSV file. Defaults to True.
- Returns
The parsed GPX object
- Return type
Convert the parsed GPX document into a CSV file
GPXParser#
- class GPXParser#
Provides safe parsing and basic utilities for GPX files
- parse(doc)#
Parse a GPX document
- Parameters
doc (file) – The GPX file
- Returns
The parsed GPX object
- Return type
- to_waypoints()#
Convert the parsed GPX document into a list of waypoints
- Returns
A list of waypoints
- Return type
list[Waypoint]