Skip to content

Orion Trip Generator

Eddy Ionescu edited this page Jun 7, 2018 · 21 revisions
  • takes in JSON S3 files (API output) to generate trips

What is a trip?

  • uniqueness is defined by (vehicle_id, route_id, direction_id) staying consistent with every transit state.
  • If this tuple is different in the next state, then we end the trip. If we see a tuple that we didn't see last state, we start a new trip.
  • when a trip ends, we write it to a JSON file in S3. We can worry about compressing it or loading it into some databases later.