ADSP-EcoTrekker-Project / EcoTrekker

3 stars 1 forks source link

feat(vehicle URIs): Implemented the use of URIs instead of only vehicle names #76

Closed lierseleow closed 7 months ago

lierseleow commented 7 months ago

This PR changes the vehicle-consumption service, the co2-calculator service and the rest-api service to handle vehicle URIs.

Also includes a change to the co2-calculator to always ask the depot service if it is a top level vehicle (like "/bus" or "/tram") and a line is provided. co2 calculator will also gracefully handle if the depot service does not know the line.

resolves #70 resolves #74