Work / Team Project
Hamakoku (team 301)
A transit app that guides you by the fastest route from Yokohama National University to Yokohama Station.
Why we built it
Getting from Yokohama National University to Yokohama Station involves many transport options, and the station is far away.
Two apps
Flyers our team made to introduce them (in Japanese).
My role
I was responsible for the backend overall.
The part that finds the shortest route
It splits the work by route pattern, runs them at the same time, and returns up to 6 results in order of arrival time. If one pattern fails, the other results are still returned.
How the whole app is divided into parts
One gateway (adapter) per source of data absorbs the differences in data formats between operators. Fares, stop and station IDs, and operator settings are gathered in one place.
A general-purpose debugging system
I built a shared debugging module: anyone on the team can add a single line in their own part to see the search results and the flow of data at that point. View on GitHub →
Connecting to the frontend
I connected the screens to the backend and built the flow that receives search conditions and returns results.
How it works (architecture)
Drawn based on the design described in the README of the public repository.
Each route pattern is one file. If one pattern fails, the other results are still returned.
Data and technology
Data
- Yokohama Municipal Bus, Sotetsu Bus, Yokohama Municipal Subway, Sotetsu Line: Open Data for Public Transportation (ODPT)
- Kanagawa Chuo Kotsu: published timetables
- Bike share: availability from HELLO CYCLING and Docomo Bike Share (GBFS)
- Map: OpenStreetMap
Technology
Late-night times past 24:00, such as "25:30", are handled as values that do not wrap back to 0 partway through.