Segarloka Auto-Route Service
How to Use
- always use
uv
Coding Rules:
- Keep it simple
- Treat UI and backend logic as one vertical slice
- Do not change
app.pywithout checking the matching application service, test, and output flow
Architecture Rules
app.pyis a Streamlit UI shell only- Business orchestration belongs in
src/application/ - Streamlit state and display helpers belong in
src/presentation/ app.pymust not import solver, parser, distance-calculation, output-generator, or map-visualizer modules directly- Any change to route generation flow must be reflected in:
- UI entrypoint
- application service contract or orchestration
- relevant tests
- Prefer vertical-slice changes over layer-only edits
High-Level Purpose
This project is to automate the routing process for Segarloka's delivery service. Currently, the routing process is done manually by the operations team.
Matrix
Matrix done by OSRM.