chairemobilite / transition

Transition is a modern new approach to transit planning. It's a web application to model, simulate and plan public transit and alternative transportation.
http://transition.city
MIT License
20 stars 13 forks source link

routing: Refactor calculations so calls from the backend do not need to go through socket routes #983

Open tahini opened 3 weeks ago

tahini commented 3 weeks ago

With #982, routing calculations are moved to the backend. But the Routing.ts file still use the service managers, for both transit and single mode calculations, which return an instance of the Service, which passes through a socket route to make the call.

There could be a backend and frontend versions of the service managers and services to avoid this and make backend calls more straightforward.