Traffic
GET /contesto/traffico
Traffic intensity around the point, as a qualitative rating.
Example Request
curl --location 'https://sandbox-context.realitycs.it/contesto/traffico?latitudine=43.32215&longitudine=11.3259&raggio=250' \
--header 'Authorization: Bearer <token>'
Request Fields
| Field | Required | Default | Description | Type | Example | Notes |
|---|---|---|---|---|---|---|
latitudine | yes | Latitude of the point | number | 43.32215 | ||
longitudine | yes | Longitude of the point | number | 11.3259 | ||
raggio | optional | 500 | Search radius around the point, in metres | number | 250 | From 1 to 1000 |
JSON keys in the response:
- traffico_intensita: Traffic intensity around the point, as an uppercase Italian string such as
MEDIO.
Qualitative, not a measurement
The endpoint returns a rating rather than a vehicle count or a speed, and it carries no reference period: it describes the ordinary traffic conditions of the area, not the traffic at the time of the call. Use it to compare areas, not to estimate volumes.
The smallest response of the service
This endpoint returns a single scalar. If you need it alongside other context, request Full context once instead of calling each block separately: it carries traffico_intensita with exactly the same value.
Example Response
{
"contesto": {
"traffico_intensita": "MEDIO"
}
}