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 |
|
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 |
|
| ||
|
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 |
( |
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 |
|
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) | ||
|
|
|
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:
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 |
|
|
|
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 |
|
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 + order |
|
order in sequence |
|
|
|