Click or drag to resize

Telogis.GeoBase.Routing.Movement

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Movement Class

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.

Functions
NameDescription
getStop ()

Gets the Routing.RouteStop associated with the calling Routing.Direction object, or returns null if the direction does not pertain to any stop.

Returns

Routing.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);
});
Returns

String - The direction type.