Syntax 

int PCMSSetCostOptions(Trip trip, bool units, int fuelInUnit, int fuelCost, int mpgCostLoaded, int mpgCostEmpty, int otherCostLoaded, int otherCostEmpty, int costTimeLoaded, int costTimeEmpty, int greenHouseGas)


Parameters 

Trip trip – Handle to a trip.

bool units – True = Metric; False = English.

int fuelInUnit – 1 = gallons; 0 = liters.

int fuelCost – Fuel cost per gallon/liter.

int mpgCostLoaded – Miles or kilometers per gallon or liter for a loaded truck.

int mpgCostEmpty – Miles or kilometers per gallon or liter for an empty truck.

int otherCostLoaded – Other cost per mile/km for a loaded truck.

int otherCostEmpty – Other cost per mile/km for an empty truck.

int costTimeLoaded – Cost of time "loaded" per mile/km; For reports only, not for routing.

int costTimeEmpty – Cost of time "empty" per mile/km; For reports only, not for routing.

int greenHouseGas – Greenhouse gas amount.


NOTE: All values should be multiplied by 100 in order to be consistent with the rest of the PCMS APIs. (For example: setting int fuelCost to 271 is a fuel cost of $2.71.)


Description

Allows users to set cost variables related to Least Cost Routing (miles per gallon, cost per gallon, other cost per mile, cost of labor per hour, and CO2 pounds per gallon).


Return Values 

Standard Returns


Supported Since: PC*MILER Connect 24

Category: Trip Options