GPXTrack (API Reference)
Class GPXTrack
Single track from the GPXDocument. Can be used as an input to the LocationSimulator.
Can be created and modified via GPXTrackWriter.
-
Method Summary
Modifier and TypeMethodDescriptionGets the value of the description of the element in the trkType.Provides a list of all stored track points converted to aLocationobject.getName()Gets the value of the name of the element in the trkType.voidsetDescription(String value) Sets the value of the description of the element in the trkType.voidSets the value of the name of the element in the trkType.
-
Method Details
-
getLocations
Provides a list of all stored track points converted to a
Locationobject. See type_wptType for more details on thewptTypeformat that is used for a track point.- Returns:
List of
Locationobjects.
-
getName
Gets the value of the name of the element in the trkType. If nothing was set before, defaults to an empty string.
Can be overridden by the user. If nothing was set before, defaults to an empty string.
- Returns:
The value of the name of the element in the trkType.
-
setName
Sets the value of the name of the element in the trkType. Can be overridden by the user. Defaults to an empty string.
Can be overridden by the user. If nothing was set before, defaults to an empty string.
- Parameters:
value-The value of the name of the element in the trkType.
-
getDescription
Gets the value of the description of the element in the trkType. If nothing was set before, defaults to an empty string.
Can be overridden by the user. If nothing was set before, defaults to an empty string.
- Returns:
The value of the description of the element in the trkType.
-
setDescription
Sets the value of the description of the element in the trkType. Can be overridden by the user. Defaults to an empty string.
Can be overridden by the user. If nothing was set before, defaults to an empty string.
- Parameters:
value-The value of the description of the element in the trkType.
-