Data Import Specifications

Introduction

myAvail Data Import

Why does this feature exist:

  • Converts the data from your scheduling package to a format that is usable by the myAvail software
  • This generic import allows our customers to easily switch between the major fixed route scheduling solutions on the market
  • Using a proprietary validation methodology, agency staff are able to perform schedule changes completely independently
  • This is the same toolset used by our internal services staff for those schedule changes where you may like support from our team of professional schedulers and planners

Scheduling package vendors Avail supports integrations for:

  • Hastus
  • CSched
  • TMS
  • VPR
  • Trapeze
  • Remix
  • Optibus

Two import specification standards:

  • Basic – this is utilized by the majority of scheduling vendors and provides the basic data required to import schedule data in the myAvail software
    • This will support the operation of the CAD/AVL Dispatch solution, in-vehicle solution and Real-time Public Information System (myStop)
  • Advanced – this standard provides all of the same functionality as basic but also supports:
    • KML import for route traces
    • Operator Run Pay details for myAvail Operator Timekeeping
    • Two way interface for actual data returned to the scheduling/planning software

Basic Schedule Data Import

Overview

This document defines the schedule data interface between a fixed route scheduling system and Avail Technologies myAvail CAD/AVL system. The interface consists of a set of files that is created by the scheduling system and read by the myAvail system. This document defines the contents of each of those files.

File Formats

All files are XML files. Each file is a valid XML document. The subsequent chapters in this document define the contents of each file.

The name of each file contains the date on which the file was created, in the format YYYYMMDD followed by a string that describes the contents of the file, e.g.20101128_Stops.xml. The file name for each file type is defined in the chapter for that file.

The root XML element for each file is <SchedFile>

All elements specified below are included, even if the element is empty.

Data Formats and Units

All dates are in the format YYYYMMDD.

All times are seconds past midnight. For times greater than 24:00 (i.e. times past midnight that are considered part of the previous operating day) the seconds past midnight time is greater than 86400 (24*3600).

All distances are in feet.

All latitude and longitude values are in decimal degrees. Boolean values are 1 for True and 0 for False.

Schedule File

Overview

The Schedule file contains information about this schedule version. Filename: YYYYMMDD_Schedule.xml

File Content

Example XML:

TagData TypeMax LengthComments
<Schedule>------Element that contains schedule information
<Description>String50Name of the schedule
<FromDate>String(Date)8Starting date of schedule
<ToDate>String(Date)8Ending date of schedule

File contains one Schedule element

Services File

Overview

The Service Level file contains information about the service levels contained in this schedule. Filename: YYYYMMDD_Services.xml

File Content

Example XML:

Tag/AttributeData TypeMax LengthComments
<Service>  Element that contains service information
ServiceRecordIdNumber---Used for reference in other files
<ShortName>String15The name of the service level

File contains one Service element for each service level.

Import Notes

Import will create service level number as a one up number. Import will use ShortName as Description

Calendar File

Overview

The Calendar file contains information about what service level is operated on each day within the schedule date range. Filename: YYYYMMDD_Calendar.xml

File Content

Example XML:

TagData TypeMax LengthComments
<Day>------

Element that contains calendar day

information

<Date>String(Date)8This is the day for the service level to be applied.
<ServiceRecordId>Number---This will reference Services File entries.

File contains one Day element for each date in the date range specified by the FromDate and ToDate values in the Schedule file, including the From Date and To Date.

Import Notes

Import will fill in any dates from ToDate to the end of the year with the NoService service level.

Stops File

Overview

The stops file contains information about each stop in the system. Only physical stop points are included in this file. Node only points are not included. All stops will have a valid latitude and longitude value, i.e. all stops must be geo-coded before being exported.

Filename: YYYYMMDD_Stops.xml

File Content

Example XML:

Tag/AttributeData TypeMax LengthComments
<Stop>  Element that contains stop information
StopRecordIdNumber---Used for reference in other files
<StopNumber>UInt161-65535myAvail StopID
<ShortName>String15myAvail Report Label
<Description>String50myAvail Description
<InternetName>String40myAvail Internet Name
<TimePoint>Boolean---True if this stop is a timepoint in any route in any service level.
<Latitude>Number---Individual Stop Latitude
<Longitude>Number---Individual Stop Longitude
<IsPublic>Boolean---True if this stop should be shown to the public in RTPI portals

File contains one Stop element for each stop in the system. Stops that are unused in the current schedule but are still valid stops in the system should be included in this file.

Import Notes

Import will set StopPoint flag to true for all stops.

Routes File

Overview

The Routes file contains information about each route in the system. Route information is only included once per route even if the route operates in multiple service levels.

Filename: YYYYMMDD_Routes.xml

File Content

Example XML:

Tag/AttributeData TypeMax LengthComments
<Route>  Element that contains route information
RouteRecordIdNumber---Used for reference in other files
<RouteNumber>UInt161-65535myAvail Route Farebox ID. This is the number that will be sent to the farebox.
<RouteName>String50myAvail Description
<InternetName>String40myAvail Internet Name
<StartTime>Number (seconds)---The earliest time on this route across all service levels
<EndTime>Number (seconds)---The latest time on this route across all service levels
<RouteDirection>------Element to contain list of Route Directions
DirectionString3This is the direction of the route, that the stops are included on
<RouteStop>------Element to contain one stop each for a Route and Direction
StopRecordIdNumber---References Stops File Record Ids
<Order>Number---First stop is order number 1, for each direction of the Route.

File contains one Route element for each route in the system. Stops in all patterns and service levels are included as RouteStop elements. Stops in the RouteDirection element are ordered in pattern order across all patterns in that direction as appropriate.

Routes that are not included in this schedule should not be included in this file even if they are still active in the scheduling system.

Import Notes

Import will have the ability to use either the RouteNumber or the RouteName as the myAvail route report label. However, if the RouteName value is used it will be truncated to 15 characters.

Route IVRName will be entered through DataPoint and will not be overwritten by import.

Patterns File

Overview

The Patterns file contains information about each pattern in each route in the system. Filename: YYYYMMDD_Patterns.xml

File Content

Example XML:

Tag/AttributeData TypeMax LengthComments
<Pattern>  Element that contains pattern information
PatternRecordIdNumber---Used for reference in other files
<RouteRecordId>Number---The route that this pattern belongs to
<ServiceRecordId>Number---The service level this pattern belongs to
<ShortName>String15myAvail Pattern Name
<Description>String50myAvail Pattern Description
<Direction>String3 
<InternalSignText>String16 
<InternetName>String40myAvail Internet Name
<PatternStop>------Element that contains stop information for this pattern
StopRecordIdNumber---For timepoints this needs to be the record ID of the associated stop, not the node
<Order>Number---First stop is order number 1
<Distance>Number (feet)---

Distance offset of this stop from the first stop, in feet. Value is 0 for the first stop.

Distance value must increase with order value.

<TimePoint>Boolean---True if this stop is a timepoint in this pattern.

File contains one pattern element for each pattern in each route in the schedule. Only patterns that are used in this schedule are included. If the pattern contains a mid-trip layover, this will be represented by including the stop where the layover occurs twice in a row in the pattern. Trips that use this pattern will also contain this stop twice in a row, with the time on the first stop representing the time that the bus arrives at the layover point and the time on the second stop representing the time that the bus leaves the layover point. Deadhead patterns are included in this file with a RouteRecordId that begin with a minus sign (e.g., -22).

Import Notes

myAvail Pattern name will be created by concatenating ShortName with Service Level Number and Direction. Example: OB01-2I. OB01 is the pattern ShortName. 2 is the service level number assigned by the import to the service level designated by the ServicesRecordId. I is the Direction.

If Description is empty, Pattern Name will be used for Pattern Description. If InternetName is empty, InternalSignText will be used for InternetName.

IVR Name will be entered through DataPoint and will not be overwritten by the import.

Trips File

Overview

The Trips file contains information about each trip of each route in the system. Filename: YYYYMMDD_Trips.xml

File Content

Example XML:

Tag/AttributeData TypeMax LengthComments
<Trip>------Element that contains trip information
TripRecordIdNumber---Used for reference in other files
<RouteRecordId>Number---The route that this trip belongs to
<Direction>String3 
<ServiceRecordId>Number--- 
<PatternRecordId>Number--- 
<HeadsignCode>Number---The code sent to the headsign for this trip
<ExternalAnnCode>Number---The code sent to the annunciator for the external announcement for this trip
<TripStop>------Element that contains stop information for this trip
StopRecordIdNumber--- 
<DepartureTime>Number---Departure time for this stop. Each stop in the pattern must have a time. When the stops are ordered in pattern order the time must not go backwards.

File contains one Trip element for each trip in the system. Only trips that are part of this schedule are included. See the Patterns File section for a description of how mid-trip layovers are represented. Deadhead trips are included in this file with a RouteRecordId that begins with a minus sign (e.g., -44).

Import Notes

myAvail trip farebox ID will be calculated by the import as the start time of the trip.

myAvail trip report label will be calculated by the import as Farebox ID-Direction. Example: 730-I

Import will only store trip information that is unique. For example, for Route 1, if there is a 730-I trip on weekday service and a 730-I trip on Saturday service, only one 730-I trip for Route 1 will be stored in the trip info table.

Import will verify that a time is provided for each stop in the pattern and that the time does not go backwards when the stops are in pattern order.  It will also verify that a time is not provided for a stop that is not in the pattern.

Import will check time offsets for each trip using the same pattern and if it finds a different set of offsets it will create a new pattern.

Import will check the headsign code and announce code for each trip using the same pattern and if it finds a different set of codes it will create a new pattern.

For deadhead trips, the HeadsignCode and the ExternalAnnCode may be left empty, and the import will default appropriate codes for this condition (e.g., a HeadsignCode that indicates ‘Out of Service’).

Runs File

Overview

The runs file contains information about each run in the system. Filename: YYYYMMDD_Runs.xml

File Content

Example XML:

Tag/AttributeData TypeMax LengthComments
<Run>------Element that contains run information
RunRecordIdNumber---Used for reference in other files
<ServiceRecordId>Number--- 
<RunNumber>UInt161-65535myAvail FareboxID, and Report Label
<Description>String50myAvail Description
<RunPiece>------Element that contains run pieces
PieceNumberNumber--- 
<BlockNumber>UInt161-65535The Block number that this piece runs on
<StartTripRecordId>Number---The record ID of the first trip of this piece
<EndTripRecordId>Number---The record ID of the last trip of this piece
<StartStopRecordId>Number---The record ID of the first stop of this piece. This stop must be part of the first trip.
<EndStopRecordId>Number---The record ID of the last stop of this piece. This stop must be part of the last trip.
<StartTime>Number---This time should match the departure time of the Start Stop on the Start Trip.
<EndTime>Number---This time should match the departure time of the End Stop on the End Trip.

File contains one Run element for each run in the system.

Import Notes

If Description is empty then Run Number will be used for the description in myAvail.

Blocks File

Overview

The blocks file contains information about each block in the system. Filename: YYYYMMDD_Blocks.xml

File Content

Example XML:

Tag/AttributeData TypeMax LengthComments
<Block>------Element that contains block information
<BlockNumber>UInt161-65535myAvail FareboxID and report label
<Description>String50myAvail Description
<ServiceRecordId>Number--- 
<VehicleType>String255The type of vehicle that can be used on this block. This would match a type set for each vehicle.
<BlockTrip>------Element that contains information about this trip in this Block
TripRecordIdNumber--- 
<Order>Number---The sequence of this trip in the block

File contains one Block element for each block in the system.

Import Notes

If Description is empty then Block  Number will be used for the description in OmniPoint.

Drivers File (Optional)

Overview

The drivers file contains information about each driver in the system. Filename: YYYYMMDD_Drivers.xml

File Content

Example XML:

Tag/AttributeData TypeMax LengthComments
<Driver>  Element that contains driver information
<BadgeNumber>Number1-99999999myAvail Farebox_ID and Report Label
<LastName>String32myAvail Driver Lastname
<FirstName>String18myAvail Driver Firstname

File contains one Driver element for each driver in the system.

Import Notes

OmniPoint Driver Report Label will be the same as their badge number.

Trace Files (Optional)

Overview

If available, route trace data can be exported in Google KML format, one file per route.

 

Advanced Schedule Data Import

Calendar file

The Calendar file contains information about what service level is operated on each day within the schedule date range.

Example XML:

Field#Type (Length)Comments
Calendar1  
 StartDate1DateRequested start date, format yyyy-mm-dd.
EndDate1DateRequested end date, format yyyy-mm-dd.
SchedulingUnit11String(8)Requested scheduling unit2.
ScheduleSet31String(8)Requested scheduling set2.
CalendarDaten  
 Date1DateScheduling unit date, format yyyy-mm-dd.
CrewSchedulingUnit1String(8)Scheduling unit assigned to the crew schedule.
CrewScheduleName1String(8)Crew schedule name.
CrewScheduleType41String(10)Days when the crew schedule operates (text field).

 

  CrewScheduleTypeValue1IntegerCode for days when the crew schedule operates (see Chapter 9).
CrewScheduleScenario1IntegerScenario number of the crew schedule.
CrewScheduleBooking1String(10)Booking that crew schedule belongs to.
VehicleSchedulingUnit1String(8)Scheduling unit assigned to the vehicle schedule.
VehicleScheduleName1String(8)vehicle schedule name.
VehicleScheduleType1String(10)Days when the vehicle schedule operates (text field).
VehicleScheduleTypeValue1DateCode for days when the vehicle schedule operates (see Chapter 9).
VehicleScheduleScenario1String(8)Scenario number of the vehicle schedule.
VehicleScheduleBooking1String(8)Booking that vehicle schedule belongs to.
EventListn List of events on this date
 EventandStatus1String(10)

Event and its status

Format: Event identifier (shortname) followed by its status “on or off”
Example: MRTon, MRToff

Table 4.1 – Calendar

Date records are sorted by the attributes Date and

CrewSchedulingUnit/VehicleSchedulingUnit.

Node file - ddmmyyyy.NDE.XML

This file includes only the stops used by trips included in the submitted schedule.

Field#Type (Length)Comments
Stops1  
 Stopn  
 Identifier1String(6)Unique stop identifier.
DescriptionforAvail1String(50)Stop description
Place1String(6)Place associated to the stop, if any.
Xcoordinate1IntegerX coordinate5 of stop.

 

  Ycoordinate1IntegerY coordinate5 of stop.
IntersectingStreetAtSegmentBeginning1String(50)Represent the first intersection.
IntersectingStreetAtSegmentEnd1String(50)Represent the second intersection.
SegmentOffset1IntegerDistance between street segment and actual stop6.
District1String(6)District of the stop
Zone1String(8)Zone of the stop. It usually reprents a fare zone.
BayId1String(6)Bay identifier
IsPublic1BooleanTrue if stop is for public otherwise false7.
DistanceFromIntersectionAtBeginning1IntegerThis value is mutually exclusive with the distance from the second intersection.
DistanceFromIntersectionAtEnd1IntegerThis value is mutually exclusive with the distance from the first intersection.
Longitude1DecimalLongitude of the location.
Latitude1DecimalLatitude of the location.
StopDdescription1String(50)Stop description. This is a user- entered description, if any.
Otherwise, it is a description generated from the street and nearest intersection (e.g., the generated description for a stop on Market Street near Maple is Market/Maple).
BenchAvail1Integer1 if stop has bench or Other bench, 0 otherwise
ShelterAvail1Integer1 if stop has shelter or Other shelter, 0 otherwise. Does not consider shelter from a building
LightingAvail1Integer1 if lighting within 20' or solar lighting, 0 otherwise
SignageAvail1Integer1 unless the stop is a flag stop or the stop sign is missing
PowerAvail1Integer1 if the stop has power, 0 otherwise. Currently, it is always 0.
  QRcodeAvail1Integer1 if stop has QR code, 0 otherwise Currently, it is always 0
  AccessibleAvail1Integer1 unless stop is flagged as 'not recommended'

Stop records are sorted by the attribute Identifier.

Place file - ddmmyyyy.PLC.XML

This file describes places used by vehicle schedules referred to by the Calendar file. Places are used mainly to define timing points in the network definition.

Stops located at timing points must reference these timing points. For other stops, the reference is optional. Reference places are used to create a relation between places usually when places are close to each other. Reference places are used to simplify some displays and reports, and to avoid duplication of information when defining deadhead or travel information.

Field#Type (Length)Comments
Places1  
 Placen  
 Identifier1String(6)Place identifier.
Description1String(40)Place description.
ReferencePlace1String(6)Reference place for this place (optional).

 

IsGarage

 

1

 

Boolean

Indicates if the place is associated to a garage.
District1String(6)District of the place.
Number1String(8)Alternative number used by certain customers for special purposes.

 

AlternateName

 

1

 

String(20)

Alternative name, used by certain customers for special purposes (for example to use in a display system limited by the number of characters it can handle).
Xcoordinate1IntegerX coordinate8 of place.
  Ycoordinate IntegerY coordinate8 of place.
  Longitude DecimalLongitude of the place.
  Latitude DecimalLatitude of the place.

Main place pattern for route – ddmmyyyy.PPAT.XML

This file lists places in the Main Place Pattern for each different route and direction covered by trips in the schedule. If a route and direction has no Main Place Pattern, a record is generated with the route identifier, direction text and direction code.

Field#Type (Length)Comments
RoutesMainPlacePatterns1  
 Tripn  
 Route1String(5)Route identifier.
Direction1String(*)Direction of the pattern, text form.
DirectionValue1IntegerDirection code
RouteMainPlacePatternDirection1String(10)Identifies the Main Place Pattern for the route direction, if any.
RouteMainPlacePatternPlacenString(6)Place of the place pattern.

Main place pattern records are sorted by the attributes Route and Direction.

Itinerary file – ddmmyyyy.NET.XML

This file describes itineraries between stops. Different itineraries can exist between two stops: a base off­service itinerary, a base in­service itinerary and variant specific itineraries.

Field#Type (Length)Comments
Itineraries1  
 Itineraryn  
 Number1IntegerNumber of the itinerary.
  StartStop1String(8)Stop identifier at the start of the itinerary.
  EndStop1String(8)Stop identifier at the end of the itinerary.
  Distance1IntegerDistance in meters (or feet).
  XcoordinatenIntegerX coordinates of the itinerary.
  YcoordinatenIntegerY coordinates of the itinerary.
  LongitudenDecimalLongitude of the itinerary.
  LatitudenDecimalLatitude of the itinerary.

Route file - ddmmyyyy.RTE.XML

This file describes routes used by vehicle schedules referred to by the Calendar file.

Field#Type (Length)Comments
Routes1  
 Routen  
 Identifier1String(5)Route identifier.
NumericIdentifier1IntegerNumeric identifier of the route.
PublicIdentifier1String(5)Public route identifier
RouteIsPublic1BooleanIndicates if it is a public route
ServiceType1String(*)Type of service (school, express, etc.).
ServiceTypeValue1IntegerType of service code
ServiceMode1String(*)Transport mode (tram, metro, bus, etc.).
ServiceModeValue1IntegerTransport mode code
  RouteDescription1String(50) 
  RouteLongDescription1String(60) 

Trip pattern file – ddmmyyyy.PAT.XML

This file includes the stops of the trip patterns used by the trips included in the vehicle schedules referred to by the Calendar file. Certain stops may be associated with timing points.

For each trip pattern, there is one record for each stop. These are ordered according to the itinerary. Note that the installation settings for the transit agency determine availability of information for trip pattern detail records.

Field#Type (Length)Comments
TripPatterns1  
 TripPatternn  
 Route1String(5)Route of the trip pattern.
Identifier1IntegerTrip pattern identifier
Direction1String(*)Direction of the pattern, text form.
DirectionValue1IntegerDirection code
VehicleDisplay1String(8)Vehicle display code for this pattern.
IsInService1BooleanTrue for in-service trip variant otherwise false
Via1String(8)Route variant of the trip pattern.
ViaDescription1String(40)Description of route variant specified
TripPatternPointn  
 StopIdentifier1String(8)Stop identifier associated with the trip pattern point.
Place1String(6)Place identifier associated with the trip pattern point.
VehicleDisplay1String(8)Display code to be used for this stop within pattern. Note that if a new code is not specified for that stop it will show the last specified code within that pattern.
IsAtTimingPoint1BooleanTrue if this stop is a timing point for this trip pattern otherwise false. Passing times are available for timing points.
   ItineraryNumber1IntegerItinerary number associated with the trip pattern point.

Trip pattern records are sorted by the attributes Route, Identifier and sequence of stops in the trip pattern.

Display code file - ddmmyyyy.VDC.XML

This file describes vehicle display codes used in vehicle schedules referred to by the Calendar file.

Field#Type (Length)Comments
VehicleDisplayCodes1  
 VehicleDisplayCoden  
 Identifier1String(8)Destination sign code.

 

AlternateCode

 

1

 

String(8)

Alternative destination sign code. This is sometimes used where different codes are required depending on the display code system installed.
Message11String(40)Description 1 for sign code.
Message21String(40)Description 2 for sign code.
Message31String(40)Description 3 for sign code.
Message41String(40)Description 4 for sign code.

Vehicle Schedules

Block file - ddmmyyyy.BLK.XML

This file describes the blocks for each vehicle schedules referred to by the calendar file.

Field#Type (Length)Comments
Blocks1  
 VehicleSchedulen  
 Name1String(8)Vehicle schedule name.
ScheduleType1String(*)Vehicle schedule type (text type fields).
ScheduleTypeValue1IntegerVehicle schedule type code
Scenario1IntegerVehicle schedule scenario.
Booking1String(10)Booking of the vehicle schedule.
SchedulingUnit1String(8)Scheduling unit of the vehicle schedule.
Description1String(80)Vehicle schedule description.
AvailServiceLevel1String(10)Avail service level of the vehicle schedule.
Blockn  
 Number1String(8)Block number as defined for the company.
InternalNumber1Integer

Unique block number in the

 

BlockLogonId1Integer

Represents the numeric block identifier operators use to log in.

 

OperatingDays1String(7)Block operating days using numbers from 1 to 7, beginning with Monday. Each day in the schedule type is shown with the number if the block operates, and an asterisk (*) otherwise.
StartPlace1String(6)First place of the block (when pulls are created, this is the garage place)
StartStop1String(8)First stop of the block
StartTime1TimeTime at which the first driver takes charge of the vehicle.
ProductiveStartPlace1String(6)Start place of the first in-service trip.

 

   ProductiveStartStop1String(8)Start stop of the first in-service trip of the block
ProductiveStartTime1TimeStart time of the first in-service trip.
ProductiveEndPlace1String(6)End place of the last in-service trip.
ProductiveEndStop1String(8)End stop of the last in-service trip of the block
ProductiveEndTime1TimeEnd time of the last in-service trip
EndPlace1String(6)Last place of the block (when pulls are created, this is the garage place)
EndStop1String(8)Last stop of the block.
EndTime1TimeTime at which the last driver of the vehicle is no longer responsible for the vehicle.
VehicleGroup1String(4)Vehicle group identifier
VehicleType1String(4)Vehicle type identifier
EventListn List of events for this block
 EventandStatus1String(10)Event and its status
Format: Event identifier (shortname) followed by its status “on or off”
Example: MRTon, MRToff
Tripn  
 InternalNumber1IntegerUnique trip number

Trip file - ddmmyyyy.TRP.XML

This file includes all trips used in vehicle schedules referred to by the Calendar file.

Field#Type (Length)Comments
Trips1  
 Tripn  
 InternalNumber1IntegerUnique trip number 
Number1String(8)Trip number.
PermanentNumber1IntegerRepresents the permanent internal trip number.
OperatingDays1String(7)Trip operating days using numbers from 1 to 7, beginning with Monday. Each day in the schedule type is shown with the number if the trip operates, and an asterisk (*) otherwise.
RouteForStatistics1String(5)Route identifier of this trip.
Pattern1IntegerTrip pattern assigned to this trip.
Type1String(*)Trip type (pull-in, pull-out, deadhead, regular, and opportunity).
TypeValue1IntegerTrip type code
IsSpecial1BooleanTrue when it is a special trip otherwise false. Special trips do not have a detailed trip pattern.
IsPublic1BooleanTrue if trip is for public information otherwise false.
DisplayCode1String(8)Identifier of the vehicle display code assigned to the trip
DisplayCodeExport1String(80)Concatenated message 1 and message 2 of the vehicle display code.
IVRDescription1String(512)IVR description of the vehicle display code

 

  TripStopn This element contains at least 2 stops
 ArrivalTime1TimeArrival time at the stop.
DepartureTime1TimeDeparture time at the stops.  If there is no loading time, the departure time is the same as the arrival time
AllowBoarding1BooleanTrue if passengers can board the vehicle at the stop
AllowDebarking1BooleanTrue if passengers can get off the vehicle at the stop
TPNote1String(10000)Note on timing point. Driver and Driver/Public notes are exported.
TripNotesn A trip can have more than one trip note.
 TripNote1String(10000)Notes on trip. Driver and Driver/Public notes are exported.

 

Crew Schedules

Crew Schedule file - ddmmyyyy.CRW.XML

This file describes the planned crew schedules referred to by the Calendar file.

Field#Type (Length)Comments
CrewSchedules1  
 CrewSchedulen  
 Name1String(8)Crew schedule name.
ScheduleType1String(*)Crew schedule type (text type fields).
ScheduleTypeValue1IntegerCrew schedule type code
Scenario1IntegerCrew schedule scenario.
Booking1String(10)Booking of the crew schedule.
SchedulingUnit1String(8)Scheduling unit of the crew schedule.
Description1String(80)Crew schedule description.
Piecen  
 DutyIdentifier1String(8)Duty identifier
InternalNumbernIntegerUnique duty number
RunLogonIdnIntegerRepresents the numeric run (duty) identifier operators use to log in.
DutyOperatingDaysnString(7)Duty operating days using numbers from 1 to 7, beginning with Monday. Each day in the schedule type is shown with the number if the duty operates, and an asterisk (*) otherwise.
BlockInternalNumbern Unique block number
Position1 Position of the piece within the duty.
ReportPlace1String(6)Place where the employee reports for work for that piece
ReportTime1TimeTime when the employee must report for work for that piece.
StartPlace1String(6)Start place of the piece.
StartStop1String(8)First stop of the piece
StartTime1TimeStart time of the piece.
EndPlace1String(6)End place of the piece.

 

   EndStop1String(8)Last stop of the piece.
EndTime1TimeEnd time of the piece.
ClearPlace1String(6)Place where the employee is free.
ClearTime1TimeTime when the employee is free.
PieceInternalNumber1String(10)Unique piece number
EventListn List of events for this duty
 EventandStatus1String(10)Event and its status
Format: Event identifier (shortname) followed by its status “on or off”
Example: MRTon, MRToff

Shapes

Shape file - Shapes.XML

This file describes itineraries used by trip patterns assigned to trips of the vehicle schedules referred to by the Calendar file.

Field#Type (Length)Comments
Shapess1  
 Shapen  
 Identifier1String(10)Identifier the shapes of the trip pattern. Trip pattern route and trip pattern external identifier, concatenated.
ShapePointLatitude1String(5)Represents the latitude of the itinerary shape point.
ShapePointLongitude1String(*)Represents the longitude of the itinerary shape point.
ShapePointSequence1IntegerSequential order of the shape point in the trip pattern.

 

Was this article helpful?

Articles in this section

New to the Help Center?
Review the Help Center guide
Help Center Feedback
Have a suggestion for new content or how we can improve the Help Center? Let us know!