|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--Garmin.TrackSegment
Garmin.TrackSegment
Deprecated use Garmin.Activity instead
Defined in GarminGpsDataStructures.js
| Constructor Summary | |
Garmin.TrackSegment()
Equivalent to a |
|
| Method Summary | |
void
|
addTrackPoint(trackPointObject)
|
Garmin.TrackPoint
|
findNearestValidLocationPoint(index, incDirection)
Find the nearest valid point to the index given |
String
|
getDuration()
Get the total duration for this track segment |
Garmin.TrackPoint
|
getEnd()
Quick method to get the last point |
Garmin.DateTimeFormat
|
getEndDate()
Get the data/time for the end point of this segment |
Number
|
getLength()
Get the total number of trackpoints in this segment |
Garmin.TrackPoint
|
getPoint(<Number> index)
Get the point specified on the track If the number is negative, get's the first If it's larger than possible, get's the last Otherwise it gets the number requested |
Garmin.TrackPoint
|
getStart()
Quick method to get the first point |
Garmin.DateTimeFormat
|
getStartDate()
Get the data/time for the start point of this segment |
Number
|
getStartLat()
Get the latitude for the start point of this segment |
Number
|
getStartLng()
Get the longitude for the start point of this segment |
void
|
initialize()
|
String
|
toString()
String representation |
| Constructor Detail |
Garmin.TrackSegment()
| Method Detail |
void addTrackPoint(trackPointObject)
Garmin.TrackPoint findNearestValidLocationPoint(index, incDirection)
index - is the index
incDirection - is an int in the direction we'd like to look positive nums are forward, negative nums are backwards
String getDuration()
Garmin.TrackPoint getEnd()
Garmin.DateTimeFormat getEndDate()
Number getLength()
Garmin.TrackPoint getPoint(<Number> index)
index - is the point we want
Garmin.TrackPoint getStart()
Garmin.DateTimeFormat getStartDate()
Number getStartLat()
Number getStartLng()
void initialize()
String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||