Project 01
Indi/Bindi
A mobile app for recording passenger boardings and exits, built for a Dicle University transportation study in Diyarbakır.
Project 01
A mobile app for recording passenger boardings and exits, built for a Dicle University transportation study in Diyarbakır.
390
survey sessions
544
field CSV files merged
~730,000
rows in the combined data
Observers working with Dicle University's Transportation Engineering Division counted boardings and exits on bus and dolmuş routes, stop by stop. They needed data that could be analyzed.
Separately, I analyzed eight days of card-tap data.
GPS · one trip
Data · what one tap saves
| type | timeLocal | bindiTotal | indiTotal | accuracy | stopNumber |
|---|---|---|---|---|---|
| stop-change | 12:09:20 | 1.97 | DİSKİ | ||
| bindi_durak | 12:09:22 | 1 | 0 | 2.03 | DİSKİ |
| bindi_durak | 12:09:22 | 2 | 0 | 2.03 | DİSKİ |
| indi_durak | 12:09:23 | 2 | 1 | 2.03 | DİSKİ |
| bindi_durak | 12:09:39 | 3 | 1 | 1.63 | DİSKİ |
| stop-summary | 12:10:47 | 3 | 1 | 2.03 | DİSKİ |
The app is built for moving vehicles, where accidental taps are common. Debouncing and undo reduce wrong counts, and counting starts only after the observer, route, trip and stop are set, so every count has its context.
Each tap is written to the phone's storage as it happens, with no network needed. A trip left unfinished is closed and saved as a CSV the next time the app opens.
Ending a trip writes a CSV file and opens Android's share sheet, so observers can send it straight away. Earlier files stay listed in the app.
Under the hood
Challenge
Decision
While a trip is active, the app requests high-accuracy location updates every 2 seconds. When no trip is active, it switches to balanced accuracy with 10-second intervals to reduce battery usage. Each tap records the latest location fix along with its reported accuracy.
Why
Counts can be placed on the route and filtered by their reported accuracy, and each trip's GPS trace is saved in its CSV.
Trade-off
The app requests location updates every 2 seconds, with Android handling the actual update timing. Tracking only runs while the app is open, and each tap uses the latest available location. If the app is killed, the counts remain saved but the route is lost.
Challenge
Decision
Python scripts extract the archives, detect the delimiter from the header, and read files using UTF-8 with a Latin-1 fallback. Date, route, and observer information are taken from folder names. The latest version also records the source file and assigns a trip ID to each file.
Why
All rows were merged into a single table for each archive. In the latest round, each row can be traced back to its source file, and all 244 files are included in the output.