Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

jasikpark/tamu-gtfsrealtime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tamu-gtfsrealtime

You can find me in the Rust Community Discord Server as @Caleb#3174

attempt to consume the A&M bus api and provide a gtfs-realtime compliant api

A&M Spirit Bus API: https://transport.tamu.edu/BusRoutesFeed/swagger/ui/index#!/Buses/Buses_GetBusesOnRoute_Mentor

so my plan is

  • 🚧 determine which rust webframework seems best for the project
  • 🚧 work through the rocket tutorial and documenation
  • read through the gtfs-realtime spec in its entirety
  • build a library that describes the gtfs-realtime spec to allow easy gtfs-realtime stream creation from rust
  • learn how to write an application that polls the api once every ten seconds (with some added random variance)
  • learn how to work with databases so that there can be a single worker that polls the Spirit Bus api every ten seconds for updated info, that enters that information in a database for consumption
  • take what I have learned from the rocket tutorial and create a gtfs-realtime server

the program structure will be

  • consume api from A&M bus api site
  • store that in a clear, internal representation via meaningful rust structs
  • create an api server that uses rocket and serve that on a minimal vps
  • implement a web-based administrative ui for the server

building on / resources&blog posts

About

GTFS-Realtime for Texas A&M Spirit Bus API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages