emt-madrid - GTFS transit data for Spain

Active
Consorcio-de-Transportes-de-Madrid Spain 21 d’agost del 2026 — 1 de gener del 2027

About This Feed

emt-madrid is the GTFS feed Consorcio-de-Transportes-de-Madrid publishes for Spain: 233 routes, 4,867 stops, 1 transit agencies. BusMaps checks and corrects it every week and serves the result through the API and as GTFS files.

Valid from 21 d’agost del 2026 to 1 de gener del 2027.

Checked and corrected automatically. How we do it →

One API for this feed

The API behind this page serves the same 233 routes and 4,867 stops: stops near a point, departures, trips, timetables, live vehicle positions and the GTFS files. The requests below use the coordinates of this feed.

  • Stops within a radius of a coordinate.

    GET /v1/stopsInRadius?location=40.4258,-3.6825&radius=1000
  • Departures at the nearby stops, with real-time delays where the agency publishes them.

    GET /v1/nextDepartures?location=40.4258,-3.6825&radius=500&results=30
  • Itineraries between two points on this network.

    GET /v1/routes?origin=40.4258,-3.6825&destination=40.4558,-3.6445
  • Directions, stop order and the schedule of one route.

    GET /v1/line?routeId={routeId}
  • GTFS-RT positions inside the bounding box of the feed.

    GET /v1/rawVehiclePositions?boundingBox=40.323,-3.848,40.546,-3.531
  • GTFS files Free

    The corrected feed, the source feed, GeoJSON and the validation reports.

    GET /v1/getGtfsFeedsDownloads?feedName=emt-madrid
  • Claude, ChatGPT or any MCP client asks this network questions in plain language.

    https://mcp.busmaps.com/mcp

Base URL https://capi.busmaps.com:8443. Send the key in the capi-key header. Route ids come from the responses above.

Per-feed pages: 233 routes, 4,867 stops, 1 agencies

Public pages merge every feed. Sign in to browse this feed on its own, which helps when you integrate or debug it.

Sign in →

GTFS files of this feed

Two builds: the copy BusMaps corrected and validated, and the original from Consorcio-de-Transportes-de-Madrid. The API returns either one for ?feedName=emt-madrid. Documentation →

Enhanced & Validated Recommended

Updated 2026-08-22

Cleaned, corrected, and validated against GTFS specifications. View corrections.

ZIP GTFS Feed - Corrected & Enriched
15.08 MB
Available through API only This work is licensed under Custom_license. Content Hash: b2897f5d4f1b174a
ZIP Validation Report
0.02 MB
Available through API only
0Errors
1Warnings
7,359Info
Top Issues
mixed case recommended field1
trip headsign matches intermediate stop7,359
GeoJSON GeoJSON Data
0.13 MB
Available through API only

Original Source

Obtained 2026-08-21

Unmodified GTFS data from official sources. May contain errors or inconsistencies.

ZIP GTFS Source Data
13.59 MB
Available through API only License: Custom_license Content Hash: 305bc6f09ba09a5f
ZIP Validation Report
0.02 MB
Available through API only
0Errors
7Warnings
7,359Info
Top Issues
stop too far from shape using user distance5
missing recommended file1
mixed case recommended field1

Frequently Asked Questions

What is GTFS data?

GTFS, the General Transit Feed Specification, is the open format transit agencies use to publish schedules, stops and route shapes. Trip planners, routing engines and analytics tools read it directly.

What is the difference between enhanced and source data?

The source feed is what the agency published. The enhanced feed is the same data after BusMaps fixed the errors and inconsistencies and checked it against the GTFS specification. Use the enhanced feed in production.

Can I use this data in my application?

That depends on the licence the publisher set; you find it next to the files above. Most GTFS feeds allow free use with attribution. Check the licence before you integrate.

How do I validate a GTFS feed?

Every feed here ships with a validation report of errors and warnings. For an independent check, run the MobilityData GTFS Validator. The enhanced feed has the critical issues resolved.

All data comes from public sources. If a file was posted in error, carries a wrong licence or lacks attribution, contact us and we will fix it.