Google Maps Transit Station Lines, Alerts & Departures avatar

Google Maps Transit Station Lines, Alerts & Departures

Pricing

from $0.49 / 1,000 results

Go to Apify Store
Google Maps Transit Station Lines, Alerts & Departures

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

crawlyth forge

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 hours ago

Last modified

Features

Limited permissions

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

ModeWhat it returns
searchStationsStations in a city or area, filtered by transit type (subway, train, bus, tram, ferry)
stationNamesThe transit stations that best match one or more station names
stationUrlsStations from Google Maps place URLs, share links, ChIJ… place IDs or 0x…:0x… feature IDs
departuresOne row per upcoming departure with line, headsign, scheduled and expected time, delay and platform where Google shows them
monitorAlertsOnly the alerts that appeared or cleared since the previous run of the same task

Inputs

InputDefaultUsed byNotes
cityNew YorksearchStations, fallback for departures / monitorAlertsCity, district or area, e.g. New York, London, Berlin Mitte
transitTypes["subway"]searchStations, fallback modesMulti-select: subway, train, bus, tram, ferry
stationNames[]stationNames, departures, monitorAlertsOne name per list item; add a city inside the name when ambiguous
stationUrls[]stationUrls, departures, monitorAlertsFull place URLs, share links, place IDs or feature IDs
includeDeparturesfalsestation modesAttach the upcoming departure board to each station record
maxDeparturesPerLine3station and departure modesGoogle's board usually shows three per direction
maxLinesPerStation100station modesLarge rail terminals can list hundreds of train numbers
includeLineColorstruestation modesResolve hex colours from Google's public line badges
includeClearedAlertstruemonitorAlertsAlso emit a row when a previously seen alert disappears
monitorStateKeydefaultmonitorAlertsSeparate saved state for different tasks watching the same station
maxItems50all modesHard 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, direction headsigns), lineNames
  • accessibility: wheelchairAccessibleEntrance, and wheelchairAccessibleRestroom when Google states it
  • disruption: alerts (title, summary, description, affectedLines, startsAt, endsAt, alertUrl, alertKey) and alertCount
  • departures: departureCount, plus a departures array when includeDepartures is 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, headsign
  • departureTime (ISO with the station's UTC offset) and departureTimeText (Google's own text, e.g. 1:37 PM)
  • scheduledTime / scheduledTimeText and delayMinutes when Google shows a separate scheduled time. A negative delay means the service is expected early.
  • platform when Google labels one (e.g. Platform 4)
  • station identity and sourceUrl on 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" with firstSeenAt for an alert that was not in the saved state;
  • changeType: "cleared" with firstSeenAt, lastSeenAt and clearedAt when a saved alert is no longer shown (disable with includeClearedAlerts: 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.
  • maxLinesPerStation truncates very large line lists; set it up to 1000 when you need everything.
  • Alerts are a point-in-time snapshot. Use monitorAlerts for 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.