backend/src/utils/processors
Fred Boniface c147d9c50c TimetableAPI-Upgrade (#64)
Partial implementation of: #47

The 2022.2.1 release currently live is based off of the TimetableAPI-Upgrade branch.

Partial PIS code matching is now implemented in cases where x number of stops need skipping at the start of a route.

Reviewed-on: #64
2024-02-11 15:53:12 +00:00
..
ldb TimetableAPI-Upgrade (#64) 2024-02-11 15:53:12 +00:00
timetable TimetableAPI-Upgrade (#64) 2024-02-11 15:53:12 +00:00
README.md TimetableAPI-Upgrade (#64) 2024-02-11 15:53:12 +00:00

Translators

The utilities in the translators folder translate the upstream API into the downstream API.

The aim of the translators is to ensure a consistent data format while removing any unused data to keep the response sizes as small as possible.

Translators are kept in separate files so changes can be made in one place. Each translator exports a single function 'transform()'. This function accepts data from the upstream API and uses other functions in the file to build the API response object before returning that object to the caller.