Share via


FuelConsumptionHighway property

Returns or sets either the volume per distance or the distance per volume your vehicle travels on the highway or motorway for the selected unit of measurement for fuel consumption (FuelConsumptionUnits property of the DriverProfile object). Read/write Double.

Applies to

Objects:  DriverProfile

Syntax

object.FuelConsumptionHighway

Parameters

Part Description
object Required. An expression that returns a DriverProfile object.

Remarks

Set the FuelConsumptionHighway property after setting the unit of measurement for fuel consumption in the FuelConsumptionUnits property.

Example

    Sub GetHighwayFuelConsumption()

  Dim objApp As New MapPoint.Application   Dim objMap As MapPoint.Map   Dim objRoute As MapPoint.Route
  'Set up the application   Set objMap = objApp.ActiveMap   Set objRoute = objMap.ActiveRoute   objApp.Visible = True   objApp.UserControl = True
  'Add route stops and calculate the route   objRoute.Waypoints.Add objMap.FindResults("Seattle, WA").Item(1)   objRoute.Waypoints.Add objMap.FindResults("Redmond, WA").Item(1)   objRoute.Calculate
  'Get fuel consumption for the highway   MsgBox "Highway fuel consumption: " _     + CStr(objRoute.DriverProfile.FuelConsumptionHighway)
  End Sub

Note  This sample code is specific for use in MapPoint North America; it is for illustration purposes only.