Telogis.GeoBase.Routing.RouteStop |
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.
var myRouteStop = new Telogis.GeoBase.Routing.RouteStop(new Telogis.GeoBase.LatLon(33.612914,-117.745395));
Name | Description |
---|---|
RouteStop(loc) | Arguments
|
Name | Description |
---|---|
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.'); Number - The compass heading in degrees of this RouteStop. |
getLocation () | Finds the LatLon location of the Routing.RouteStop. ReturnsLatLon - 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. ReturnsLatLon - The road-intersection of the stop, or null if none was available. |
getStopNumber () | The index assigned to this Routing.RouteStop by the routing engine. ReturnsNumber - The stop's number. |
isEnd () | Finds whether this Routing.RouteStop is the end of a Routing.Route. ReturnsBoolean - 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. ReturnsBoolean - 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
|