planarnetwork / transxchange2gtfs

tool to convert transxchange data into a GTFS feed
30 stars 17 forks source link

include block_id in trips, if it exists #31

Closed chadselph closed 4 years ago

chadselph commented 4 years ago

Here's a real-world example of a the Operational/Block/BlockNumber field

  <VehicleJourneys>
    <VehicleJourney SequenceNumber="1">
      <PrivateCode>022MFDBO:O:1</PrivateCode>
      <Operational>
        <Block>
          <Description>623</Description>
          <BlockNumber>623</BlockNumber>
        </Block>
        <TicketMachine>
          <TicketMachineServiceCode>22</TicketMachineServiceCode>
          <JourneyCode>0510</JourneyCode>
        </TicketMachine>
      </Operational>
linusnorton commented 4 years ago

I've never seen an application for this but it makes sense so I'm happy to merge.

chadselph commented 4 years ago

Some AVL feeds provide the vehicle's block id; it's actually better than trip_id because then you also know what this vehicle will be doing the rest of the day.