Class MapstractionGeocoder
Object
|
+--MapstractionGeocoder
- class
MapstractionGeocoder
Defined in mapstraction-geocode.js
|
Constructor Summary |
MapstractionGeocoder(<Function> callback, <String> api, <Function> error_callback)
MapstractionGeocoder instantiates a geocoder with some API choice
|
|
Method Summary |
void
|
addAPI(api)
Internal function to actually set the router specific parameters
|
void
|
geocode(<Object> address)
Performs a geocoding and then calls the specified callback function with the location
|
void
|
geocode_callback(response, mapstraction_geocoder)
Default handler for geocode request completion
|
void
|
geocode_error(response)
Default Geocode error function
|
void
|
swap(<String> api)
Change the Routing API to use
|
api
Object api
callback
Object callback
error_callback
Object error_callback
geocoders
Object geocoders
svn_revision_string
Object svn_revision_string
MapstractionGeocoder
MapstractionGeocoder(<Function> callback, <String> api, <Function> error_callback)
MapstractionGeocoder instantiates a geocoder with some API choice
Parameters:
callback - The function to call when a geocode request returns (function(waypoint))
api - The API to use, currently only 'mapquest' is supported
error_callback - The optional function to call when a geocode request fails
addAPI
void addAPI(api)
Internal function to actually set the router specific parameters
geocode
void geocode(<Object> address)
Performs a geocoding and then calls the specified callback function with the location
Parameters:
address - The address object to geocode
geocode_callback
void geocode_callback(response, mapstraction_geocoder)
Default handler for geocode request completion
geocode_error
void geocode_error(response)
Default Geocode error function
swap
void swap(<String> api)
Change the Routing API to use
Documentation generated by
JSDoc on Mon Dec 15 20:12:04 2008