The mta.stops namespace lets you discover MTA stops near any point on the map. Use mta.stops.near to find subway stations, bus stops, or both, sorted by distance from a given latitude and longitude. You can also pass a route to return only stops served by that route — for example, only L train stops or only M23 SBS bus stops within walking distance. This is the recommended starting point when you need stop IDs for use with mta.subway.arrivals or mta.bus.arrivals, or to power a “stops near me” feature in your application.
mta.stops.near(params)
Returns a list of MTA stops within a configurable radius of the provided coordinates, sorted by distance ascending. You can limit results to subway stops, bus stops, or both by passing the modes parameter, and further filter to stops served by a specific route.
Parameters
latnumberrequiredThe latitude of the center point for the search, in decimal degrees (WGS 84). For example, 40.7128 for lower Manhattan.lonnumberrequiredThe longitude of the center point for the search, in decimal degrees (WGS 84). For example, -74.0060 for lower Manhattan.modesstring[]An array of transit modes to include in the results. Accepted values are 'subway' and 'bus'. Pass ['subway'] to return only subway stations, ['bus'] to return only bus stops, or ['subway', 'bus'] to return both. Defaults to both modes if omitted.routestringOptional route filter. When supplied, only stops served by this route are returned. For example, 'L' returns nearby stops served by the L train, and 'M23' returns nearby M23 SBS bus stops. Route IDs are case-sensitive and match MTA’s published identifiers.includeRoutesbooleanWhen true, each returned stop includes route metadata: a servedRoutes array of ServedRoute objects and a directionHeadsigns map. Defaults to false to keep responses small when you only need stop identity and distance.radiusMetersnumberSearch radius in meters. Defaults to 500. Increase this when querying sparse areas or to widen a “stops near me” view.limitnumberMaximum number of stops to return. Must be between 1 and 100. Results remain sorted by distance ascending.
TypeScript signature
type TransitMode = 'subway' | 'bus' | 'lirr' | 'metro-north'interface StopsNearParams { lat: number lon: number modes?: TransitMode[] route?: string includeRoutes?: boolean radiusMeters?: number limit?: number}interface Stop { id: string name: string displayName?: string // human-friendly label (may differ from GTFS name) lat?: number lon?: number parentStation?: string // GTFS parent_station ID parentId?: string // resolved parent station ID mode?: TransitMode}interface Route { id: string shortName?: string longName?: string color?: string textColor?: string type?: number}// Headsigns keyed by direction, e.g. { "north": ["8 Av"], "south": ["Canarsie"] }type DirectionHeadsigns = Record<string, string[]>// A route serving a stop — a Route plus headsign/direction metadatatype ServedRoute = Route & { headsigns?: string[] directionHeadsigns?: DirectionHeadsigns directions?: number[]}type NearbyStop = Stop & { distanceMeters?: number servedRoutes?: ServedRoute[] // requires includeRoutes: true routeMatch?: boolean // true when the stop matches the `route` filter routeHeadsigns?: string[] // headsigns for the filtered route directionHeadsigns?: DirectionHeadsigns note?: string}mta.stops.near(params: StopsNearParams): Promise<NearbyStop[]>
Response fields
stopsNearbyStop[]requiredAn array of nearby stops, sorted by distanceMeters ascending. Returns an empty array if no stops are found within the search radius.NearbyStop propertiesidstringrequiredThe MTA stop ID. Use this as the stopId parameter in mta.subway.arrivals.namestringrequiredThe GTFS stop name (e.g. 'Jay St-MetroTech').displayNamestringA human-friendly display label that may differ slightly from the raw GTFS name (e.g. 'Jay St–MetroTech').parentStationstringThe GTFS parent_station ID, when the stop is a child platform of a larger station.parentIdstringThe resolved parent station ID. Use this to group platform-level stops under the same station.latnumberrequiredThe latitude of the stop in decimal degrees (WGS 84).lonnumberrequiredThe longitude of the stop in decimal degrees (WGS 84).modestringrequiredThe transit mode: 'subway' or 'bus'.distanceMetersnumberStraight-line distance from the queried coordinates to this stop, in meters. Always present on results from mta.stops.near.servedRoutesServedRoute[]Routes serving this stop. Each is a Route (id, shortName, longName, color, textColor, type) extended with optional headsigns, directionHeadsigns, and directions. Only included when includeRoutes: true is passed.routeMatchbooleanWhen a route filter was supplied, indicates whether this stop is served by that route.routeHeadsignsstring[]Headsigns for the filtered route at this stop, when a route filter was supplied.directionHeadsignsDirectionHeadsignsA Record<string, string[]> mapping each direction to its headsigns (e.g. { "north": ["8 Av"], "south": ["Canarsie"] }). Useful for building direction-picker UIs. Only included when includeRoutes: true is passed.notestringAn optional advisory note about the stop.
Code example
import { MTA } from 'mta-js'const mta = new MTA({ apiKey: process.env.MTA_API_KEY })// Find subway stops near Prospect Park in Brooklynconst stops = await mta.stops.near({ lat: 40.6602, lon: -73.9690, modes: ['subway'], includeRoutes: true,})for (const stop of stops) { const distance = Math.round(stop.distanceMeters) const routes = stop.servedRoutes?.map((r) => r.shortName).join(', ') ?? '' console.log(`${stop.displayName ?? stop.name} (${stop.id}) — ${distance}m away — routes: ${routes}`)}
Filter to nearby stops served by a specific route. This is useful when you want to find the closest stop on the M23 SBS or the nearest L train station without sorting through every nearby stop yourself.
import { MTA } from 'mta-js'const mta = new MTA({ apiKey: process.env.MTA_API_KEY })// Find nearby M23 SBS bus stops within 800m, with route metadataconst stops = await mta.stops.near({ lat: 40.7356, lon: -73.9804, modes: ['bus'], route: 'M23', includeRoutes: true, radiusMeters: 800, limit: 5,})for (const stop of stops) { const routes = stop.servedRoutes?.map((r) => r.shortName).join(', ') ?? '' console.log(`${stop.displayName ?? stop.name} — ${Math.round(stop.distanceMeters)}m — ${routes}`)}
Pass the id from a result directly into mta.subway.arrivals or mta.bus.arrivals to build a two-step “find stops near me, then show arrivals” flow without any additional configuration.
Authorizations
bearerAuthapiKeyAuth
Authorization
string
header
required
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Query Parameters
lat
number
required
Required range: -90 <= x <= 90
lon
number
required
Required range: -180 <= x <= 180
modes
string
Comma-separated transit modes to search. Defaults to subway,bus; add path, nj-transit-rail, nyc-ferry, lirr, or metro-north to include those networks.
route
string
Optional route filter. For example, L returns nearby stops served by the L train, and M23 returns nearby M23 SBS bus stops.
{"docsConfig":{"theme":"maple","$schema":"https://mintlify.com/docs.json","name":"MTA API","description":"Realtime NYC-area transit data — subway, bus, PATH, NJ Transit, NYC Ferry, Citi Bike, plus 22 more US transit agencies and 7 more bike shares — through one clean API.","colors":{"primary":"#004CB7","light":"#FFFFFF","dark":"#1E3A8A"},"logo":{"light":"https://mintcdn.com/humanintefacedesign/Q8YkInnS90xOtYky/images/logo2.svg?fit=max\u0026auto=format\u0026n=Q8YkInnS90xOtYky\u0026q=85\u0026s=6f8537a6423102044114a3759a1cf764","dark":"https://mintcdn.com/humanintefacedesign/Q8YkInnS90xOtYky/images/logo2.svg?fit=max\u0026auto=format\u0026n=Q8YkInnS90xOtYky\u0026q=85\u0026s=6f8537a6423102044114a3759a1cf764","href":"https://www.mtaapi.dev"},"favicon":"https://mintcdn.com/humanintefacedesign/U9SNkuqnZN8rjCjD/images/favicon-16x16.png?fit=max\u0026auto=format\u0026n=U9SNkuqnZN8rjCjD\u0026q=85\u0026s=5d1bc2d91e7baa872bfc6f9a29447863","api":{"openapi":"openapi.json","params":{"expanded":"all"},"playground":{"display":"interactive","proxy":true},"examples":{"languages":["typescript"],"prefill":true,"autogenerate":false},"url":"full","mdx":{"auth":{"method":"bearer","name":"Authorization"},"server":"https://www.mtaapi.dev"}},"appearance":{"default":"dark"},"background":{"color":{"light":"#fff","dark":"#000"}},"navbar":{"links":[{"href":"https://www.mtaapi.dev/dashboard","label":"Dashboard"},{"href":"https://www.mtaapi.dev/blog","label":"Blog"}],"primary":{"type":"github","href":"https://github.com/HumanInterfaceDesign/mta-js"}},"footer":{"socials":{"github":"https://github.com/HumanInterfaceDesign/mta-js"}},"icons":{"library":"tabler"},"integrations":{"telemetry":{"enabled":false}},"markdown":{"schema":true},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"humanintefacedesign","hasAudioNarration":false,"actualSubdomain":"humanintefacedesign","customDomains":["mtaapi.dev"],"gitSource":{"type":"github","owner":"humaninterfacedesign","repo":"mta-api","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":"","_id":"6ae46ad2f259c4c964c4c6bd"},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af85f7209eaf940fce85a4d","clientVersion":"0.0.4377","searchFilterCounts":[{"language":"default","tag":"API Reference","count":183},{"language":"default","tag":"Regional transit REST","count":171},{"language":"default","tag":"Documentation","count":23},{"language":"default","tag":"Guides","count":13},{"language":"default","tag":"SDK Reference","count":12},{"language":"default","tag":"Get Started","count":6},{"language":"default","tag":"Core Concepts","count":3},{"language":"default","tag":"Self-Hosting","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@mtaapi.dev","showHelpButton":true}},"basePath":"/docs","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"api-reference/stops","slug":"/api-reference/stops","pageMetadata":{"title":"mta.stops.near() — find stops by geolocation","description":"Reference for mta.stops methods in mta-js. Find nearby MTA subway and bus stops sorted by distance from any latitude and longitude.","sidebarTitle":"Stops","openapi":"openapi.json GET /api/v1/stops/near","href":"/api-reference/stops"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Reference for mta.stops methods in mta-js. Find nearby MTA subway and bus stops sorted by distance from any latitude and longitude.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,em:`em`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Heading,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`mta.stops`}),` namespace lets you discover MTA stops near any point on the map. Use `,_jsx(_components.code,{children:`mta.stops.near`}),` to find subway stations, bus stops, or both, sorted by distance from a given latitude and longitude. You can also pass a `,_jsx(_components.code,{children:`route`}),` to return only stops served by that route — for example, only `,_jsx(_components.code,{children:`L`}),` train stops or only `,_jsx(_components.code,{children:`M23`}),` SBS bus stops within walking distance. This is the recommended starting point when you need stop IDs for use with `,_jsx(_components.code,{children:`mta.subway.arrivals`}),` or `,_jsx(_components.code,{children:`mta.bus.arrivals`}),`, or to power a “stops near me” feature in your application.`]}),`\n`,_jsx(Heading,{level:`2`,id:`mta-stops-near-params`,children:_jsx(_components.code,{children:`mta.stops.near(params)`})}),`\n`,_jsxs(_components.p,{children:[`Returns a list of MTA stops within a configurable radius of the provided coordinates, sorted by distance ascending. You can limit results to subway stops, bus stops, or both by passing the `,_jsx(_components.code,{children:`modes`}),` parameter, and further filter to stops served by a specific `,_jsx(_components.code,{children:`route`}),`.`]}),`\n`,_jsx(Heading,{level:`3`,id:`parameters`,children:`Parameters`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`lat`}),` `,_jsx(_components.code,{children:`number`}),` `,_jsx(_components.em,{children:`required`})]}),`\n`,_jsxs(_components.p,{children:[`The latitude of the center point for the search, in decimal degrees (WGS 84). For example, `,_jsx(_components.code,{children:`40.7128`}),` for lower Manhattan.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`lon`}),` `,_jsx(_components.code,{children:`number`}),` `,_jsx(_components.em,{children:`required`})]}),`\n`,_jsxs(_components.p,{children:[`The longitude of the center point for the search, in decimal degrees (WGS 84). For example, `,_jsx(_components.code,{children:`-74.0060`}),` for lower Manhattan.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`modes`}),` `,_jsx(_components.code,{children:`string[]`})]}),`\n`,_jsxs(_components.p,{children:[`An array of transit modes to include in the results. Accepted values are `,_jsx(_components.code,{children:`'subway'`}),` and `,_jsx(_components.code,{children:`'bus'`}),`. Pass `,_jsx(_components.code,{children:`['subway']`}),` to return only subway stations, `,_jsx(_components.code,{children:`['bus']`}),` to return only bus stops, or `,_jsx(_components.code,{children:`['subway', 'bus']`}),` to return both. Defaults to both modes if omitted.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`route`}),` `,_jsx(_components.code,{children:`string`})]}),`\n`,_jsxs(_components.p,{children:[`Optional route filter. When supplied, only stops served by this route are returned. For example, `,_jsx(_components.code,{children:`'L'`}),` returns nearby stops served by the L train, and `,_jsx(_components.code,{children:`'M23'`}),` returns nearby M23 SBS bus stops. Route IDs are case-sensitive and match MTA’s published identifiers.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`includeRoutes`}),` `,_jsx(_components.code,{children:`boolean`})]}),`\n`,_jsxs(_components.p,{children:[`When `,_jsx(_components.code,{children:`true`}),`, each returned stop includes route metadata: a `,_jsx(_components.code,{children:`servedRoutes`}),` array of `,_jsx(_components.code,{children:`ServedRoute`}),` objects and a `,_jsx(_components.code,{children:`directionHeadsigns`}),` map. Defaults to `,_jsx(_components.code,{children:`false`}),` to keep responses small when you only need stop identity and distance.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`radiusMeters`}),` `,_jsx(_components.code,{children:`number`})]}),`\n`,_jsxs(_components.p,{children:[`Search radius in meters. Defaults to `,_jsx(_components.code,{children:`500`}),`. Increase this when querying sparse areas or to widen a “stops near me” view.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`limit`}),` `,_jsx(_components.code,{children:`number`})]}),`\n`,_jsxs(_components.p,{children:[`Maximum number of stops to return. Must be between `,_jsx(_components.code,{children:`1`}),` and `,_jsx(_components.code,{children:`100`}),`. Results remain sorted by distance ascending.`]}),`\n`,_jsx(Heading,{level:`3`,id:`typescript-signature`,children:`TypeScript signature`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`52`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`52`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`type`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` TransitMode`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'subway'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'bus'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'lirr'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` |`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'metro-north'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`interface`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` StopsNearParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` lat`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` number`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` lon`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` number`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` modes`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` TransitMode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` route`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` includeRoutes`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` boolean`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` radiusMeters`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` number`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` limit`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` number`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`interface`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Stop`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` displayName`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // human-friendly label (may differ from GTFS name)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` lat`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` number`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` lon`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` number`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` parentStation`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // GTFS parent_station ID`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` parentId`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` // resolved parent station ID`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` mode`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` TransitMode`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`interface`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Route`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` shortName`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` longName`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` color`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` textColor`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` type`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` number`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Headsigns keyed by direction, e.g. { \"north\": [\"8 Av\"], \"south\": [\"Canarsie\"] }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`type`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` DirectionHeadsigns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Record`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:`string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[]>`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// A route serving a stop — a Route plus headsign/direction metadata`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`type`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` ServedRoute`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Route`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headsigns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[]`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` directionHeadsigns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` DirectionHeadsigns`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` directions`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` number`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`type`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` NearbyStop`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Stop`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` distanceMeters`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` number`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` servedRoutes`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` ServedRoute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[] `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// requires includeRoutes: true`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` routeMatch`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` boolean`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:\" // true when the stop matches the `route` filter\"})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` routeHeadsigns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[] `}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// headsigns for the filtered route`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` directionHeadsigns`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` DirectionHeadsigns`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` note`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`?:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4EC9B0`},children:` string`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`mta`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`stops`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`near`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`params`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` StopsNearParams`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`:`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:` Promise`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`NearbyStop`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[]>`})]}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`response-fields`,children:`Response fields`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`stops`}),` `,_jsx(_components.code,{children:`NearbyStop[]`}),` `,_jsx(_components.em,{children:`required`})]}),`\n`,_jsxs(_components.p,{children:[`An array of nearby stops, sorted by `,_jsx(_components.code,{children:`distanceMeters`}),` ascending. Returns an empty array if no stops are found within the search radius.`]}),`\n`,_jsx(_components.p,{children:_jsx(_components.strong,{children:`NearbyStop properties`})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`id`}),` `,_jsx(_components.code,{children:`string`}),` `,_jsx(_components.em,{children:`required`})]}),`\n`,_jsxs(_components.p,{children:[`The MTA stop ID. Use this as the `,_jsx(_components.code,{children:`stopId`}),` parameter in `,_jsx(_components.code,{children:`mta.subway.arrivals`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`name`}),` `,_jsx(_components.code,{children:`string`}),` `,_jsx(_components.em,{children:`required`})]}),`\n`,_jsxs(_components.p,{children:[`The GTFS stop name (e.g. `,_jsx(_components.code,{children:`'Jay St-MetroTech'`}),`).`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`displayName`}),` `,_jsx(_components.code,{children:`string`})]}),`\n`,_jsxs(_components.p,{children:[`A human-friendly display label that may differ slightly from the raw GTFS name (e.g. `,_jsx(_components.code,{children:`'Jay St–MetroTech'`}),`).`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`parentStation`}),` `,_jsx(_components.code,{children:`string`})]}),`\n`,_jsxs(_components.p,{children:[`The GTFS `,_jsx(_components.code,{children:`parent_station`}),` ID, when the stop is a child platform of a larger station.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`parentId`}),` `,_jsx(_components.code,{children:`string`})]}),`\n`,_jsx(_components.p,{children:`The resolved parent station ID. Use this to group platform-level stops under the same station.`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`lat`}),` `,_jsx(_components.code,{children:`number`}),` `,_jsx(_components.em,{children:`required`})]}),`\n`,_jsx(_components.p,{children:`The latitude of the stop in decimal degrees (WGS 84).`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`lon`}),` `,_jsx(_components.code,{children:`number`}),` `,_jsx(_components.em,{children:`required`})]}),`\n`,_jsx(_components.p,{children:`The longitude of the stop in decimal degrees (WGS 84).`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`mode`}),` `,_jsx(_components.code,{children:`string`}),` `,_jsx(_components.em,{children:`required`})]}),`\n`,_jsxs(_components.p,{children:[`The transit mode: `,_jsx(_components.code,{children:`'subway'`}),` or `,_jsx(_components.code,{children:`'bus'`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`distanceMeters`}),` `,_jsx(_components.code,{children:`number`})]}),`\n`,_jsxs(_components.p,{children:[`Straight-line distance from the queried coordinates to this stop, in meters. Always present on results from `,_jsx(_components.code,{children:`mta.stops.near`}),`.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`servedRoutes`}),` `,_jsx(_components.code,{children:`ServedRoute[]`})]}),`\n`,_jsxs(_components.p,{children:[`Routes serving this stop. Each is a `,_jsx(_components.code,{children:`Route`}),` (`,_jsx(_components.code,{children:`id`}),`, `,_jsx(_components.code,{children:`shortName`}),`, `,_jsx(_components.code,{children:`longName`}),`, `,_jsx(_components.code,{children:`color`}),`, `,_jsx(_components.code,{children:`textColor`}),`, `,_jsx(_components.code,{children:`type`}),`) extended with optional `,_jsx(_components.code,{children:`headsigns`}),`, `,_jsx(_components.code,{children:`directionHeadsigns`}),`, and `,_jsx(_components.code,{children:`directions`}),`. Only included when `,_jsx(_components.code,{children:`includeRoutes: true`}),` is passed.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`routeMatch`}),` `,_jsx(_components.code,{children:`boolean`})]}),`\n`,_jsxs(_components.p,{children:[`When a `,_jsx(_components.code,{children:`route`}),` filter was supplied, indicates whether this stop is served by that route.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`routeHeadsigns`}),` `,_jsx(_components.code,{children:`string[]`})]}),`\n`,_jsxs(_components.p,{children:[`Headsigns for the filtered `,_jsx(_components.code,{children:`route`}),` at this stop, when a `,_jsx(_components.code,{children:`route`}),` filter was supplied.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`directionHeadsigns`}),` `,_jsx(_components.code,{children:`DirectionHeadsigns`})]}),`\n`,_jsxs(_components.p,{children:[`A `,_jsx(_components.code,{children:`Record\u003cstring, string[]>`}),` mapping each direction to its headsigns (e.g. `,_jsx(_components.code,{children:`{ \"north\": [\"8 Av\"], \"south\": [\"Canarsie\"] }`}),`). Useful for building direction-picker UIs. Only included when `,_jsx(_components.code,{children:`includeRoutes: true`}),` is passed.`]}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`note`}),` `,_jsx(_components.code,{children:`string`})]}),`\n`,_jsx(_components.p,{children:`An optional advisory note about the stop.`}),`\n`,_jsx(Heading,{level:`3`,id:`code-example`,children:`Code example`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`17`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`17`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`MTA`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'mta-js'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` mta`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` MTA`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`MTA_API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Find subway stops near Prospect Park in Brooklyn`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` stops`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mta`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`stops`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`near`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` lat:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 40.6602`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` lon:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`73.9690`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` modes:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'subway'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` includeRoutes:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` stop`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` of`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` stops`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` distance`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Math`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`round`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`stop`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`distanceMeters`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` routes`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` stop`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`servedRoutes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`shortName`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`join`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`', '`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`??`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ''`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`stop`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`displayName`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ??`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` stop`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` (`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`stop`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`) — `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`distance`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`m away — routes: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`routes`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`example-response`,children:`Example response`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`44`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`44`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"F21\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Prospect Park\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"displayName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Prospect Park\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lat\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`40.6612`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lon\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`-73.9622`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subway\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"distanceMeters\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`612`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"servedRoutes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"F\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shortName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"F\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"color\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"#FF6319\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"directionHeadsigns\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"north\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Jamaica-179 St\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"south\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Coney Island-Stillwell Av\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"G\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"shortName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"G\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"color\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"#6CBE45\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"directionHeadsigns\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"north\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Court Sq\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"south\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Church Av\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"D24\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"name\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Parkside Av\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"displayName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Parkside Av\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lat\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`40.6554`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lon\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`-73.9614`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"subway\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"distanceMeters\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`870`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"servedRoutes\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"B\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"shortName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"B\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"color\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"#FF6319\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Q\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"shortName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Q\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"color\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"#FCCC0A\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`]`})}),`\n`]})})}),`\n`,_jsx(Heading,{level:`3`,id:`route-aware-example`,children:`Route-aware example`}),`\n`,_jsx(_components.p,{children:`Filter to nearby stops served by a specific route. This is useful when you want to find the closest stop on the M23 SBS or the nearest L train station without sorting through every nearby stop yourself.`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`19`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`19`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`MTA`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` } `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`from`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'mta-js'`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` mta`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` MTA`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({ `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`apiKey:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` process`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`env`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`MTA_API_KEY`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` })`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`// Find nearby M23 SBS bus stops within 800m, with route metadata`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` stops`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mta`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`stops`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`near`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` lat:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 40.7356`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` lon:`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` -`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`73.9804`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` modes:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'bus'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` route:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'M23'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` includeRoutes:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` radiusMeters:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 800`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` limit:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 5`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`})`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` stop`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` of`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` stops`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` routes`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` stop`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`servedRoutes`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`?.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`map`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`((`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`=>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` r`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`shortName`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`join`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`', '`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`??`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ''`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`stop`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`displayName`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ??`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` stop`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`name`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` — `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`Math`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`round`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`stop`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`distanceMeters`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#D4D4D4`},children:`)`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`m — `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:\"${\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`routes`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#569CD6`},children:`}`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:\"`\"}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Pass the `,_jsx(_components.code,{children:`id`}),` from a result directly into `,_jsx(_components.code,{children:`mta.subway.arrivals`}),` or `,_jsx(_components.code,{children:`mta.bus.arrivals`}),` to build a two-step “find stops near me, then show arrivals” flow without any additional configuration.`]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"mta.stops.near() — find stops by geolocation","description":"Reference for mta.stops methods in mta-js. Find nearby MTA subway and bus stops sorted by distance from any latitude and longitude.","sidebarTitle":"Stops","openapi":"openapi.json GET /api/v1/stops/near","href":"/api-reference/stops"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"mta.stops.near(params)","slug":"mta-stops-near-params","depth":2,"children":[{"title":"Parameters","slug":"parameters","depth":3,"children":[]},{"title":"TypeScript signature","slug":"typescript-signature","depth":3,"children":[]},{"title":"Response fields","slug":"response-fields","depth":3,"children":[]},{"title":"Code example","slug":"code-example","depth":3,"children":[]},{"title":"Example response","slug":"example-response","depth":3,"children":[]},{"title":"Route-aware example","slug":"route-aware-example","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"summary":"Find route-aware nearby stops","description":"Reference for mta.stops methods in mta-js. Find nearby MTA subway and bus stops sorted by distance from any latitude and longitude.","tags":["stops"],"parameters":["3fb7f7f6-dd2f-44d8-83ea-9da2be010f5a","cd1ab4b5-27d0-48ee-9854-2b1d3be4b9c1","61432ce9-d328-4ac3-a570-e26b594e4267","2a1492b0-651c-4181-a163-8913b793371d","aa264394-7cc9-4117-b7e7-f9514298cfe6","65969e96-aae0-46b6-97dc-c1c4e2755544","690309cf-e079-494b-afc6-85bd72ae3c0b"],"responses":{"200":"67ffada1-fb46-4c64-a3c1-c7f260ac2b51"},"operationId":"getApiV1StopsNear","method":"get","type":"path","servers":["0557b014-5191-4d70-bda5-11bc6a54b632"],"security":["63d21101-db75-4fd6-8ace-e7c6b309158b","4c8bf785-780f-4edb-bda9-133cf408118f"],"path":"/api/v1/stops/near","baseUrlOptions":["https://www.mtaapi.dev"],"title":"Find route-aware nearby stops","codeSamples":[],"requestExampleLanguages":["typescript"],"requiredOnlyExamples":false,"disableCodeSampleGeneration":true,"responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[],"urlDisplay":"full"},"dependencies":{"parameters":{"3fb7f7f6-dd2f-44d8-83ea-9da2be010f5a":{"name":"lat","in":"query","required":true,"schema":{"minimum":-90,"maximum":90,"type":"number","isRequired":true,"uniqueKey":"","typeLabel":"number"}},"cd1ab4b5-27d0-48ee-9854-2b1d3be4b9c1":{"name":"lon","in":"query","required":true,"schema":{"minimum":-180,"maximum":180,"type":"number","isRequired":true,"uniqueKey":"","typeLabel":"number"}},"61432ce9-d328-4ac3-a570-e26b594e4267":{"name":"modes","in":"query","required":false,"schema":{"description":"Comma-separated transit modes to search. Defaults to subway,bus; add path, nj-transit-rail, nyc-ferry, lirr, or metro-north to include those networks.","type":"string","isRequired":false,"uniqueKey":"","typeLabel":"string"}},"2a1492b0-651c-4181-a163-8913b793371d":{"name":"route","in":"query","required":false,"schema":{"minLength":1,"description":"Optional route filter. For example, L returns nearby stops served by the L train, and M23 returns nearby M23 SBS bus stops.","type":"string","isRequired":false,"uniqueKey":"","typeLabel":"string"}},"aa264394-7cc9-4117-b7e7-f9514298cfe6":{"name":"includeRoutes","in":"query","required":false,"schema":{"description":"Include route metadata for each returned stop.","type":"boolean","isRequired":false,"uniqueKey":"","typeLabel":"boolean"}},"65969e96-aae0-46b6-97dc-c1c4e2755544":{"name":"radiusMeters","in":"query","required":false,"schema":{"minimum":1,"description":"Search radius in meters. Defaults to 500.","type":"number","isRequired":false,"uniqueKey":"","typeLabel":"number"}},"690309cf-e079-494b-afc6-85bd72ae3c0b":{"name":"limit","in":"query","required":false,"schema":{"minimum":1,"maximum":100,"type":"number","isRequired":false,"uniqueKey":"","typeLabel":"number"}}},"responses":{"67ffada1-fb46-4c64-a3c1-c7f260ac2b51":{"description":"Response for status 200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","required":["id","name","displayName","lat","lon","distanceMeters"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"items.[INDEX].id","typeLabel":"string"},"name":{"type":"string","isRequired":true,"uniqueKey":"items.[INDEX].name","typeLabel":"string"},"displayName":{"type":"string","isRequired":true,"uniqueKey":"items.[INDEX].displayName","typeLabel":"string"},"lat":{"type":"number","isRequired":true,"uniqueKey":"items.[INDEX].lat","typeLabel":"number"},"lon":{"type":"number","isRequired":true,"uniqueKey":"items.[INDEX].lon","typeLabel":"number"},"distanceMeters":{"type":"number","isRequired":true,"uniqueKey":"items.[INDEX].distanceMeters","typeLabel":"number"},"mode":{"enum":["subway","bus","path","nj-transit-rail","nyc-ferry","lirr","metro-north"],"type":"string","uniqueKey":"items.[INDEX].mode","typeLabel":"enum\u003cstring>"},"parentId":{"type":"string","uniqueKey":"items.[INDEX].parentId","typeLabel":"string"},"servedRoutes":{"type":"array","items":{"type":"object","required":["id"],"properties":{"id":{"type":"string","isRequired":true,"uniqueKey":"items.[INDEX].servedRoutes.items.[INDEX].id","typeLabel":"string"},"gtfsId":{"type":"string","uniqueKey":"items.[INDEX].servedRoutes.items.[INDEX].gtfsId","typeLabel":"string"},"shortName":{"type":"string","uniqueKey":"items.[INDEX].servedRoutes.items.[INDEX].shortName","typeLabel":"string"},"longName":{"type":"string","uniqueKey":"items.[INDEX].servedRoutes.items.[INDEX].longName","typeLabel":"string"},"type":{"type":"number","uniqueKey":"items.[INDEX].servedRoutes.items.[INDEX].type","typeLabel":"number"},"color":{"type":"string","uniqueKey":"items.[INDEX].servedRoutes.items.[INDEX].color","typeLabel":"string"},"textColor":{"type":"string","uniqueKey":"items.[INDEX].servedRoutes.items.[INDEX].textColor","typeLabel":"string"},"headsigns":{"type":"array","items":{"type":"string","uniqueKey":"items.[INDEX].servedRoutes.items.[INDEX].headsigns.items.[INDEX]","typeLabel":"string"},"uniqueKey":"items.[INDEX].servedRoutes.items.[INDEX].headsigns","typeLabel":"string[]"},"directionHeadsigns":{"additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"items.[INDEX].servedRoutes.items.[INDEX].directionHeadsigns.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"items.[INDEX].servedRoutes.items.[INDEX].directionHeadsigns.additionalProperties","typeLabel":"string[]"},"type":"object","properties":{},"uniqueKey":"items.[INDEX].servedRoutes.items.[INDEX].directionHeadsigns","typeLabel":"object"},"directions":{"type":"array","items":{"type":"number","uniqueKey":"items.[INDEX].servedRoutes.items.[INDEX].directions.items.[INDEX]","typeLabel":"number"},"uniqueKey":"items.[INDEX].servedRoutes.items.[INDEX].directions","typeLabel":"number[]"}},"uniqueKey":"items.[INDEX].servedRoutes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"items.[INDEX].servedRoutes","typeLabel":"object[]"},"routeMatch":{"type":"boolean","uniqueKey":"items.[INDEX].routeMatch","typeLabel":"boolean"},"routeHeadsigns":{"type":"array","items":{"type":"string","uniqueKey":"items.[INDEX].routeHeadsigns.items.[INDEX]","typeLabel":"string"},"uniqueKey":"items.[INDEX].routeHeadsigns","typeLabel":"string[]"},"directionHeadsigns":{"additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"items.[INDEX].directionHeadsigns.additionalProperties.items.[INDEX]","typeLabel":"string"},"uniqueKey":"items.[INDEX].directionHeadsigns.additionalProperties","typeLabel":"string[]"},"type":"object","properties":{},"uniqueKey":"items.[INDEX].directionHeadsigns","typeLabel":"object"}},"uniqueKey":"items.[INDEX]","typeLabel":"object"},"uniqueKey":"","typeLabel":"object[]"},"examples":{"Example":{"title":"Example","value":[{"id":"\u003cstring>","name":"\u003cstring>","displayName":"\u003cstring>","lat":123,"lon":123,"distanceMeters":123,"mode":"subway","parentId":"\u003cstring>","servedRoutes":[{"id":"\u003cstring>","gtfsId":"\u003cstring>","shortName":"\u003cstring>","longName":"\u003cstring>","type":123,"color":"\u003cstring>","textColor":"\u003cstring>","headsigns":["\u003cstring>"],"directionHeadsigns":{},"directions":[123]}],"routeMatch":true,"routeHeadsigns":["\u003cstring>"],"directionHeadsigns":{}}]}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"63d21101-db75-4fd6-8ace-e7c6b309158b":{"bearerAuth":{"type":"http","scheme":"bearer","bearerFormat":"API Key","scopes":[],"schemeName":"bearerAuth"}},"4c8bf785-780f-4edb-bda9-133cf408118f":{"apiKeyAuth":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"apiKeyAuth"}}},"servers":{"0557b014-5191-4d70-bda5-11bc6a54b632":{"url":"https://www.mtaapi.dev","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","bearerFormat":"API Key","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"},{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"x-api-key","scopes":[],"schemeName":"apiKeyAuth"},"schema":{"title":"x-api-key","type":"string","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"apiKeyAuth","name":"x-api-key"}],"title":"apiKeyAuth"}]},"originalFileLocation":"openapi.json"},"subdomain":"humanintefacedesign","siteName":"MTA API","title":"mta.stops.near() — find stops by geolocation - MTA API","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-31T18:19:04.915Z","originalFileLocation":"api-reference/stops.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Reference for mta.stops methods in mta-js. Find nearby MTA subway and bus stops sorted by distance from any latitude and longitude.\">\u003cmeta data-mint-head name=\"application-name\" content=\"MTA API\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/humanintefacedesign/JAp0EAWeC0Ql7tpl/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/docs/mintlify-assets/_mintlify/favicons/humanintefacedesign/JAp0EAWeC0Ql7tpl/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/humanintefacedesign/JAp0EAWeC0Ql7tpl/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/humanintefacedesign/JAp0EAWeC0Ql7tpl/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/humanintefacedesign/JAp0EAWeC0Ql7tpl/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/docs/mintlify-assets/_mintlify/favicons/humanintefacedesign/JAp0EAWeC0Ql7tpl/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/docs/mintlify-assets/_mintlify/favicons/humanintefacedesign/JAp0EAWeC0Ql7tpl/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/docs/mintlify-assets/_mintlify/favicons/humanintefacedesign/JAp0EAWeC0Ql7tpl/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/docs/mintlify-assets/_mintlify/favicons/humanintefacedesign/JAp0EAWeC0Ql7tpl/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"mta.stops.near() — find stops by geolocation - MTA API\">\u003cmeta data-mint-head property=\"og:description\" content=\"Reference for mta.stops methods in mta-js. Find nearby MTA subway and bus stops sorted by distance from any latitude and longitude.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"MTA API\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://mtaapi.dev/docs/api-reference/stops\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://humanintefacedesign.mintlify.site/docs/_mintlify/api/og/v2?division=SDK+Reference\u0026amp;title=mta.stops.near%28%29+%E2%80%94+find+stops+by+geolocation\u0026amp;description=Reference+for+mta.stops+methods+in+mta-js.+Find+nearby+MTA+subway+and+bus+stops+sorted+by+distance+from+any+latitude+and+longitude.\u0026amp;theme=0bac45188922c012362b8c6c\u0026amp;signature=bc1a1c428954b1bb3443f88d9938b4e28a63b0c94ae3500cfd110d5b6cbdd8d8\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"mta.stops.near() — find stops by geolocation - MTA API\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Reference for mta.stops methods in mta-js. Find nearby MTA subway and bus stops sorted by distance from any latitude and longitude.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://humanintefacedesign.mintlify.site/docs/_mintlify/api/og/v2?division=SDK+Reference\u0026amp;title=mta.stops.near%28%29+%E2%80%94+find+stops+by+geolocation\u0026amp;description=Reference+for+mta.stops+methods+in+mta-js.+Find+nearby+MTA+subway+and+bus+stops+sorted+by+distance+from+any+latitude+and+longitude.\u0026amp;theme=0bac45188922c012362b8c6c\u0026amp;signature=bc1a1c428954b1bb3443f88d9938b4e28a63b0c94ae3500cfd110d5b6cbdd8d8\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/docs/mintlify-assets/_mintlify/favicons/humanintefacedesign/JAp0EAWeC0Ql7tpl/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"MTA API\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#004CB7\">\u003clink data-mint-head rel=\"canonical\" href=\"https://mtaapi.dev/docs/api-reference/stops\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/docs/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/api-reference/stops.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://mtaapi.dev/#organization\",\"name\":\"MTA API\",\"url\":\"https://mtaapi.dev\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/humanintefacedesign/Q8YkInnS90xOtYky/images/logo2.svg?fit=max\u0026auto=format\u0026n=Q8YkInnS90xOtYky\u0026q=85\u0026s=6f8537a6423102044114a3759a1cf764\"}},{\"@type\":\"WebSite\",\"@id\":\"https://mtaapi.dev/docs#website\",\"name\":\"MTA API\",\"url\":\"https://mtaapi.dev/docs\",\"publisher\":{\"@id\":\"https://mtaapi.dev/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://mtaapi.dev/docs/api-reference/stops#webpage\",\"url\":\"https://mtaapi.dev/docs/api-reference/stops\",\"name\":\"mta.stops.near() — find stops by geolocation\",\"description\":\"Reference for mta.stops methods in mta-js. Find nearby MTA subway and bus stops sorted by distance from any latitude and longitude.\",\"dateModified\":\"2026-10-31T18:19:04.915Z\",\"isPartOf\":{\"@id\":\"https://mtaapi.dev/docs#website\"},\"breadcrumb\":{\"@id\":\"https://mtaapi.dev/docs/api-reference/stops#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://mtaapi.dev/docs/api-reference/stops#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SDK Reference\",\"item\":\"https://mtaapi.dev/docs/api-reference/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"mta.stops.near() — find stops by geolocation\",\"item\":\"https://mtaapi.dev/docs/api-reference/stops\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://mtaapi.dev/docs/api-reference/stops#apireference\",\"headline\":\"mta.stops.near() — find stops by geolocation\",\"name\":\"mta.stops.near() — find stops by geolocation\",\"description\":\"Reference for mta.stops methods in mta-js. Find nearby MTA subway and bus stops sorted by distance from any latitude and longitude.\",\"url\":\"https://mtaapi.dev/docs/api-reference/stops\",\"mainEntityOfPage\":{\"@id\":\"https://mtaapi.dev/docs/api-reference/stops#webpage\"},\"dateModified\":\"2026-10-31T18:19:04.915Z\",\"publisher\":{\"@id\":\"https://mtaapi.dev/#organization\"},\"isPartOf\":{\"@id\":\"https://mtaapi.dev/docs#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"MTA API\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"MTA API\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/api-reference/stops.md","siteName":"MTA API","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"API Reference","groups":[{"group":"SDK Reference","pages":[{"title":"mta-js SDK reference: all namespaces and methods","sidebarTitle":"Overview","href":"/api-reference/overview"},{"title":"mta.subway.arrivals() — real-time subway predictions","sidebarTitle":"Subway","openapi":"openapi.json GET /api/v1/subway/arrivals","href":"/api-reference/subway"},{"title":"mta.subway.direction() — resolve a destination to a direction","sidebarTitle":"Direction","openapi":"openapi.json GET /api/v1/subway/direction","href":"/api-reference/direction"},{"title":"mta.bus.vehicles() — live bus positions by route","sidebarTitle":"Bus","openapi":"openapi.json GET /api/v1/bus/vehicles","href":"/api-reference/bus"},{"title":"mta.alerts.current() — active MTA service alerts","description":"Reference for mta.alerts in mta-js. Retrieve current MTA service alerts—delays, planned work, and route suspensions—for subway or bus.","sidebarTitle":"Alerts","openapi":"openapi.json GET /api/v1/alerts","href":"/api-reference/alerts"},{"title":"mta.stops.near() — find stops by geolocation","sidebarTitle":"Stops","openapi":"openapi.json GET /api/v1/stops/near","href":"/api-reference/stops"},{"title":"mta.subway.arrivalBoard() — nearby subway departure board","description":"Reference for GET /api/v1/subway/arrival-board. Find nearby subway stations and group their upcoming arrivals by direction in a single request.","sidebarTitle":"Subway Arrival Board","openapi":"openapi.json GET /api/v1/subway/arrival-board","href":"/api-reference/subway-arrival-board"},{"title":"mta.subway.routeStations() — ordered stations on a route","sidebarTitle":"Subway Route Stations","openapi":"openapi.json GET /api/v1/subway/routes/{route}/stations","href":"/api-reference/subway-route-stations"},{"title":"mta.bus.arrivalBoard() — nearby bus departure board","sidebarTitle":"Bus Arrival Board","openapi":"openapi.json GET /api/v1/bus/arrival-board","href":"/api-reference/bus-arrival-board"},{"title":"mta.bus.routeStops() — ordered stops on a route","sidebarTitle":"Bus Route Stops","openapi":"openapi.json GET /api/v1/bus/routes/{route}/stops","href":"/api-reference/bus-route-stops"},{"title":"mta.routes.list() — list subway and bus routes","sidebarTitle":"Routes","openapi":"openapi.json GET /api/v1/routes","href":"/api-reference/routes"},{"title":"mta.stops.byIds() — batch stop lookup","sidebarTitle":"Stops by ID","openapi":"openapi.json GET /api/v1/stops","href":"/api-reference/stops-batch"}]},{"group":"Regional transit REST","pages":[{"title":"List NJ PATH stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/path/stations","href":"/api-reference/path/list-nj-path-stations"},{"title":"List PATH routes serving New Jersey","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/path/routes","href":"/api-reference/path/list-path-routes-serving-new-jersey"},{"title":"Get PATH arrivals for NJ stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/path/arrivals","href":"/api-reference/path/get-path-arrivals-for-nj-stations"},{"title":"Get ordered PATH stations for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/path/routes/{route}/stations","href":"/api-reference/path/get-ordered-path-stations-for-a-route"},{"title":"List NJ Transit rail stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nj-transit/rail/stations","href":"/api-reference/nj-transit-rail/list-nj-transit-rail-stations"},{"title":"Get NJ Transit rail departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nj-transit/rail/departures","href":"/api-reference/nj-transit-rail/get-nj-transit-rail-departures"},{"title":"Get NJ Transit rail vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nj-transit/rail/vehicles","href":"/api-reference/nj-transit-rail/get-nj-transit-rail-vehicles"},{"title":"Get NJ Transit rail alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nj-transit/rail/alerts","href":"/api-reference/nj-transit-rail/get-nj-transit-rail-alerts"},{"title":"Get ordered NJ Transit rail stations for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nj-transit/rail/routes/{route}/stations","href":"/api-reference/nj-transit-rail/get-ordered-nj-transit-rail-stations-for-a-route"},{"title":"List NYC Ferry stops","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nyc-ferry/stops","href":"/api-reference/nyc-ferry/list-nyc-ferry-stops"},{"title":"List NYC Ferry routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nyc-ferry/routes","href":"/api-reference/nyc-ferry/list-nyc-ferry-routes"},{"title":"Get NYC Ferry stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nyc-ferry/routes/{route}/stops","href":"/api-reference/nyc-ferry/get-nyc-ferry-stops-for-a-route"},{"title":"Get NYC Ferry arrivals","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nyc-ferry/arrivals","href":"/api-reference/nyc-ferry/get-nyc-ferry-arrivals"},{"title":"Get NYC Ferry vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nyc-ferry/vehicles","href":"/api-reference/nyc-ferry/get-nyc-ferry-vehicles"},{"title":"Get NYC Ferry alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/nyc-ferry/alerts","href":"/api-reference/nyc-ferry/get-nyc-ferry-alerts"},{"title":"Find Citi Bike stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/citi-bike/stations","href":"/api-reference/citi-bike/find-citi-bike-stations"},{"title":"Get a Citi Bike station","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/citi-bike/stations/{id}","href":"/api-reference/citi-bike/get-a-citi-bike-station"},{"title":"Get Citi Bike service alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/citi-bike/alerts","href":"/api-reference/citi-bike/get-citi-bike-service-alerts"},{"title":"List LIRR stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/lirr/stops","href":"/api-reference/lirr/list-lirr-stations"},{"title":"List LIRR routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/lirr/routes","href":"/api-reference/lirr/list-lirr-routes"},{"title":"Get LIRR stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/lirr/routes/{route}/stops","href":"/api-reference/lirr/get-lirr-stops-for-a-route"},{"title":"Get LIRR departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/lirr/departures","href":"/api-reference/lirr/get-lirr-departures"},{"title":"Get LIRR vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/lirr/vehicles","href":"/api-reference/lirr/get-lirr-vehicles"},{"title":"Get LIRR alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/lirr/alerts","href":"/api-reference/lirr/get-lirr-alerts"},{"title":"List Metro-North stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-north/stops","href":"/api-reference/metro-north/list-metro-north-stations"},{"title":"List Metro-North routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-north/routes","href":"/api-reference/metro-north/list-metro-north-routes"},{"title":"Get Metro-North stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-north/routes/{route}/stops","href":"/api-reference/metro-north/get-metro-north-stops-for-a-route"},{"title":"Get Metro-North departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-north/departures","href":"/api-reference/metro-north/get-metro-north-departures"},{"title":"Get Metro-North vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-north/vehicles","href":"/api-reference/metro-north/get-metro-north-vehicles"},{"title":"Get Metro-North alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-north/alerts","href":"/api-reference/metro-north/get-metro-north-alerts"},{"title":"List MBTA stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/mbta/stops","href":"/api-reference/mbta/list-mbta-stations"},{"title":"List MBTA routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/mbta/routes","href":"/api-reference/mbta/list-mbta-routes"},{"title":"Get MBTA stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/mbta/routes/{route}/stops","href":"/api-reference/mbta/get-mbta-stops-for-a-route"},{"title":"Get MBTA departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/mbta/departures","href":"/api-reference/mbta/get-mbta-departures"},{"title":"Get MBTA vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/mbta/vehicles","href":"/api-reference/mbta/get-mbta-vehicles"},{"title":"Get MBTA alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/mbta/alerts","href":"/api-reference/mbta/get-mbta-alerts"},{"title":"List King County Metro stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/king-county-metro/stops","href":"/api-reference/king-county-metro/list-king-county-metro-stations"},{"title":"List King County Metro routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/king-county-metro/routes","href":"/api-reference/king-county-metro/list-king-county-metro-routes"},{"title":"Get King County Metro stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/king-county-metro/routes/{route}/stops","href":"/api-reference/king-county-metro/get-king-county-metro-stops-for-a-route"},{"title":"Get King County Metro departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/king-county-metro/departures","href":"/api-reference/king-county-metro/get-king-county-metro-departures"},{"title":"Get King County Metro vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/king-county-metro/vehicles","href":"/api-reference/king-county-metro/get-king-county-metro-vehicles"},{"title":"Get King County Metro alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/king-county-metro/alerts","href":"/api-reference/king-county-metro/get-king-county-metro-alerts"},{"title":"List CapMetro stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/capmetro/stops","href":"/api-reference/capmetro/list-capmetro-stations"},{"title":"List CapMetro routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/capmetro/routes","href":"/api-reference/capmetro/list-capmetro-routes"},{"title":"Get CapMetro stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/capmetro/routes/{route}/stops","href":"/api-reference/capmetro/get-capmetro-stops-for-a-route"},{"title":"Get CapMetro departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/capmetro/departures","href":"/api-reference/capmetro/get-capmetro-departures"},{"title":"Get CapMetro vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/capmetro/vehicles","href":"/api-reference/capmetro/get-capmetro-vehicles"},{"title":"Get CapMetro alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/capmetro/alerts","href":"/api-reference/capmetro/get-capmetro-alerts"},{"title":"List BART stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bart/stops","href":"/api-reference/bart/list-bart-stations"},{"title":"List BART routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bart/routes","href":"/api-reference/bart/list-bart-routes"},{"title":"Get BART stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bart/routes/{route}/stops","href":"/api-reference/bart/get-bart-stops-for-a-route"},{"title":"Get BART departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bart/departures","href":"/api-reference/bart/get-bart-departures"},{"title":"Get BART vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bart/vehicles","href":"/api-reference/bart/get-bart-vehicles"},{"title":"Get BART alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bart/alerts","href":"/api-reference/bart/get-bart-alerts"},{"title":"List Tri-Rail stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/tri-rail/stops","href":"/api-reference/tri-rail/list-tri-rail-stations"},{"title":"List Tri-Rail routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/tri-rail/routes","href":"/api-reference/tri-rail/list-tri-rail-routes"},{"title":"Get Tri-Rail stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/tri-rail/routes/{route}/stops","href":"/api-reference/tri-rail/get-tri-rail-stops-for-a-route"},{"title":"Get Tri-Rail departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/tri-rail/departures","href":"/api-reference/tri-rail/get-tri-rail-departures"},{"title":"Get Tri-Rail vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/tri-rail/vehicles","href":"/api-reference/tri-rail/get-tri-rail-vehicles"},{"title":"Get Tri-Rail alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/tri-rail/alerts","href":"/api-reference/tri-rail/get-tri-rail-alerts"},{"title":"List Brightline stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/brightline/stops","href":"/api-reference/brightline/list-brightline-stations"},{"title":"List Brightline routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/brightline/routes","href":"/api-reference/brightline/list-brightline-routes"},{"title":"Get Brightline stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/brightline/routes/{route}/stops","href":"/api-reference/brightline/get-brightline-stops-for-a-route"},{"title":"Get Brightline departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/brightline/departures","href":"/api-reference/brightline/get-brightline-departures"},{"title":"Get Brightline vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/brightline/vehicles","href":"/api-reference/brightline/get-brightline-vehicles"},{"title":"Get Brightline alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/brightline/alerts","href":"/api-reference/brightline/get-brightline-alerts"},{"title":"List Pace stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/pace/stops","href":"/api-reference/pace/list-pace-stations"},{"title":"List Pace routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/pace/routes","href":"/api-reference/pace/list-pace-routes"},{"title":"Get Pace stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/pace/routes/{route}/stops","href":"/api-reference/pace/get-pace-stops-for-a-route"},{"title":"Get Pace departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/pace/departures","href":"/api-reference/pace/get-pace-departures"},{"title":"Get Pace vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/pace/vehicles","href":"/api-reference/pace/get-pace-vehicles"},{"title":"Get Pace alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/pace/alerts","href":"/api-reference/pace/get-pace-alerts"},{"title":"List Denver RTD stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/rtd/stops","href":"/api-reference/rtd/list-denver-rtd-stations"},{"title":"List Denver RTD routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/rtd/routes","href":"/api-reference/rtd/list-denver-rtd-routes"},{"title":"Get Denver RTD stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/rtd/routes/{route}/stops","href":"/api-reference/rtd/get-denver-rtd-stops-for-a-route"},{"title":"Get Denver RTD departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/rtd/departures","href":"/api-reference/rtd/get-denver-rtd-departures"},{"title":"Get Denver RTD vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/rtd/vehicles","href":"/api-reference/rtd/get-denver-rtd-vehicles"},{"title":"Get Denver RTD alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/rtd/alerts","href":"/api-reference/rtd/get-denver-rtd-alerts"},{"title":"List Metro Transit stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-transit/stops","href":"/api-reference/metro-transit/list-metro-transit-stations"},{"title":"List Metro Transit routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-transit/routes","href":"/api-reference/metro-transit/list-metro-transit-routes"},{"title":"Get Metro Transit stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-transit/routes/{route}/stops","href":"/api-reference/metro-transit/get-metro-transit-stops-for-a-route"},{"title":"Get Metro Transit departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-transit/departures","href":"/api-reference/metro-transit/get-metro-transit-departures"},{"title":"Get Metro Transit vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-transit/vehicles","href":"/api-reference/metro-transit/get-metro-transit-vehicles"},{"title":"Get Metro Transit alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-transit/alerts","href":"/api-reference/metro-transit/get-metro-transit-alerts"},{"title":"List Pittsburgh Regional Transit stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/prt/stops","href":"/api-reference/prt/list-pittsburgh-regional-transit-stations"},{"title":"List Pittsburgh Regional Transit routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/prt/routes","href":"/api-reference/prt/list-pittsburgh-regional-transit-routes"},{"title":"Get Pittsburgh Regional Transit stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/prt/routes/{route}/stops","href":"/api-reference/prt/get-pittsburgh-regional-transit-stops-for-a-route"},{"title":"Get Pittsburgh Regional Transit departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/prt/departures","href":"/api-reference/prt/get-pittsburgh-regional-transit-departures"},{"title":"Get Pittsburgh Regional Transit vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/prt/vehicles","href":"/api-reference/prt/get-pittsburgh-regional-transit-vehicles"},{"title":"Get Pittsburgh Regional Transit alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/prt/alerts","href":"/api-reference/prt/get-pittsburgh-regional-transit-alerts"},{"title":"List MARTA stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marta/stops","href":"/api-reference/marta/list-marta-stations"},{"title":"List MARTA routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marta/routes","href":"/api-reference/marta/list-marta-routes"},{"title":"Get MARTA stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marta/routes/{route}/stops","href":"/api-reference/marta/get-marta-stops-for-a-route"},{"title":"Get MARTA departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marta/departures","href":"/api-reference/marta/get-marta-departures"},{"title":"Get MARTA vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marta/vehicles","href":"/api-reference/marta/get-marta-vehicles"},{"title":"Get MARTA alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marta/alerts","href":"/api-reference/marta/get-marta-alerts"},{"title":"List VIA Metropolitan Transit stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/via/stops","href":"/api-reference/via/list-via-metropolitan-transit-stations"},{"title":"List VIA Metropolitan Transit routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/via/routes","href":"/api-reference/via/list-via-metropolitan-transit-routes"},{"title":"Get VIA Metropolitan Transit stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/via/routes/{route}/stops","href":"/api-reference/via/get-via-metropolitan-transit-stops-for-a-route"},{"title":"Get VIA Metropolitan Transit departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/via/departures","href":"/api-reference/via/get-via-metropolitan-transit-departures"},{"title":"Get VIA Metropolitan Transit vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/via/vehicles","href":"/api-reference/via/get-via-metropolitan-transit-vehicles"},{"title":"Get VIA Metropolitan Transit alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/via/alerts","href":"/api-reference/via/get-via-metropolitan-transit-alerts"},{"title":"List GCRTA stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/gcrta/stops","href":"/api-reference/gcrta/list-gcrta-stations"},{"title":"List GCRTA routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/gcrta/routes","href":"/api-reference/gcrta/list-gcrta-routes"},{"title":"Get GCRTA stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/gcrta/routes/{route}/stops","href":"/api-reference/gcrta/get-gcrta-stops-for-a-route"},{"title":"Get GCRTA departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/gcrta/departures","href":"/api-reference/gcrta/get-gcrta-departures"},{"title":"Get GCRTA vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/gcrta/vehicles","href":"/api-reference/gcrta/get-gcrta-vehicles"},{"title":"Get GCRTA alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/gcrta/alerts","href":"/api-reference/gcrta/get-gcrta-alerts"},{"title":"List CATS stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/cats/stops","href":"/api-reference/cats/list-cats-stations"},{"title":"List CATS routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/cats/routes","href":"/api-reference/cats/list-cats-routes"},{"title":"Get CATS stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/cats/routes/{route}/stops","href":"/api-reference/cats/get-cats-stops-for-a-route"},{"title":"Get CATS departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/cats/departures","href":"/api-reference/cats/get-cats-departures"},{"title":"Get CATS vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/cats/vehicles","href":"/api-reference/cats/get-cats-vehicles"},{"title":"Get CATS alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/cats/alerts","href":"/api-reference/cats/get-cats-alerts"},{"title":"List SacRT stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/sacrt/stops","href":"/api-reference/sacrt/list-sacrt-stations"},{"title":"List SacRT routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/sacrt/routes","href":"/api-reference/sacrt/list-sacrt-routes"},{"title":"Get SacRT stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/sacrt/routes/{route}/stops","href":"/api-reference/sacrt/get-sacrt-stops-for-a-route"},{"title":"Get SacRT departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/sacrt/departures","href":"/api-reference/sacrt/get-sacrt-departures"},{"title":"Get SacRT vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/sacrt/vehicles","href":"/api-reference/sacrt/get-sacrt-vehicles"},{"title":"Get SacRT alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/sacrt/alerts","href":"/api-reference/sacrt/get-sacrt-alerts"},{"title":"List MARC stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marc/stops","href":"/api-reference/marc/list-marc-stations"},{"title":"List MARC routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marc/routes","href":"/api-reference/marc/list-marc-routes"},{"title":"Get MARC stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marc/routes/{route}/stops","href":"/api-reference/marc/get-marc-stops-for-a-route"},{"title":"Get MARC departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marc/departures","href":"/api-reference/marc/get-marc-departures"},{"title":"Get MARC vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marc/vehicles","href":"/api-reference/marc/get-marc-vehicles"},{"title":"Get MARC alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/marc/alerts","href":"/api-reference/marc/get-marc-alerts"},{"title":"List UTA stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/uta/stops","href":"/api-reference/uta/list-uta-stations"},{"title":"List UTA routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/uta/routes","href":"/api-reference/uta/list-uta-routes"},{"title":"Get UTA stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/uta/routes/{route}/stops","href":"/api-reference/uta/get-uta-stops-for-a-route"},{"title":"Get UTA departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/uta/departures","href":"/api-reference/uta/get-uta-departures"},{"title":"Get UTA vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/uta/vehicles","href":"/api-reference/uta/get-uta-vehicles"},{"title":"Get UTA alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/uta/alerts","href":"/api-reference/uta/get-uta-alerts"},{"title":"List JTA stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/jta/stops","href":"/api-reference/jta/list-jta-stations"},{"title":"List JTA routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/jta/routes","href":"/api-reference/jta/list-jta-routes"},{"title":"Get JTA stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/jta/routes/{route}/stops","href":"/api-reference/jta/get-jta-stops-for-a-route"},{"title":"Get JTA departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/jta/departures","href":"/api-reference/jta/get-jta-departures"},{"title":"Get JTA vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/jta/vehicles","href":"/api-reference/jta/get-jta-vehicles"},{"title":"Get JTA alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/jta/alerts","href":"/api-reference/jta/get-jta-alerts"},{"title":"List Muni stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/muni/stops","href":"/api-reference/muni/list-muni-stations"},{"title":"List Muni routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/muni/routes","href":"/api-reference/muni/list-muni-routes"},{"title":"Get Muni stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/muni/routes/{route}/stops","href":"/api-reference/muni/get-muni-stops-for-a-route"},{"title":"Get Muni departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/muni/departures","href":"/api-reference/muni/get-muni-departures"},{"title":"Get Muni vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/muni/vehicles","href":"/api-reference/muni/get-muni-vehicles"},{"title":"Get Muni alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/muni/alerts","href":"/api-reference/muni/get-muni-alerts"},{"title":"List Caltrain stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/caltrain/stops","href":"/api-reference/caltrain/list-caltrain-stations"},{"title":"List Caltrain routes","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/caltrain/routes","href":"/api-reference/caltrain/list-caltrain-routes"},{"title":"Get Caltrain stops for a route","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/caltrain/routes/{route}/stops","href":"/api-reference/caltrain/get-caltrain-stops-for-a-route"},{"title":"Get Caltrain departures","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/caltrain/departures","href":"/api-reference/caltrain/get-caltrain-departures"},{"title":"Get Caltrain vehicles","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/caltrain/vehicles","href":"/api-reference/caltrain/get-caltrain-vehicles"},{"title":"Get Caltrain alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/caltrain/alerts","href":"/api-reference/caltrain/get-caltrain-alerts"},{"title":"Find Bay Wheels stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bay-wheels/stations","href":"/api-reference/bay-wheels/find-bay-wheels-stations"},{"title":"Get a Bay Wheels station","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bay-wheels/stations/{id}","href":"/api-reference/bay-wheels/get-a-bay-wheels-station"},{"title":"Get Bay Wheels service alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bay-wheels/alerts","href":"/api-reference/bay-wheels/get-bay-wheels-service-alerts"},{"title":"Find Divvy stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/divvy/stations","href":"/api-reference/divvy/find-divvy-stations"},{"title":"Get a Divvy station","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/divvy/stations/{id}","href":"/api-reference/divvy/get-a-divvy-station"},{"title":"Get Divvy service alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/divvy/alerts","href":"/api-reference/divvy/get-divvy-service-alerts"},{"title":"Find Bluebikes stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bluebikes/stations","href":"/api-reference/bluebikes/find-bluebikes-stations"},{"title":"Get a Bluebikes station","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bluebikes/stations/{id}","href":"/api-reference/bluebikes/get-a-bluebikes-station"},{"title":"Get Bluebikes service alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/bluebikes/alerts","href":"/api-reference/bluebikes/get-bluebikes-service-alerts"},{"title":"Find Capital Bikeshare stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/capital-bikeshare/stations","href":"/api-reference/capital-bikeshare/find-capital-bikeshare-stations"},{"title":"Get a Capital Bikeshare station","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/capital-bikeshare/stations/{id}","href":"/api-reference/capital-bikeshare/get-a-capital-bikeshare-station"},{"title":"Get Capital Bikeshare service alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/capital-bikeshare/alerts","href":"/api-reference/capital-bikeshare/get-capital-bikeshare-service-alerts"},{"title":"Find Biketown stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/biketown/stations","href":"/api-reference/biketown/find-biketown-stations"},{"title":"Get a Biketown station","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/biketown/stations/{id}","href":"/api-reference/biketown/get-a-biketown-station"},{"title":"Get Biketown service alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/biketown/alerts","href":"/api-reference/biketown/get-biketown-service-alerts"},{"title":"Find Indego stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/indego/stations","href":"/api-reference/indego/find-indego-stations"},{"title":"Get a Indego station","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/indego/stations/{id}","href":"/api-reference/indego/get-a-indego-station"},{"title":"Get Indego service alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/indego/alerts","href":"/api-reference/indego/get-indego-service-alerts"},{"title":"Find Metro Bike Share stations","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-bike-share/stations","href":"/api-reference/metro-bike-share/find-metro-bike-share-stations"},{"title":"Get a Metro Bike Share station","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-bike-share/stations/{id}","href":"/api-reference/metro-bike-share/get-a-metro-bike-share-station"},{"title":"Get Metro Bike Share service alerts","deprecated":null,"version":null,"openapi":"/openapi.json get /api/v1/metro-bike-share/alerts","href":"/api-reference/metro-bike-share/get-metro-bike-share-service-alerts"}]}]}]},"basePath":"","title":"mta.stops.near() — find stops by geolocation - MTA API","deploymentId":"dpl_DPZjiNpvAcGiwobuijLfKPtJL4Ux","buildId":"dpl_DPZjiNpvAcGiwobuijLfKPtJL4Ux","dynamics":["c2aa737661","b0f84f53ff","a9bb46feb3","2b790eda92"],"chunks":["OpenApiReferenceProvider-Cn6jN7s-.js","snippetPresets-DjcjTu_l.js","utils-CgDfAybK.js","style-to-object-BY3JEAdk.js","utils-BRh9RHH1.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ekgQXnrs.js","conditional-requirements-CFM0id0Q.js","cloneDeep-DQ8efB5G.js","_Uint8Array-DxysT0ia.js","isObject-FP1Yky1u.js","Page-tKmt1iGP.js","api-description-markdown-KtPg6U4T.js","DynamicMarkdown-Ch7bkVSN.js","CodeSnippet-NZAMx71T.js","use-playground-group-access-BeZ_TnTl.js","SectionHeading-Cj70Qp9A.js","ApiExamples-B4Dcm0cf.js","usePlaygroundInputsStore-CDeMD38v.js","shallow-BG_m8ALL.js","isEqual-DPm32SJd.js","CodeSnippets-DQz1R-UZ.js","MethodPill-BAy1jSVY.js","getPastedJson-BX84PZ05.js","Check2Icon-B6AWYcHm.js","axios-CsQoIw0U.js","Markdown-CfiTBZoc.js","AssistantPageLink-SRAvT1Bg.js","dist-CnoXsf9u.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}