Transition is a modern new approach to transit planning. It's a web application to model, simulate and plan public transit and alternative transportation.
Add an review all data types regarding transit routing queries to chaire-lib-common.
Add a Routing.ts file which contains the main calculation function. This function takes a json object with the query parameters as argument and return results also as json objects, for easier serialization if necessary.
The TransitRoutingCaculator from transition-common is replaced by the Routing's chaire-lib-backend calculator and a RouitngUtils file in the transition-frontend to make the call to the routing socket route on the server.
In the frontend, the TransitRouting object is kept as it is easier to edit from the form by the user, but in the backend, it is all replaced with the parameter objects from chaire-lib-common.
A utility function can transform the result json objects to RoutingResult instances for easier manipulation by result handling functionalities.
Add an review all data types regarding transit routing queries to chaire-lib-common.
Add a
Routing.ts
file which contains the main calculation function. This function takes a json object with the query parameters as argument and return results also as json objects, for easier serialization if necessary.The
TransitRoutingCaculator
from transition-common is replaced by theRouting
's chaire-lib-backend calculator and aRouitngUtils
file in the transition-frontend to make the call to the routing socket route on the server.In the frontend, the
TransitRouting
object is kept as it is easier to edit from the form by the user, but in the backend, it is all replaced with the parameter objects from chaire-lib-common.A utility function can transform the result json objects to RoutingResult instances for easier manipulation by result handling functionalities.