Docs · Editor panels · Flex zones & booking rules

Authoring GTFS-Flex with GTFS·X

GTFS-Flex is an optional extension to the baseline GTFS specification that makes demand-responsive service — dial-a-ride, microtransit, deviated fixed-route — discoverable in trip planners. If you're new to the extension, start with the What is GTFS-Flex? primer. This page is the authoring guide: the Flex Zones panel lets you draw polygon zones, configure booking rules in a form, and validate before export.

GTFS·X editor with the Flex Zones panel selected.
The Flex Zones panel. Three zone-creation methods are available — draw a polygon, group existing stops, or buffer existing fixed routes.

When to use it

Flex applies any time service isn't a fixed route running on a fixed schedule:

Three ways to create a zone

Flex Zones panel showing the three zone-creation options: Draw Zone on Map, Create Stop Group, and Auto-generate from fixed routes with a buffer distance input.
The three zone-creation methods. Auto-generate has a configurable buffer (defaults to 0.75 mi); each method then routes you into the same Service Details configuration.

Click + Create New Flex Zone, then pick:

Configuring a zone

Select a zone to open Service Details. The configuration fields:

Map popups and editing

Click a zone on the map to get a popup with quick links to Edit Route (every flex zone has an automatically-paired route that appears in trip planners) and Edit Service Details. Zone fill color tracks the linked route's color, so styling a zone consistently is a matter of styling its route.

What gets exported

Flex export produces multiple files depending on the zone types:

Zones missing a pickup window are flagged in the Export dialog and skipped from the output. Fix the warning before publishing — a flex zone without a window won't function in trip planners.

Edge cases and gotchas

See also