Hussein-Mahfouz / meet-me-halfway

https://hussein-mahfouz.github.io/meet-me-halfway/
2 stars 2 forks source link

Code skeleton #2

Open dabreegster opened 7 months ago

dabreegster commented 7 months ago

This project is a perfect motivator to make progress on a common web app template, https://github.com/alan-turing-institute/uatk-admin/issues/88. Before the hackathon next week, I'll have something ready that'll fit this project.

One thing useful to decide ahead of time is how the backend logic will work. Rust is (always) my first choice, and I've got related work started in https://github.com/a-b-street/15m/tree/main/backend/src, with an eye to refactoring pieces of this before the hackathon. If we want to use Python or something else, we should do some prep work to figure out how to compile it to WASM or run a server. Knowing the Python dependencies we'd use would help there, to know if compiling to WASM will be feasible.

For walking/cycling routing, I have plenty of existing code / cost functions in Rust that could be helpful. Driving is tougher if we want to take turn restrictions into account, but could be done (and can be ignored for the hackathon). PT is the harder part. I would love the opportunity to experiment with a simple GTFS router -- and maybe we'll need the control to do this multi-point routing. Another question there is to find a data source -- https://data.bus-data.dft.gov.uk/ is clean UK-wide GTFS for buses, but I haven't hunted around for the trains equivalent yet.

(Deciding the rough geographic scope of this app would also be handy -- how big / time-wise apart could people live?)

Hussein-Mahfouz commented 7 months ago

Re rail data, some notes on data sources in this issue https://github.com/Hussein-Mahfouz/drt-potential/issues/7 and an example of using the uk2gtfs r package here.