|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--Garmin.GpsDataFactory
Garmin.GpsDataFactory
Deprecated use Garmin.GpxActivityFactory instead
Defined in GarminGpsDataStructures.js
| Constructor Summary | |
Garmin.GpsDataFactory()
Used to parse track and/or waypoint data from a number of Xml formats. Currently only supports tracks from a GPX file. |
|
| Method Summary | |
String value of child element
|
_tagValue(parentNode, tagName)
Utility method to get the value of a child element. |
Array
|
getTracks()
Get the tracks parsed by this factory |
Array
|
getWaypoints()
Get the waypoints parsed by this factory |
void
|
initialize()
|
void
|
parseGpxDocument(gpxDocument)
Parse a gpx document and save the tracks and waypoints found |
void
|
parseGpxString(gpxString)
Parse a gpx string and save the tracks found as objects |
Array
|
parseGpxTracks(gpxDocument)
Parse a GPX xml document for tracks |
Garmin.WayPoint
|
parseGpxWaypoint(waypointNode)
Parse a GPX xml waypoint into a Waypoint object. |
Array
|
parseGpxWaypoints(gpxDocument)
Parse a GPX xml document for waypoints |
String
|
produceGpxString(tracks, waypoints)
Take a list of tracks and waypoints and generate a GPX xml string |
String
|
produceTrackGpxString(track)
Take a track object and generate a GPX xml string (without gpx or xml headers) |
String
|
produceWaypointGpxString(waypoint)
Take a waypoint object and generate a GPX xml string (without gpx or xml headers) |
String
|
toString()
String representation of instance. |
| Constructor Detail |
Garmin.GpsDataFactory()
| Method Detail |
String value of child element _tagValue(parentNode, tagName)
parent - DOM node
name - of child element
ArraygetTracks()
ArraygetWaypoints()
void initialize()
void parseGpxDocument(gpxDocument)
xml - document in GPX format
void parseGpxString(gpxString)
xml - string in GPX format
ArrayparseGpxTracks(gpxDocument)
xml - document in GPX format
Garmin.WayPoint parseGpxWaypoint(waypointNode)
xml - waypoint in GPX format
ArrayparseGpxWaypoints(gpxDocument)
xml - document in GPX format
String produceGpxString(tracks, waypoints)
Tracks -
Waypoints -
String produceTrackGpxString(track)
Track -
String produceWaypointGpxString(waypoint)
WayPoint -
String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||