Click or drag to resize

getKphSpeedCat Function

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
getKphSpeedCat Function

The getKphSpeedCat function returns the appropriate SPEED_CAT value for a given speed (specified in kilometers per hour).

Tip Tip

It's recommended that you use this function to populate the SPEED_CAT column of an IMPORT STREETS statement.

Syntax

Alchemy
getKphSpeedCat(speed);

Nomenclature

speedRequired. Road-speed, in kilometers per hour.

Returns

The corresponding SPEED_CAT value for the given speed.

Example

In the following example the getKphSpeedCat function is used in conjunction with an IMPORT STREETS statement to populate the SPEED_CAT column.

Alchemy
IMPORT STREETS [
  ...
  speed_cat = getKphSpeedCat(%legal_speed_kph),
  ...
]

See Also