RouteGetVehicleSpeedLimit Method (LatLon, UInt64, SpeedUnit) | |
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
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:
geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax public double GetVehicleSpeedLimit(
LatLon location,
ulong linkId,
SpeedUnit units
)
Public Function GetVehicleSpeedLimit (
location As LatLon,
linkId As ULong,
units As SpeedUnit
) As Double
Parameters
- location
- Type: Telogis.GeoBaseLatLon
The location of the start of the link (in the direction of travel).
When the location is not at an intersection, the direction is not guaranteed.
One way streets are always handled in the direction that they can be traveled. - linkId
- Type: SystemUInt64
The link ID. - units
- Type: Telogis.GeoBaseSpeedUnit
The units in which to return the result.
Return Value
Type:
DoubleThe speed limit that applies to the
VehicleSpec of this Route when traveling
along the specified link.
Exceptions Remarks
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.
Examples VehicleSpec overweight = new VehicleSpec();
overweight.GrossWeight_kg = 4000;
using (Route rt = new Route()) {
rt.VehicleSpec = overweight;
double speedLim = rt.GetVehicleSpeedLimit(new LatLon(41.472460, -81.857430),
815665229,
SpeedUnit.MilesPerHour);
}
See Also