Google Maps Transit Station Lines, Alerts & Departures
Pricing
from $0.49 / 1,000 results
Google Maps Transit Station Lines, Alerts & Departures
Export Google Maps transit stations by city and transit type, station name, or Maps URL/ID. Returns coordinates, address, agency, serving lines, accessibility, service alerts and live departures where published.
Pricing
from $0.49 / 1,000 results
Rating
0.0
(0)
Developer
crawlyth forge
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
2 hours ago
Last modified
Categories
Features
Share
Turn Google Maps station pages into structured transit data: every line serving a station, its colour and direction, the operator, wheelchair access, current service alerts with validity windows, and the live departure board where Google publishes one. Works worldwide, needs no Google API key, no cookies and no browser.
Use it for commute dashboards, real-estate transit scoring, network inventories, disruption monitoring and accessibility analysis.
What you can do
| Mode | What it returns |
|---|---|
searchStations | Stations in a city or area, filtered by transit type (subway, train, bus, tram, ferry) |
stationNames | The transit stations that best match one or more station names |
stationUrls | Stations from Google Maps place URLs, share links, ChIJ… place IDs or 0x…:0x… feature IDs |
departures | One row per upcoming departure with line, headsign, scheduled and expected time, delay and platform where Google shows them |
monitorAlerts | Only the alerts that appeared or cleared since the previous run of the same task |
Inputs
| Input | Default | Used by | Notes |
|---|---|---|---|
city | New York | searchStations, fallback for departures / monitorAlerts | City, district or area, e.g. New York, London, Berlin Mitte |
transitTypes | ["subway"] | searchStations, fallback modes | Multi-select: subway, train, bus, tram, ferry |
stationNames | [] | stationNames, departures, monitorAlerts | One name per list item; add a city inside the name when ambiguous |
stationUrls | [] | stationUrls, departures, monitorAlerts | Full place URLs, share links, place IDs or feature IDs |
includeDepartures | false | station modes | Attach the upcoming departure board to each station record |
maxDeparturesPerLine | 3 | station and departure modes | Google's board usually shows three per direction |
maxLinesPerStation | 100 | station modes | Large rail terminals can list hundreds of train numbers |
includeLineColors | true | station modes | Resolve hex colours from Google's public line badges |
includeClearedAlerts | true | monitorAlerts | Also emit a row when a previously seen alert disappears |
monitorStateKey | default | monitorAlerts | Separate saved state for different tasks watching the same station |
maxItems | 50 | all modes | Hard row cap |
Every mode-specific requirement is reported in the run status if it is missing. Only mode is a
required field, so the same task can switch modes without form validation errors.
Station record
A transitStation row carries everything Google publishes for the place that is meaningful for
transit:
- identity:
stationName,placeId,featureId,cid,sourceUrl,inputValue(the name, URL or search query that produced the row) - geography:
latitude,longitude,address,countryCode,locality,timezone - classification:
categoryName,categories,transitTypes - quality signals:
rating,reviewCount,phone,website - operator:
agencyName,agencyWebsite,transitAgencies(name + website) - service:
lines(lineName,mode,lineColor,lineTextColor, directionheadsigns),lineNames - accessibility:
wheelchairAccessibleEntrance, andwheelchairAccessibleRestroomwhen Google states it - disruption:
alerts(title,summary,description,affectedLines,startsAt,endsAt,alertUrl,alertKey) andalertCount - departures:
departureCount, plus adeparturesarray whenincludeDeparturesis on
Rows are omit-empty: a field Google does not publish for a station is absent, never null or
"N/A".
Departure rows
departures mode (and a station record with includeDepartures) exposes:
lineName,lineColor,lineTextColor,lineMode,headsigndepartureTime(ISO with the station's UTC offset) anddepartureTimeText(Google's own text, e.g.1:37 PM)scheduledTime/scheduledTimeTextanddelayMinuteswhen Google shows a separate scheduled time. A negative delay means the service is expected early.platformwhen Google labels one (e.g.Platform 4)- station identity and
sourceUrlon every row
Alert monitoring
monitorAlerts stores the alerts it saw under a named key-value store, per station and
monitorStateKey. The next run emits:
changeType: "new"withfirstSeenAtfor an alert that was not in the saved state;changeType: "cleared"withfirstSeenAt,lastSeenAtandclearedAtwhen a saved alert is no longer shown (disable withincludeClearedAlerts: false).
The first run of a task reports every current alert as new. Keep the same monitorStateKey on
scheduled runs to keep the diff stable.
Examples
Find subway stations in New York, with their lines and current alerts:
{"mode": "searchStations","city": "New York","transitTypes": ["subway"],"maxItems": 25}
Read one station from a Google Maps URL and include its departure board:
{"mode": "stationUrls","stationUrls": ["https://www.google.com/maps/place/?q=place_id:ChIJ5RqjPKtZwokRgOy4tBivbcw"],"includeDepartures": true,"maxDeparturesPerLine": 3}
Departure board for a named station:
{"mode": "departures","stationNames": ["Mumbai Central"],"maxItems": 20}
Watch alerts at a station:
{"mode": "monitorAlerts","stationNames": ["Times Sq-42 St"],"monitorStateKey": "times-square","maxItems": 50}
Coverage
Google Maps carries transit data for metro, suburban rail, bus, tram and ferry networks in most countries. Station discovery is text-driven, so any city, district or station name that Google Maps understands works without a separate geocoding key. Station details, alerts and departure boards are read from the same public page data Google shows to a logged-out visitor.
Limits
- A single search returns Google's ranked window of up to 13 pages (about 260 places). Split a large network into city, district or transit-type queries to cover more.
- Some Google place entities are transit categories but have no transit payload (station buildings, some coach stations and ferry docks). They are returned with base fields only.
- Departure boards exist only where Google publishes one. An empty board is not an error and is reported in the run status.
- A platform appears only when Google labels it, and a delay only when Google exposes both scheduled and expected times.
maxLinesPerStationtruncates very large line lists; set it up to 1000 when you need everything.- Alerts are a point-in-time snapshot. Use
monitorAlertsfor change detection.
FAQ
Do I need a Google Maps API key? No. The actor reads the same public station pages a browser does, with plain HTTP.
Do I need cookies or a login? No. The actor never asks for credentials.
Do I need to configure a proxy? No. The actor uses a direct connection and only falls back to an included datacenter pool automatically if Google starts blocking requests.
Why is a line colour missing for one line? Google sometimes publishes a text-only badge without a colour. The actor emits the line name and omits the colour rather than inventing one.
Why does a big train station have so many lines? Google lists every train number that serves
the station. Use maxLinesPerStation or the departures mode when you only need current service.
Are departure times real time? They are exactly what Google's board shows. When Google displays a separate scheduled and expected time, both are emitted with the delay between them.
Can I monitor several tasks on the same station? Yes. Give each task its own
monitorStateKey so their alert histories do not mix.
Data source
Public Google Maps place and transit pages. The actor collects only information visible to a logged-out visitor and is not affiliated with Google.