Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 32 Next »

Export structure

The export creates a zip containing the following csv files:

  • agencies.txt

  • stops.txt

  • routes.txt

  • trips.txt

  • stop_times.txt

  • calendars.txt

  • shapes.txt

  • transfers.txt

These files are compliant with the GTFS standard as defined in the Google’s official documentation.

Export options

GTFS Export contains 3 options :

Export content

Each export is associated with a codespace. This codespace is used to find code value into Chouette models to identify the GTFS resources.

GTFS Agencies

For each Company associated to an exported Vehicle Journey (or the Line of this Vehicle Journey), Chouette create a GTFS Agency in agencies.txt with the following information:

GTFS Agency

Details

Chouette Company

agency_id

GTFS Agency ID

registration_number or by default objectid

agency_name

Name

name

agency_url

Default Contact URL

default_contact_url

agency_timezone

Time Zone or “Etc/GMT"

time_zone or by default “Etc/GMT"

agency_phone

Default Contact Phone

default_contact_phone

agency_email

Default Contact Email

default_contact_email

agency_lang

Default Language

default_language

If the Chouette Company registration number is empty, the Company ID is used as agency_id value.

A default GTFS Agency can be exported by Chouette, if one of the exported Vehicle Journeys isn’t associated to a Company or a Line associated to a Company. This default GTFS Agency uses these values:

Default GTFS Agency attribute

GTFS Agency

agency_id

“chouette_default”

agency_name

“Default Agency”

agency_timezone

“Etc/GMT”

A warning message is added to the Export when the default GTFS Agency is used.

GTFS Stops

For each Stop Area associated to a Route of an exported Vehicle Journey, Chouette creates a GTFS Stop in stops.txt. Non commercial Stop Areas (borders, etc) are ignored by the GTFS export.

Parents of exported Stop Areas are exported (except parent that has just one Stop Area if Ignore Monomodal Stop Places with a single Quay option is activated).

Each GTFS Stop uses the following information:

GTFS Stop

Details

Chouette Stop Area

stop_id

GTFS Stop ID

registration_number or by default objectid

stop_name

Name

name

stop_lat

Latitude

latitude

stop_lon

Longitude

longitude

stop_desc

Comment

comment

stop_url

URL

url

location_type

0 for Quay,

1 for other Stop Area type

0 when area_type is Quay (zdep) or 1

parent_station

Associated Parent Stop ID

registration_number or by default objectid of the StopArea selected as parent

stop_timezone

Time Zone

time_zone if there is no parents

wheelchair_boarding

0 when not present or false

1 when true

mobility_restricted_suitability

GTFS Route

For each Line associated to an exported Vehicle Journey, Chouette creates a GTFS Route in routes.txtwith the following information:

GTFS Route

Details

Chouette Line

route_id

GTFS Route ID

registration_number or by default objectid

agency_id

Associated GTFS Agency ID

Company registration_number or by default objectid

or chouette_default if no associated Company

route_short_name

Number

number

route_long_name

Published Name

published_nameor by default name (set if the value is different from route_short_name or blank otherwise)

route_desc

Comments

comment

route_type

Transport mode

See values below

route_url

URL

url

route_color

Line color

color

route_text_color

Text color

text_color

The GTFS route type value is selected according to the Chouette Line transport mode according to this mapping:

NeTEx Transport Mode

GTFS Route Type

Metro

1 / Metro

Funicular

7 / Funicular

Tram

0 / Tram

Rail

2 / Rail

Coach

200 / Coach

Bus

3 / Bus

Water

4 / Ferry

Telecabin

6 / Gondola

Air

1100 / Air Service

Hire Car

1506 / Private Hire Service Vehicle

Taxi

1100 / Taxi Service

GTFS Calendar and GTFS Calendar Date (Service)

For each Timetable including in the exported period associated to exported Vehicle Journeys :

  • if there is only one Timetable Period and some Timetable Dates, Chouette creates a GTFS Calendar and GTFS Calendar Dates with the same GTFS Service ID

  • if there is more than one Timetable Period and some Timetable Dates, Chouette creates

    • a GTFS Calendar for the first Timetable Period and all GTFS Calendar Dates with the same GTFS Service ID

    • GTFS Calendars for each Timetable Period with a new GTFS Service ID

