Telogis.GeoBase.Routing.Movement |
Movement inherits from Routing.Direction.
A wrapper class to be filled server-side that represents a driving direction instructing the driver to turn at an intersection.
Name | Description |
---|---|
getStop () | Gets the Routing.RouteStop associated with the calling Routing.Direction object, or returns null if the direction does not pertain to any stop. ReturnsRouting.RouteStop - The route-stop associated with the direction. |
getType () | Gets a string describing the type of the Routing.Direction (e.g. whether the direction is a departure or arrival, the direction of any turns it indicates, etc.). JavaScript // Create a route, then.. myRoute.getDirections (function (result) { var count = 1; var list = ''; for (var i = 0; i < result.getLength(); i++) { list += 'Movement for direction '+ count + ': ' + result.getDirection(i).getType() + '\n'; count++; } alert (list); }); String - The direction type. |