Class Index | File Index

Classes


Class Garmin.TrackPoint

Garmin.TrackPoint
Defined in: GarminGpsDataStructures.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
TrackPoint class reprsents a point from a track.
Method Summary
Method Attributes Method Name and Description
 
Shortcut for directly getting the date/time
 
Shortcut for directly getting the elevation value
 
Shortcut for directly getting the lat value
 
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
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

Documentation generated by JsDoc Toolkit 2.0.0 on Mon Aug 17 2009 09:24:32 GMT-0700 (PDT)