Mapstraction

Class MapstractionRouter

Object
   |
   +--MapstractionRouter

class MapstractionRouter

Defined in mapstraction-route.js


Field Summary
 Object api
          
 Object callback
          
 Object error_callback
          
 Object geocoders
          
 Object routers
          
 Object svn_revision_string
          
 
Constructor Summary
MapstractionRouter(<Function> callback, <String> api, <Function> error_callback)
            MapstractionRouter instantiates a router with some API choice
 
Method Summary
 void addAPI(api, options)
           Internal function to actually set the router specific parameters
 void route(<Array> addresses)
           Performs a routing and then calls the specified callback function with the waypoints and route
 void route_callback(response, mapstraction_router)
           Default handler for route request completion
 void route_error(response)
           Default Route error function
 void routePoints(points)
           Performs a routing and then calls the specified callback function with the waypoints and route
 void swap(<String> api)
           Change the Routing API to use

Field Detail

api

Object api

callback

Object callback

error_callback

Object error_callback

geocoders

Object geocoders

routers

Object routers

svn_revision_string

Object svn_revision_string

Constructor Detail

MapstractionRouter

MapstractionRouter(<Function> callback, <String> api, <Function> error_callback)

Method Detail

addAPI

void addAPI(api, options)

route

void route(<Array> addresses)

route_callback

void route_callback(response, mapstraction_router)

route_error

void route_error(response)

routePoints

void routePoints(points)

swap

void swap(<String> api)

Mapstraction

Documentation generated by JSDoc on Mon Dec 15 20:12:04 2008