This section contains the API documentation related to release 5 of this blueprint.
The API information of this blueprint is as follows:
Kalman filter model API information | |||
---|---|---|---|
Model | Parameter type | Parameter name | Description of parameter |
Kalman filter | Inputs | vehicleid | the unique identifier of a vehicle. |
time | current timestamp 't'. | ||
longitude | Geographic coordinate that specifies the east–west position of a vehicle on the Earth's surface. | ||
latitude | Geographic coordinate that specifies the north–south position of a point on the Earth's surface. | ||
angle | Angle 0-359.99 to approximate the direction of a vehicle. | ||
speed | Speed of the vehicle at time 't'. | ||
lane | Lane number on which the vehicle is running. | ||
pos | Position of vehicle on which the vehicle is running on. | ||
Outputs | longitude | Predicted longitude. | |
latitude | Predicted latitude. | ||
Note: The API has not yet been developed but is a work in progress. |
The steps to start the API server that
Clone the code from the repository (if you haven't cloned it before). Link: pred-vanet-mec - gerrit.akraino.org:
git clone "https://gerrit.akraino.org/r/pred-vanet-mec"
Run the following command to start the API-server:
docker run mehmoodasif/NAME-OF-API-SERVER -p HOST-PORT-NUMBER:CONTAINER-PORT-NUMBER # OR python NAME-OF-API-SERVER.py --port PORT-NUMBER