Click or drag to resize

RouteGetVehicleSpeedLimit Method (StreetLink, SpeedUnit)

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

Note: This API is now obsolete.

Gets the speed limit on a link for a vehicle whose specifications are in the VehicleSpec of this Route. Only supported in local mode.

Namespace:  Telogis.GeoBase.Routing
Assembly: (in Version:
[ObsoleteAttribute("Use public double GetVehicleSpeedLimit(LatLon location, ulong linkId, SpeedUnit units)")]
public double GetVehicleSpeedLimit(
	StreetLink link,
	SpeedUnit units


Type: Telogis.GeoBaseStreetLink
The link whose speed limit is to be returned.
Type: Telogis.GeoBaseSpeedUnit
The units in which to return the result.

Return Value

Type: Double
The speed limit that applies to the VehicleSpec of this Route when traveling along the specified link.
ArgumentNullExceptionThrown when link is null.
NotSupportedExceptionThrown when not running in local mode.
A speed limit is defined as a single-link constraint that applies to the specified link and that is valid for this Route's VehicleSpec. If no such speed limit applies, then the link's posted speed limit is returned. If the data for the link does not contain a posted speed limit then -1 is returned. If the route travels in both or neither direction along the link, then constraints in both directions will be considered.
StreetLink streetLink = ...;
VehicleSpec overweight = new VehicleSpec();
overweight.GrossWeight_kg = 4000;

using (Route rt = new Route()) {
       rt.VehicleSpec = overweight;
       double speedLim = rt.GetVehicleSpeedLimit(streetLink, SpeedUnit.MilesPerHour);
See Also