Each GTFS Calendar are written in calendars.txt :

GTFS Calendar

Details

Chouette TimeTablePeriod

service_id

GTFS Service ID

objectid

monday

tuesday

wednesday

thursday

friday

saturday

sunday

start_date

Period start date

period_start

end_date

Period end date

period_end

Each GTFS Calendar Date are written in calendar_dates.txt :

GTFS Calendar Date

Details

Chouette TimeTableDate

service_id

GTFS Service ID

objectid

date

Date

date

exception_type

date is included : 1

date is excluded : 2

in_out

For example:

  • A Timetable A on week days with two periods and an excluded date (on the first period)

  • A Timetable B with only included dates

  • A Vehicle Journey 1 which uses the two timetables A & B

  • A Vehicle Journey 2 which uses only the Timetable B

These models should be exported as:

  • A Calendar (service_id A1) for the first period of Timetable A and an associated CalendarDate for the excluded date

  • A Calendar (service_id A2) for the second period of Timetable A

  • A CalendarDate for each included dates of Timetable B (with the same service_id B)

  • A Trip for Vehicle Journey 1 associated to the service_id A1

  • A Trip for Vehicle Journey 1 associated to the service_id A2

  • A Trip for Vehicle Journey 1 associated to the service_id B

  • A Trip for Vehicle Journey 2 associated to the service_id B

GTFS Trips

For each exported Vehicle Journey, Chouette creates a dedicated GTFS Trip in trips.txt with the following information:

GTFS Trip

Details

Chouette Vehicle Journey

trip_id

GTFS Trip ID

route_id

Associated GTFS Route ID

registration_number or by default objectid

service_id

Associated GTFS Service ID

trip_short_name

Published Name

published_journey_name

direction_id

0 for outbound Route or 1

Route wayback

shape_id

Associated GTFS Shape id

A single Chouette Vehicle Journey can be exported into several GTFS Trip because of GTFS format limitations on service/calendar description.

If the “gtfs” code is unique in the GTFS export scope, it will be used as value for the GTFS Trip ID. Otherwise, the GTFS Trip ID uses the objectid.

GTFS Stop Times

For each Vehicle Journey At Stop associated to exported Vehicle Journey, Chouette creates a dedicated GTFS Stop Time in stop_times.txt with the following information:

GTFS Stop Time

Details

Chouette Vehicle Journey At Stop

trip_id

Associated GTFS Trip ID

code or uuid

arrival_time

Arrival Time

arrival_timewith Timezone

departure_time

Departure Time

departure_time with Timezone

stop_id

GTFS Stop ID

stop_sequence

Position

GTFS Transfers

For each Connection Link with both departure and arrival associated to exported Routes, Chouette creates a dedicated GTFS Transfer in transfers.txt with the following information:

GTFS Transfer

Details

Chouette Connection Link

from_stop_id

Associated GTFS Stop ID

departure_id

to_stop_id

Associated GTFS Stop ID

arrival_id

transfer_type

2

min_transfer_time

Minimum Transfer Time

default_duration

transfer_type is always set to 2 as defined in GTFS specification :

  • 0 or empty - Recommended transfer point between routes.

  • 1 - Timed transfer point between two routes. The departing vehicle is expected to wait for the arriving one and leave sufficient time for a rider to transfer between routes.

  • 2 - Transfer requires a minimum amount of time between arrival and departure to ensure a connection. The time required to transfer is specified by min_transfer_time.

  • 3 - Transfers are not possible between routes at the location.

GTFS Shapes

For each Shape associated to a Journey Pattern and linked to exported Vehicle Journeys, Chouette creates a dedicated GTFS Shape. For each geometry point of the Shape it creates an element in shapes.txt with the following information :

GTFS Shape

Details

Chouette Shape

shape_id

GTFS Shape ID

code or uuid

shape_pt_lat

Shape point latitude

latitude

shape_pt_lon

Shape point longitude

longitude

shape_pt_sequence

Shape point position

position

If the “gtfs” code is unique in the GTFS export scope, it will be used as value for the GTFS Shape ID. Otherwise, the GTFS Shape ID uses the uuid.

  • No labels