Docs · Publishing & distribution · Embed widgets

Embed widgets Pro

Drop an interactive system map or per-route schedule into your agency's existing website with a single <iframe>. The widget reads directly from your published GTFS feed and updates the next time you publish — so the website stops drifting away from the bus.

Demo agency website with GTFS·X embed widgets — system map and per-route schedules — rendered inside a pretend transit-agency CMS page.
The embed demo page showing the widgets on a pretend agency website. Each map and schedule is a single iframe.

What it is

A published GTFS·X feed exposes three iframe-friendly widgets:

Each widget is a server-rendered page that responds to the iframe's width and embeds the feed data — no JavaScript snippet to install, no separate API key, no CMS plugin. Paste an iframe tag, you're done.

When to use it

Embed codes

Replace your-slug below with your project slug, and 1234 with a real route ID or stop ID from your feed.

System map

<iframe
  src="https://feeds.gtfsx.com/your-slug/embed/system-map"
  width="100%"
  height="600"
  loading="lazy"
  title="Your Agency system map">
</iframe>

Single route

<iframe
  src="https://feeds.gtfsx.com/your-slug/embed/route/1234"
  width="100%"
  height="700"
  loading="lazy"
  title="Route 1234 schedule">
</iframe>

Single stop

<iframe
  src="https://feeds.gtfsx.com/your-slug/embed/stop/1234"
  width="100%"
  height="500"
  loading="lazy"
  title="Stop 1234 departures">
</iframe>

For real working examples, see the embed demo — it pulls live from the published Sunny Valley Transit feed (feeds.gtfsx.com/svt-demo/) and is the source of the iframe snippets above.

Getting the snippets from the editor

You don't have to hand-construct the iframe tags. In the editor, click Embed in the footer (next to Timetable, Service Summary, Validation, Snapshots, Share & Publish). The Embed tab lists:

The widgets are only available once the feed is published — see Hosted publishing if the Embed tab is hidden or empty.

Customization

Gotchas

See also