Click or drag to resize

Telogis.GeoBase.Routing.RouteStop

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

A wrapper class for containing a route stop in a format understood by the server. In all other situations, LatLons should be used instead, and since the conversion between the two is handled by the Routing.Route class, this class need not be used directly.

JavaScript
var myRouteStop = new Telogis.GeoBase.Routing.RouteStop(new Telogis.GeoBase.LatLon(33.612914,-117.745395));
Constructor
NameDescription
RouteStop(loc)

Arguments

  • loc (LatLon) - The latitude-longitude coordinates to create the stop at.

Functions
NameDescription
getHeading ()

Gets the compass heading in degrees of this RouteStop.

JavaScript
var newRouteStop = new Telogis.GeoBase.Routing.RouteStop(new Telogis.GeoBase.LatLon(33.612914,-117.745395));
newRouteStop.setHeading(90); // Set route stop heading to 90 degrees
alert ('The heading of this route stop is ' + newRouteStop.getHeading() + ' degrees.');
Returns

Number - The compass heading in degrees of this RouteStop.

getLocation ()

Finds the LatLon location of the Routing.RouteStop.

Returns

LatLon - The latitude-longitude coordinates that the stop represents.

getRoadIntersection ()

The latitude-longitude coordinates where one must enter or leave the street network to reach this Routing.RouteStop.

Returns

LatLon - The road-intersection of the stop, or null if none was available.

getStopNumber ()

The index assigned to this Routing.RouteStop by the routing engine.

Returns

Number - The stop's number.

isEnd ()

Finds whether this Routing.RouteStop is the end of a Routing.Route.

Returns

Boolean - True if this stop is the end of a route; false otherwise.

isStart ()

Finds whether this Routing.RouteStop is the start of a Routing.Route.

Returns

Boolean - True if this stop is the start of a route; false otherwise.

setHeading (Number Heading)

Sets the compass heading in degrees of this RouteStop.

JavaScript
var newRouteStop = new Telogis.GeoBase.Routing.RouteStop(new Telogis.GeoBase.LatLon(33.612914,-117.745395));
newRouteStop.setHeading(90); // Set route stop heading to 90 degrees
Arguments
  • Heading (Number) - The compass heading in degrees of this RouteStop.