Class Index | File Index

Classes


Class Garmin.Geocode

Garmin.Geocode
Defined in: GarminGeocode.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Currently just a wrapper for Google geocode service.
Method Summary
Method Attributes Method Name and Description
 
findLatLng(comma)
Takes an address and uses geocoding service to get waypoint.
 
Prototype constructor
 
register(Object)
Register to be an event listener.
Class Detail
Garmin.Geocode()
Currently just a wrapper for Google geocode service. This code could go into GarminDevicecontrol.js but it would create Google object dependencies.
Method Detail
{void} findLatLng(comma)
Takes an address and uses geocoding service to get waypoint. Registered listeners will receive either a 'onFinishedFindLatLon(Garmin.Waypoint)' or 'onException(Error)' call. For best results, address should be a comma delineated list of street, suite #, city-state-zip or just zip fields. It's less confusing to the geocoder if the person or business name is excluded.
Parameters:
{String} comma
delineated address.

initialize()
Prototype constructor

register(Object)
Register to be an event listener. An object that is registered will be dispatched a method if they have a function with the same dispatch name. So if you register a listener with an onFinishFindDevices, and the onFinishFindDevices message is called, you'll get that message. See class comments for event types
Parameters:
{Object} Object
that will listen for events coming from this object
See:

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