Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: routing and isochrone server #217

Merged
merged 17 commits into from
Apr 24, 2024
Merged

feat: routing and isochrone server #217

merged 17 commits into from
Apr 24, 2024

Conversation

sebhoerl
Copy link
Collaborator

This PR adds the server package to eqasim. It can be started using the RunServer script and it provides an API to perform four different tasks, based on the MATSim network and the transit schedule of a scenario:

  • Road routing: Performs a shortest path routing on the road network
  • Transit routing: Performs a shortest path routing on the transit network

Both endpoints are designed such that they should yield the same results as agents would be routed in the simulation. However, certain settings can be overridden, such as the routing costs per transit mode for the SwissRailRaptor. The server then makes it possible to evaluate relatively quickly different parameters set-ups and thus calibrate the routing costs based on a travel survey.

  • Road isochrones: Given a starting location, provides all nodes (or a finer segmentation along the links) when are reachable with a maximum time threshold, also yielding the time to reach each point
  • Transit isochrones: Same as for the road network, but based on transit stops. Additionally, the maximum number of transfers can be configured.

All of this should have much more documentation to be useable. This will follow, for now the code has been heavily cleaned up and I publish it here so it stays up to date.

All endpoints optionally provide geometry information in WKT format as part of the API response. This makes it easy to directly visualize the results.

image

@sebhoerl sebhoerl merged commit 24e9d71 into develop Apr 24, 2024
1 check passed
@sebhoerl sebhoerl deleted the server branch April 24, 2024 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant