getKphSpeedCat Function |
The getKphSpeedCat function returns the appropriate SPEED_CAT value for a given speed (specified in kilometers per hour).
Tip |
---|
It's recommended that you use this function to populate the SPEED_CAT column of an IMPORT STREETS statement. |
getKphSpeedCat(speed);
speed | Required. Road-speed, in kilometers per hour. |
The corresponding SPEED_CAT value for the given speed.
In the following example the getKphSpeedCat function is used in conjunction with an IMPORT STREETS statement to populate the SPEED_CAT column.
IMPORT STREETS [ ... speed_cat = getKphSpeedCat(%legal_speed_kph), ... ]
getMphSpeedCat - get the SPEED_CAT value for a given speed (measured in miles per hour)