.

2022 10 31


Tags: api data
Reading time: less than 1 minute

Istanbul traffic API

The Transport Management Center of Istanbul Metropolitan Municipality has websites and mobile applications that display traffic conditions in Istanbul.

Aside from data on individual roads, the website also provides a “traffic index” for the city. The index consists of three percentages:

  • The overall traffic in Istanbul
  • The traffic on the European side of Istanbul
  • The traffic on the Asian side of Istanbul

I thought it might be fun to see how the traffic index has changed over time, and maybe play around with predicting the traffic index for the future. So I wrote a cron job that scrapes the traffic index from the API and stores it in ClickHouse.

The API endpoint 1 returns a JSON object with the following fields:

  • TI: The overall traffic index
  • TI_Av: European side traffic index
  • TI_An: Asian side traffic index

I also put the data on Kaggle 2, so you can play around with it.

Citation

If you find this work useful, please cite it as:
@article{yaltirakli,
  title   = "2022 10 31",
  author  = "Yaltirakli, Gokberk",
  journal = "gkbrk.com",
  year    = "2025",
  url     = "https://www.gkbrk.com/journal/2022-10-31"
}
Not using BibTeX? Click here for more citation styles.
IEEE Citation
Gokberk Yaltirakli, "2022 10 31", January, 2025. [Online]. Available: https://www.gkbrk.com/journal/2022-10-31. [Accessed Jan. 20, 2025].
APA Style
Yaltirakli, G. (2025, January 20). 2022 10 31. https://www.gkbrk.com/journal/2022-10-31
Bluebook Style
Gokberk Yaltirakli, 2022 10 31, GKBRK.COM (Jan. 20, 2025), https://www.gkbrk.com/journal/2022-10-31

Comments

© 2025 Gokberk Yaltirakli