Dynamic attributes associated to KPI Templates
When using KPI APIs, you need to be managing well-formed JSON objects.
Some KPI Templates (see the complete list → Optima KPI methodology) require some mandatory dynamic attributes, as indicated in the table:
|
KPI Attribute |
Description |
KPI Templates requiring the Dynamic KPI Attribute |
|---|---|---|
|
Delay |
Integer type. It contains the delay interval, expressed in seconds. The possible values are:
Example:
"dynamicAttributes": [
{
"code": "delay",
"value": "120"
}]
|
The templates listed require the attribute delay:
|
|
externality |
String type. It contains the externality accounted for. The possible values are:
Example:
"dynamicAttributes": [
{
"code": "externality",
"value": "Carbon Dioxide"
}]
|
For future use |
|
forecast |
Integer type. It contains the forecast interval, expressed in seconds. The possible values are:
Example:
"dynamicAttributes": [
{
"code": "fore",
"value": "1800"
}]
|
The templates listed require the attribute fore:
|
|
ML_forecast |
Integer type. It contains the time forecast interval, which is expressed in seconds. The possible values are:
|
The templates listed require the attribute ML Forecast horizon:
|
|
interval |
Integer type. It contains the time interval, which is expressed in minutes and formatted as hh:mm:ss. The harmonized values (speed or flow) are the values with the starting instant of validity falling into interval. The possible values are:
Example:
"dynamicAttributes": [
{
"code": "interval",
"value": "00:15:00"
}]
|
The templates listed require the attribute interval:
|
|
only in queue |
String type. The possible values are:
Example:
"dynamicAttributes": [
{
"code": "onlyQueue",
"value": "All vehicles"
}]
|
The templates listed require the attribute onlyQueue:
|
|
Point |
Real type. The position of the public transport vehicle. |
Not applicable. |
|
shortTermForecastKpi |
Boolean type. It contains the indication about how the KPI is handled in the Short-Term Forecast (STF) template. If:
Example:
"dynamicAttributes": [
{
"code": "shortTermForecastKpi",
"value": "true"
}]
|
The templates listed require the attribute shortTermForecastKpi:
|
|
Micro forecast horizon |
Integer type. It contains the forecast interval, expressed in minutes. The possible values are:
|
The templates listed require the attribute Micro forecast horizon:
|
|
Tsys |
Integer type. Transport system value. |
Not applicable. |
|
SFQI_threshold |
Real type. It contains the threshold value for the forecast speed quality indicator. The possible values are:
For details on SFQI, → Forecast Quality Indicators (FQI). |
The templates listed require the attribute MAPE_speed_threshold:
|
|
GEH_flow_threshold: |
Real type. It contains the threshold value for the forecast flow quality indicator. The possible values are:
For details on GEH, → Forecast Quality Indicators (FQI). |
The templates listed require the attribute GEH_flow_threshold:
|
|
forecast_distance |
Integer type. It contains the forecast distance, which is expressed in seconds. The possible values are:
|
The templates listed require the attribute forecast_distance:
|
|
skip_if_road_closed |
Boolean type.
|
The templates listed require the attribute skip_if_road_closed:
|
|
Road Closures |
String type. Two possible values:
Default value: Calculate even on closed roads. |
|
|
Total Emissions Externality |
The pollutant type can be selected from the list:
|
|
|
Vissim Emissions Externality |
The pollutant type can be selected from the list:
|
Topics in this section