Class Garmin.TrackPoint
Garmin.TrackPoint
Defined in: GarminGpsDataStructures.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
TrackPoint class reprsents a point from a track.
|
| Method Attributes | Method Name and Description |
|---|---|
|
getDate()
Shortcut for directly getting the date/time
|
|
|
getElev()
Shortcut for directly getting the elevation value
|
|
|
getLat()
Shortcut for directly getting the lat value
|
|
|
getLng()
Shortcut for directly getting the longitude value
|
|
|
getMeasurement(context)
Get a Measurement from this TrackPoint
If the measurement does not exist - return null
|
|
|
prototype constructor
|
|
|
Determines if this TrackPoint point is valid for determing location
|
Class Detail
Garmin.TrackPoint()
TrackPoint class reprsents a point from a track.
A TrackPoint contains an associative array of measurements, which can be retrieved with a #getMeasurement call passing in a string index.
Equivalent to a in GPX format
A TrackPoint contains an associative array of measurements, which can be retrieved with a #getMeasurement call passing in a string index.
Equivalent to a
- Deprecated:
- use Garmin.Activity instead
Method Detail
{Garmin.DateTimeFormat}
getDate()
Shortcut for directly getting the date/time
- Returns:
- The time for this point
{Number}
getElev()
Shortcut for directly getting the elevation value
- Returns:
- The value of the elevation for this point
{Number}
getLat()
Shortcut for directly getting the lat value
- Returns:
- The value of the latitude for this point
{Number}
getLng()
Shortcut for directly getting the longitude value
- Returns:
- The value of the longitude for this point
{Object}
getMeasurement(context)
Get a Measurement from this TrackPoint
If the measurement does not exist - return null
- Parameters:
- {String} context
- of the measurement we would like to get
- Returns:
- A measurement object (important to remember it's value is in measurementObject.value!) or null if the measurement doesn't exist
initialize()
prototype constructor
{Boolean}
isValidLocation()
Determines if this TrackPoint point is valid for determing location
- Returns:
- True if lat/lon exist, false otherwise