Use Case 12 is dedicated to information related to the protection in real time of workers who carry out conservation actions on the roads.
Receipt and publication of data related to the real-time positioning of:
-
Maintenance workers
-
Construction and maintenance vehicles found on the tracks
This information can be sent to the DGT 3.0 platform either by IoT devices or by Apps that can be used to position these elements on the road.
All requests made to the API must be sent to the following URL (URL base):
Publication
To publish information, a REST API is available:
- General details for making a request:
- The details of the master tables and data that can compose the event:
- The structure of the event can be seen here:
Subscription
The service subscription part of use case 12 will be done using the MQTT protocol.
MQTT (MQ Telemetry Transport) is a messaging protocol used as a simple and lightweight method to transfer data to / from low-power devices.
The protocol supports a single messaging pattern, the Publish-Subscribe pattern: each message is published on a topic that must be subscribed to in order to receive the information.
Subscription to the service of this use case must be through the topic:
usecase12/events
See more information and a connection example here.
Information available:
The information that is being published in the development environment is a simulation with non-real information that changes throughout the day, so that the consumer interface can be tested.