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