Communicator Plugin API Version 1.9

Class Index | File Index

Classes


Class Garmin.WayPoint

Garmin.WayPoint
Defined in: GarminGpsDataStructures.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Garmin.WayPoint(lat, lng, elev, name, addrdetails, desc, sym, type, cmt)
A waypoint represents a stored location.
Method Summary
Method Attributes Method Name and Description
 
Get waypoint address XML string.
 
Get city that the waypoint is located in, according to Google Maps API.
 
Get comment.
 
Get country that the waypoint is located in, according to Google Maps API.
 
Shortcut for directly getting the date/time
 
Get waypoint description.
 
Shortcut for directly getting the elevation value
 
Shortcut for directly getting the lat value
 
Shortcut for directly getting the longitude value
 
Get waypoint name.
 
Get state that the waypoint is located in, according to Google Maps API.
 
Get street address that the waypoint is located in, according to Google Maps API.
 
Get waypoint symbol usually associated with a display icon.
 
Get waypoint type.
 
Get zip code that the waypoint is located in, according to Google Maps API.
 
initialize(lat, lng, elev, name, addrdetails, desc, sym, type, cmt)
Prototype constructor
Class Detail
Garmin.WayPoint(lat, lng, elev, name, addrdetails, desc, sym, type, cmt)
A waypoint represents a stored location. Equivalent to a in GPX format Note: this class is only used by Garmin.Geocode but otherwise has been replaced by Garmin.Activity.
Parameters:
{Number} lat
{Number} lng
{Number} elev
{String} name
addrdetails
desc
sym
type
cmt
Method Detail
{String} getAddress()
Get waypoint address XML string. Uses the extension element to generate XML address format listed in the GPX Extensions v3 schema: http://www8.garmin.com/xmlschemas/GpxExtensions/v3/GpxExtensionsv3.xsd
Returns:
The address of this waypoint, as an XML string with the outermost element being gpxx::Address

{String} getCity()
Get city that the waypoint is located in, according to Google Maps API. See http://www.google.com/apis/maps/ for details.
Returns:
The city the waypoint is located in.

{String} getComment()
Get comment.
Returns:
The value of the comment for this point

{String} getCountry()
Get country that the waypoint is located in, according to Google Maps API. See http://www.google.com/apis/maps/ for details.
Returns:
The country the waypoint is located in.

{Garmin.DateTimeFormat} getDate()
Shortcut for directly getting the date/time
Returns:
The DateTimeFormat object for this point

{String} getDescription()
Get waypoint description.
Returns:
A description of this waypoint

{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

{String} getName()
Get waypoint name.
Returns:
The name of this waypoint

{String} getState()
Get state that the waypoint is located in, according to Google Maps API. See http://www.google.com/apis/maps/ for details.
Returns:
The state the waypoint is located in.

{String} getStreetAddr()
Get street address that the waypoint is located in, according to Google Maps API. See http://www.google.com/apis/maps/ for details.
Returns:
The street address the waypoint is located in.

{String} getSymbol()
Get waypoint symbol usually associated with a display icon.
Returns:
The symbol of this waypoint

{String} getType()
Get waypoint type.
Returns:
The type of this waypoint

{String} getZip()
Get zip code that the waypoint is located in, according to Google Maps API. See http://www.google.com/apis/maps/ for details.
Returns:
The zip code the waypoint is located in.

initialize(lat, lng, elev, name, addrdetails, desc, sym, type, cmt)
Prototype constructor
Parameters:
lat
lng
elev
name
addrdetails
desc
sym
type
cmt

Documentation generated by JsDoc Toolkit 2.3.2 on Mon Jul 25 2011 09:36:54 GMT-0700 (MST)