← All projectsKimya Ghasemlou

Project 01

Indi/Bindi

A mobile app for recording passenger boardings and exits, built for a Dicle University transportation study in Diyarbakır.

Role
Solo developer (Android app and data pipeline)
Platform
Android
Timeline
Nov 2025 – Apr 2026
Stack
React Native, Expo, TypeScript, AsyncStorage, expo-location, Python
Shipped
  • 390

    survey sessions

  • 544

    field CSV files merged

  • ~730,000

    rows in the combined data

The problem

The app had to record passenger counts on moving buses, capture GPS, and keep working offline.

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.

What I did

I built the Android app and the Python ETL pipeline that normalized and consolidated field-survey CSVs into analytical datasets.

Separately, I analyzed eight days of card-tap data.

GPS · one trip

Balıkçılar BaşıEski HalBağlar Dörtyolİskan EvleriDİSKİKantarCeylan AVMÇeşmeGaziler eski son durakJiberŞen DurakGo PetrolStadyum
One complete dolmuş trip on 29 April 2026: 48 simplified points from 1,085 GPS fixes, with the 13 stops where the observer counted.

Data · what one tap saves

typetimeLocalbindiTotalindiTotalaccuracystopNumber
stop-change12:09:201.97DİSKİ
bindi_durak12:09:22102.03DİSKİ
bindi_durak12:09:22202.03DİSKİ
indi_durak12:09:23212.03DİSKİ
bindi_durak12:09:39311.63DİSKİ
stop-summary12:10:47312.03DİSKİ
Six real rows from one stop on that trip: the stop change, three boardings, one exit and the summary. Accuracy rounded to two decimals.

Key features

  1. Stop-by-stop counting

    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.

  2. Immediate local event persistence

    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.

  3. Per-trip CSV export

    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

Data Integrity, Fault Tolerance & Recovery

  • Challenge

    Each count had to be linked to a location recorded while the vehicle was in motion.

    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

    Processing hundreds of CSV files from multiple observers and survey rounds, with inconsistent formats across RAR archives.

    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.

The result