INavigationStatusSetSpeed Method | |
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Derived classes should implement this method to notify the user of the vehicle's current speed.
Namespace:
Telogis.GeoBase.Navigation
Assembly:
geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax void SetSpeed(
int speedLimit,
bool limitIsPosted,
int vehicleSpeed,
SpeedUnit units
)
Sub SetSpeed (
speedLimit As Integer,
limitIsPosted As Boolean,
vehicleSpeed As Integer,
units As SpeedUnit
)
Parameters
- speedLimit
- Type: SystemInt32
The current speed limit (measured in units). - limitIsPosted
- Type: SystemBoolean
True if the speed limit is a posted speed limit, or an implied speed limit. - vehicleSpeed
- Type: SystemInt32
The current speed of the vehicle (again, measured in units). - units
- Type: Telogis.GeoBaseSpeedUnit
The SpeedUnits in which the speed limit and vehicle speed are measured.
Remarks
Typically, a navigation-based application will show a LabelBox
to display the current speed (passed as the vehicleSpeed parameter) of the vehicle. This method should
then be implemented to update the LabelBox with the new speed information.
The current speed limit is also passed to this method (as the speedLimit parameter) so your application
may alert the user (audibly and/or visibly) if the user is exceeding the speed limit.
See Also