Skip to content

trip-updates-for-agency API endpoint of onebusaway-api-webapp does not include stop sequence in stop time updates #341

@jamespizzurro

Description

@jamespizzurro

As of today, the trip updates returned by the trip-updates-for-agency API endpoint of onebusaway-api-webapp look something like this:

  {
    trip {
      trip_id: "10820533__KPOB-CS:221:0:Weekday:1:23MAR:85028:12345"
      route_id: "513"
    }
    stop_time_update {
      arrival {
        time: 1684511491
      }
      departure {
        time: 1684511491
      }
      stop_id: "16380"
    }
    stop_time_update {
      arrival {
        time: 1684511911
      }
      departure {
        time: 1684511911
      }
      stop_id: "2766"
    }
    stop_time_update {
      arrival {
        time: 1684512211
      }
      departure {
        time: 1684512211
      }
      stop_id: "2114"
    }
    stop_time_update {
      arrival {
        time: 1684512631
      }
      departure {
        time: 1684512631
      }
      stop_id: "2164"
    }
    stop_time_update {
      arrival {
        time: 1684513351
      }
      departure {
        time: 1684513351
      }
      stop_id: "2869"
    }
    stop_time_update {
      arrival {
        time: 1684513929
      }
      departure {
        time: 1684513929
      }
      stop_id: "3219"
    }
    stop_time_update {
      arrival {
        time: 1684513951
      }
      departure {
        time: 1684513951
      }
      stop_id: "2861"
    }
    vehicle {
      id: "KPOB-CS:221:0:Weekday:1:23MAR:85028:12345"
    }
    timestamp: 1684511203
    delay: 151
  }

Note that all the stop time update entities are lacking a stop_sequence field despite that information seemingly being readily available so long as timepoint predictions are enabled. It would be great if these could be added given there doesn't appear to be any technical limitation in OneBusAway that would explain why they're not included.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions