Getting traffic forecast

Traffic forecast is produced by the simulation engine. The simulation engine uses the link network for its calculation. Therefore you can retrieve the forecast results of Optima only on the link network or on streets that belong to the link network.

The endpoint generally provides huge XML responses.

Important:  You can adopt the HTTP header Accept-Encoding:gzip to ask the server to provide gzipped data. This is particularly useful to save bandwidth, and also using the RLIN module.

If you have installed the RLIN module (see → Installing pre-computed RLIN module) and you make a query based only on the strt location, with an empty request payload, you can get a pre-computed and quicker response associated to the latest base simulation.

More generally, you can make:

Authentication phase

Before using the endpoint, you must run the authentication phase (→ Login).

After the authentication, a session opens and a valid session token persists until: