GTFS to NeTEx Conversion
GTFS Agencies
For each GTFS Agency, Chouette Convert creates a NeTEx Operator
with the following information:
GTFS Agency | Details | NeTEx Operation |
---|---|---|
| GTFS Agency ID |
|
| Name |
|
<Operator id="DTA" version="any">
<Name>Demo Transit Authority</Name>
</Operator>
GTFS Stops
For each GTFS Stations (location_type
= 1
), Chouette Convert creates a NeTEx StopPlace
with the following information:
GTFS Stop | Details | NeTEx StopPlace |
---|---|---|
| GTFS Stop ID |
|
| Name |
|
For each GTFS Stops (location_type
= 0
) with a GTFS Parent Station, Chouette Convert a NeTEx Quay
with the following information:
GTFS Stop | Details | NeTEx Quay |
---|---|---|
| GTFS Stop ID |
|
| Name |
|
<StopPlace id="BEATTY_AIRPORT" version="any">
<Name>Nye County Airport</Name>
<quays>
<Quay id="BEATTY_AIRPORT_1" version="any">
<Name>Nye County Airport</Name>
</Quay>
<Quay id="BEATTY_AIRPORT_2" version="any">
<Name>Nye County Airport</Name>
</Quay>
<quays>
</StopPlace>
According to the selected NeTEx Profile, NeTEx Quays will be embbeded into the Parent StopPlace or included directly into a dedicated Frame. See the NeTEx profile document for details.
For each GTFS Stops (location_type
= 0
) without a GTFS Parent Station, Chouette Convert a NeTEx StopPlace
with the following information:
GTFS Stop | Details | NeTEx StopPlace |
---|---|---|
| GTFS Stop ID |
|
| Name |
|
<StopPlace id="FUR_CREEK_RES" version="any">
<Name>Furnace Creek Resort (Demo)</Name>
</StopPlace>
GTFS Route
For each GTFS Route, Chouette Convert creates a NeTEx Line
with the following information:
GTFS Route | Details | NeTEx Line |
---|---|---|
| GTFS Route ID |
|
| Name |
|
| Short name of a route |
|
<Line id="AB" version="any">
<Name>Airport - Bullfrog</Name>
<ShortName>10</ShortName>
</Line>
GTFS Calendars
For each GTFS Calendars, Chouette Convert creates a NeTEx DayType
with the following information:
GTFS Calendar | Details | NeTEx DayType |
---|---|---|
| GTFS Calendar ID |
|
| if monday is selected |
|
| if tuesday is selected | |
| if wednesday is selected | |
| if thursday is selected | |
| if friday is selected | |
| if saturday is selected | |
| if sunday is selected |
For each GTFS Calendars, Chouette Convert creates a NeTEx OperatingPeriod
with the following information:
GTFS Calendar | Details | NeTEx OperatingPeriod |
---|---|---|
| GTFS Calendar ID |
|
| Start service day |
|
| End service day |
|
For each GTFS Calendars, Chouette Convert creates a NeTEx DayTypeAssignment
with the following information:
GTFS Calendar | Details | NeTEx DayTypeAssignment |
---|---|---|
| GTFS Calendar ID |
|
| ||
|
<DayType id="WE" version="any">
<properties>
<PropertyOfDay>
<DaysOfWeek>Saturday Sunday</DaysOfWeek>
</PropertyOfDay>
</properties>
</DayType>
<OperatingPeriod id="WE" version="any">
<FromDate>2006-12-31T23:00:00.0Z</FromDate>
<ToDate>2019-12-30T23:00:00.0Z</ToDate>
</OperatingPeriod>
<DayTypeAssignment id="WE" version="any" order="0">
<OperatingPeriodRef ref="WE"/>
<DayTypeRef ref="WE"/>
</DayTypeAssignment>
GTFS Calendar Dates
For each GTFS Calendar Dates, Chouette Convert creates a NeTEx DayTypeAssignment
with the following information:
GTFS Calendar | Details | NeTEx DayTypeAssignment |
---|---|---|
| GTFS Service ID concatenated with order |
|
| Incremental positive integer |
|
| GTFS Calendar Date ID |
|
| Date when service exception occurs |
|
| Indicates whether service is available |
( |
<DayTypeAssignment id="FULLW" version="any" order="1">
<Date>2007-06-04</Date>
<DayTypeRef ref="FULLW"/>
<isAvailable>false</isAvailable>
</DayTypeAssignment>
GTFS Trips
For each GTFS Trip, Chouette Convert creates a NeTEx ServiceJourney
with the following information:
GTFS Trip | Details | NeTEx ServiceJourney |
---|---|---|
| GTFS Trip ID |
|
| Identifies when service is available |
|
GTFS Stop Sequence identifier |
|
|
For each GTFS Stop Times associated to the Trip, Chouette Convert creates an embedded NeTEx TimetabledPassingTime
with the following information:
GTFS StopTime | Details | NeTEx TimetabledPassingTime |
---|---|---|
| Departure time from a specific stop for a specific trip on a route |
|
| ||
| Arrival time at a specific stop for a specific trip on a route |
|
| ||
| Suffixed with GTFS Stop Sequence identifier |
|
<ServiceJourneyPattern id="ServiceJourneyPattern:BEATTY_AIRPORT-AMV" version="any">
<RouteRef ref="Route:BEATTY_AIRPORT-AMV"/>
<pointsInSequence>
<StopPointInJourneyPattern id="BEATTY_AIRPORT-AMV-1" version="any" order="1">
<ScheduledStopPointRef ref="BEATTY_AIRPORT"/>
</StopPointInJourneyPattern>
<StopPointInJourneyPattern id="BEATTY_AIRPORT-AMV-2" version="any" order="2">
<ScheduledStopPointRef ref="AMV"/>
</StopPointInJourneyPattern>
</pointsInSequence>
</ServiceJourneyPattern>
For each GTFS Stop associated to a GTFS Stop Time, Chouette Convert creates an NeTEx ScheduledStopPoint
with the following information:
GTFS Stop | Details | NeTEx TimetabledPassingTime |
---|---|---|
|
|
|
For each GTFS Stop associated to a GTFS Stop Time, Chouette Convert creates an NeTEx PassengerStopAssignment
with the following information:
GTFS Stop | Details | NeTEx TimetabledPassingTime |
---|---|---|
|
|
|
| ||
(according to the NeTEx resource created for GTFS Stop) | ||
|
|
|
<ScheduledStopPoint id="BEATTY_AIRPORT" version="any"/>
<PassengerStopAssignment id="BEATTY_AIRPORT" version="any" order="0">
<ScheduledStopPointRef ref="BEATTY_AIRPORT"/>
<StopPlaceRef ref="BEATTY_AIRPORT"/>
</PassengerStopAssignment>
Unique GTFS Stop Sequence
To create NeTEx Route
and JourneyPattern
, Chouette Convert identifies each unique Stop sequence defined by GTFS Trip and their Stop Times.
For example, these GTFS Stop Times:
trip_id,stop_id,stop_sequence
STBA,STAGECOACH,1
STBA,BEATTY_AIRPORT,2
CITY1,STAGECOACH,1
CITY1,NANAA,2
CITY1,NADAV,3
CITY1,DADAN,4
CITY1,EMSI,5
CITY2,EMSI,1
CITY2,DADAN,2
CITY2,NADAV,3
CITY2,NANAA,4
CITY2,STAGECOACH,5
AB1,BEATTY_AIRPORT,1
AB1,BULLFROG,2
AB2,BULLFROG,1
AB2,BEATTY_AIRPORT,2
BFC1,BULLFROG,1
BFC1,FUR_CREEK_RES,2
BFC2,FUR_CREEK_RES,1
BFC2,BULLFROG,2
AAMV1,BEATTY_AIRPORT,1
AAMV1,AMV,2
AAMV2,AMV,1
AAMV2,BEATTY_AIRPORT,2
AAMV3,BEATTY_AIRPORT,1
AAMV3,AMV,2
AAMV4,AMV,1
AAMV4,BEATTY_AIRPORT,2
Chouette Concert will identify the following Stop sequences:
STAGECOACH
,BEATTY_AIRPORT
STAGECOACH
,NANAA
,NADAV
,DADAN
,EMSI
EMSI
,DADAN
,NADAV
,NANAA
,STAGECOACH
BEATTY_AIRPORT
,BULLFROG
BULLFROG
,BEATTY_AIRPORT
BULLFROG
,FUR_CREEK_RES
FUR_CREEK_RES
,BULLFROG
BEATTY_AIRPORT
,AMV
AMV
,BEATTY_AIRPORT
The GTFS Stop sequence identifier is created from this list of GTFS Stop Identifiers.
For each GTFS Stop Sequence, Chouette Convert creates a NeTEx Route
with the following information:
GTFS Stop Sequence | NeTEx ServiceJourney |
---|---|
GTFS Stop Sequence identifier prefixed with |
|
|
|
<Route id="Route:BEATTY_AIRPORT-AMV" version="any">
<LineRef ref="AAMV"/>
</Route>
For each unique GTFS Stop Sequence, Chouette Convert creates a NeTEx ServiceJourneyPattern
with the following information:
GTFS Stop Sequence | NeTEx ServiceJourney |
---|---|
GTFS Stop Sequence identifier prefixed with |
|
GTFS Stop Sequence identifier prefixed with |
|
<ServiceJourneyPattern id="ServiceJourneyPattern:BEATTY_AIRPORT-AMV" version="any">
<RouteRef ref="Route:BEATTY_AIRPORT-AMV"/>
<pointsInSequence>
<StopPointInJourneyPattern id="BEATTY_AIRPORT-AMV-1" version="any" order="1">
<ScheduledStopPointRef ref="BEATTY_AIRPORT"/>
</StopPointInJourneyPattern>
<StopPointInJourneyPattern id="BEATTY_AIRPORT-AMV-2" version="any" order="2">
<ScheduledStopPointRef ref="AMV"/>
</StopPointInJourneyPattern>
</pointsInSequence>
</ServiceJourneyPattern>
For each Stop in the Sequence, Chouette Convert creates a NeTEx StopPointInJourneyPattern
with the following information:
GTFS Stop in Sequence | NeTEx StopPointInJourneyPattern |
---|---|
GTFS Stop Sequence identifier prefixed with GTFS |
|
order in sequence |
|
|
|