{"componentChunkName":"component---src-templates-developers-js","path":"/en/developers/apis/1-routing-api/stops/","result":{"data":{"childPages":{"edges":[{"node":{"fields":{"slug":"/en/developers/"},"frontmatter":{"title":"For developers","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/"},"frontmatter":{"title":"System architecture","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/api-registration/"},"frontmatter":{"title":"API portal and registration","order":-12,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/changes/"},"frontmatter":{"title":"Changes","order":-10,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/user-interfaces/"},"frontmatter":{"title":"User interfaces","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/deprecations/"},"frontmatter":{"title":"Deprecations","order":-11,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/docker-guide/"},"frontmatter":{"title":"Docker guide","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/"},"frontmatter":{"title":"APIs","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/"},"frontmatter":{"title":"Routing API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/2-routing-data-api/"},"frontmatter":{"title":"Routing data API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/4-map-api/"},"frontmatter":{"title":"Map API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/"},"frontmatter":{"title":"API architecture","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/6-api-faq/"},"frontmatter":{"title":"FAQ","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/5-realtime-api/"},"frontmatter":{"title":"Realtime APIs","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/3-geocoding-api/"},"frontmatter":{"title":"Geocoding API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/7-terms-of-use/"},"frontmatter":{"title":"Terms of use","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/user-interfaces/1-digitransit-ui/"},"frontmatter":{"title":"Digitransit-ui","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/0-graphql/"},"frontmatter":{"title":"GraphQL","order":10,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/3-realtime-information/"},"frontmatter":{"title":"Real-time information","order":40,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/2-glossary/"},"frontmatter":{"title":"Glossary","order":30,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/canceled-trips/"},"frontmatter":{"title":"Canceled trips","order":80,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/disruption-info/"},"frontmatter":{"title":"Disruption info","order":70,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/4-translations/"},"frontmatter":{"title":"Translation","order":50,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/routes/"},"frontmatter":{"title":"Routes","order":100,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/stops/"},"frontmatter":{"title":"Stops","order":110,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/bicycles-scooters-cars/"},"frontmatter":{"title":"Bicycles, cars and e-scooters","order":60,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/itinerary-planning/"},"frontmatter":{"title":"Itinerary planning","order":90,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/1-routing-api/"},"frontmatter":{"title":"Routing API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/2-routing-data-api/"},"frontmatter":{"title":"Routing Data","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/4-map-api/"},"frontmatter":{"title":"Map API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/5-realtime-api/"},"frontmatter":{"title":"Real-time APIs","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/3-geocoding-api/"},"frontmatter":{"title":"Geocoding API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/1-routing-api/1-graphiql/"},"frontmatter":{"title":"GraphiQL","order":20,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/4-map-api/background-map/"},"frontmatter":{"title":"Background map","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/5-realtime-api/1-getting-started/"},"frontmatter":{"title":"Getting started","order":10,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/3-geocoding-api/address-search/"},"frontmatter":{"title":"Address search","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/3-geocoding-api/autocomplete/"},"frontmatter":{"title":"Autocomplete","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/5-realtime-api/trip-updates/"},"frontmatter":{"title":"Trip updates","order":30,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/5-realtime-api/service-alerts/"},"frontmatter":{"title":"Service alerts","order":20,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/3-geocoding-api/address-lookup/"},"frontmatter":{"title":"Address lookup","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/4-map-api/pois/"},"frontmatter":{"title":"Points of interest","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/5-realtime-api/vehicle-positions/"},"frontmatter":{"title":"Vehicle positions","order":40,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/3-geocoding-api/data-container/"},"frontmatter":{"title":"Data builder and container","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/architecture/x-apis/3-geocoding-api/api/"},"frontmatter":{"title":"API","order":null,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/5-realtime-api/vehicle-positions/high-frequency-positioning/"},"frontmatter":{"title":"High-frequency positioning","order":20,"redirect":null}}},{"node":{"fields":{"slug":"/en/developers/apis/5-realtime-api/vehicle-positions/digitransit-mqtt/"},"frontmatter":{"title":"Digitransit MQTT broker","order":10,"redirect":null}}}]},"markdownRemark":{"fields":{"slug":"/en/developers/apis/1-routing-api/stops/"},"frontmatter":{"title":"Stops","redirect":null,"toc":null,"description":null,"assets":null,"technologies":null,"docker":null},"html":"<p><strong>If you are not yet familiar with <a href=\"../0-graphql\">GraphQL</a> and <a href=\"../1-graphiql\">GraphiQL</a> it is highly recommended to review those pages at first.</strong></p>\n<h2 id=\"notes-about-stop-ids\" style=\"position:relative;\"><a href=\"#notes-about-stop-ids\" aria-label=\"notes about stop ids permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Notes about stop IDs</h2>\n<ul>\n<li>Stop IDs are in <code class=\"language-text\">FeedId:StopId</code> format</li>\n<li>HSL area feed ID is <strong>HSL</strong></li>\n<li>Stop ID is available from field <code class=\"language-text\">gtfsId</code> (note that field <code class=\"language-text\">gtfsId</code> also contains the feed ID)</li>\n</ul>\n<h2 id=\"query-examples\" style=\"position:relative;\"><a href=\"#query-examples\" aria-label=\"query examples permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Query examples</h2>\n<p><strong>Note:</strong> For more details about the query types related to stops you can use the <strong>Documentation Explorer</strong> provided in GraphiQL.</p>\n<p><strong>Note:</strong> If the examples provided with an ID do not return what is expected then the ID in question may not be in use any more and you should try again with an existing ID.</p>\n<h3 id=\"query-all-stops-returning-their-id-name-location-and-zone\" style=\"position:relative;\"><a href=\"#query-all-stops-returning-their-id-name-location-and-zone\" aria-label=\"query all stops returning their id name location and zone permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Query all stops, returning their ID, name, location and zone</h3>\n<ul>\n<li>Value of <code class=\"language-text\">zoneId</code> tells which zone the stop is located in</li>\n<li>Click <a href=\"https://api.digitransit.fi/graphiql/hsl/v2/gtfs/v1?query=%7B%0A%20%20stops%20%7B%0A%20%20%20%20gtfsId%0A%20%20%20%20name%0A%20%20%20%20lat%0A%20%20%20%20lon%0A%20%20%20%20zoneId%0A%20%20%7D%0A%7D\">this link</a> to run the query below in GraphiQL.</li>\n</ul>\n<div class=\"gatsby-highlight\" data-language=\"graphql\"><pre class=\"language-graphql\"><code class=\"language-graphql\"><span class=\"token punctuation\">{</span>\n  <span class=\"token object\">stops</span> <span class=\"token punctuation\">{</span>\n    <span class=\"token property\">gtfsId</span>\n    <span class=\"token property\">name</span>\n    <span class=\"token property\">lat</span>\n    <span class=\"token property\">lon</span>\n    <span class=\"token property\">zoneId</span>\n  <span class=\"token punctuation\">}</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n<ol start=\"2\">\n<li>Press play in GraphiQL to execute the query.</li>\n</ol>\n<h3 id=\"query-stop-by-id\" style=\"position:relative;\"><a href=\"#query-stop-by-id\" aria-label=\"query stop by id permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Query stop by ID</h3>\n<ol>\n<li>Click <a href=\"https://api.digitransit.fi/graphiql/hsl/v2/gtfs/v1?query=%7B%0A%20%20stop(id%3A%20%22HSL%3A1140447%22)%20%7B%0A%20%20%20%20name%0A%20%20%20%20wheelchairBoarding%0A%20%20%7D%0A%7D\">this link</a> to run the query below in GraphiQL.</li>\n</ol>\n<div class=\"gatsby-highlight\" data-language=\"graphql\"><pre class=\"language-graphql\"><code class=\"language-graphql\"><span class=\"token punctuation\">{</span>\n  <span class=\"token property-query\">stop</span><span class=\"token punctuation\">(</span><span class=\"token attr-name\">id</span><span class=\"token punctuation\">:</span> <span class=\"token string\">\"HSL:1140447\"</span><span class=\"token punctuation\">)</span> <span class=\"token punctuation\">{</span>\n    <span class=\"token property\">name</span>\n    <span class=\"token property\">wheelchairBoarding</span>\n  <span class=\"token punctuation\">}</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n<ol start=\"2\">\n<li>Press play in GraphiQL to execute the query.</li>\n</ol>\n<h3 id=\"query-stop-by-id-and-information-about-routes-that-go-through-it\" style=\"position:relative;\"><a href=\"#query-stop-by-id-and-information-about-routes-that-go-through-it\" aria-label=\"query stop by id and information about routes that go through it permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Query stop by ID and information about routes that go through it</h3>\n<ol>\n<li>Click <a href=\"https://api.digitransit.fi/graphiql/hsl/v2/gtfs/v1?query=%7B%0A%20%20stop(id%3A%20%22HSL%3A1140447%22)%20%7B%0A%20%20%20%20gtfsId%0A%20%20%20%20name%0A%20%20%20%20lat%0A%20%20%20%20lon%0A%20%20%20%20patterns%20%7B%0A%20%20%20%20%20%20code%0A%20%20%20%20%20%20directionId%0A%20%20%20%20%20%20headsign%0A%20%20%20%20%20%20route%20%7B%0A%20%20%20%20%20%20%20%20gtfsId%0A%20%20%20%20%20%20%20%20shortName%0A%20%20%20%20%20%20%20%20longName%0A%20%20%20%20%20%20%20%20mode%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D\">this link</a> to run the query below in GraphiQL.</li>\n</ol>\n<div class=\"gatsby-highlight\" data-language=\"graphql\"><pre class=\"language-graphql\"><code class=\"language-graphql\"><span class=\"token punctuation\">{</span>\n  <span class=\"token property-query\">stop</span><span class=\"token punctuation\">(</span><span class=\"token attr-name\">id</span><span class=\"token punctuation\">:</span> <span class=\"token string\">\"HSL:1140447\"</span><span class=\"token punctuation\">)</span> <span class=\"token punctuation\">{</span>\n    <span class=\"token property\">gtfsId</span>\n    <span class=\"token property\">name</span>\n    <span class=\"token property\">lat</span>\n    <span class=\"token property\">lon</span>\n    <span class=\"token object\">patterns</span> <span class=\"token punctuation\">{</span>\n      <span class=\"token property\">code</span>\n      <span class=\"token property\">directionId</span>\n      <span class=\"token property\">headsign</span>\n      <span class=\"token object\">route</span> <span class=\"token punctuation\">{</span>\n        <span class=\"token property\">gtfsId</span>\n        <span class=\"token property\">shortName</span>\n        <span class=\"token property\">longName</span>\n        <span class=\"token property\">mode</span>\n      <span class=\"token punctuation\">}</span>\n    <span class=\"token punctuation\">}</span>\n  <span class=\"token punctuation\">}</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n<ol start=\"2\">\n<li>Press play in GraphiQL to execute the query.</li>\n</ol>\n<h3 id=\"query-stops-by-name\" style=\"position:relative;\"><a href=\"#query-stops-by-name\" aria-label=\"query stops by name permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Query stops by name</h3>\n<ul>\n<li>Argument <code class=\"language-text\">name</code> can be a part of the stop name (e.g. <code class=\"language-text\">\"hertton\"</code> or <code class=\"language-text\">\"rautatientori\"</code>).</li>\n<li>Click <a href=\"https://api.digitransit.fi/graphiql/hsl/v2/gtfs/v1?query=%7B%0A%20%20stops(name%3A%20%22hertton%22)%20%7B%0A%20%20%20%20gtfsId%0A%20%20%20%20name%0A%20%20%20%20code%0A%20%20%20%20lat%0A%20%20%20%20lon%0A%20%20%7D%0A%7D\">this link</a> to run the query below in GraphiQL.</li>\n</ul>\n<div class=\"gatsby-highlight\" data-language=\"graphql\"><pre class=\"language-graphql\"><code class=\"language-graphql\"><span class=\"token punctuation\">{</span>\n  <span class=\"token property-query\">stops</span><span class=\"token punctuation\">(</span><span class=\"token attr-name\">name</span><span class=\"token punctuation\">:</span> <span class=\"token string\">\"hertton\"</span><span class=\"token punctuation\">)</span> <span class=\"token punctuation\">{</span>\n    <span class=\"token property\">gtfsId</span>\n    <span class=\"token property\">name</span>\n    <span class=\"token property\">code</span>\n    <span class=\"token property\">lat</span>\n    <span class=\"token property\">lon</span>\n  <span class=\"token punctuation\">}</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n<ol start=\"2\">\n<li>Press play in GraphiQL to execute the query.</li>\n</ol>\n<h3 id=\"query-all-stations-and-return-list-of-stops-within-the-stations\" style=\"position:relative;\"><a href=\"#query-all-stations-and-return-list-of-stops-within-the-stations\" aria-label=\"query all stations and return list of stops within the stations permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Query all stations and return list of stops within the stations</h3>\n<ul>\n<li>\n<p>Station is a location, which contains stops</p>\n<ul>\n<li>For example, a train station is a station and its platforms are stops</li>\n</ul>\n</li>\n<li>Click <a href=\"https://api.digitransit.fi/graphiql/hsl/v2/gtfs/v1?query=%7B%20%0A%20%20stations%20%7B%0A%20%20%20%20gtfsId%0A%20%20%20%20name%0A%20%20%20%20lat%0A%20%20%20%20lon%0A%20%20%20%20stops%20%7B%0A%20%20%20%20%20%20gtfsId%0A%20%20%20%20%20%20name%0A%20%20%20%20%20%20code%0A%20%20%20%20%20%20platformCode%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D\">this link</a> to run the query below in GraphiQL.</li>\n</ul>\n<div class=\"gatsby-highlight\" data-language=\"graphql\"><pre class=\"language-graphql\"><code class=\"language-graphql\"><span class=\"token punctuation\">{</span>\n  <span class=\"token object\">stations</span> <span class=\"token punctuation\">{</span>\n    <span class=\"token property\">gtfsId</span>\n    <span class=\"token property\">name</span>\n    <span class=\"token property\">lat</span>\n    <span class=\"token property\">lon</span>\n    <span class=\"token object\">stops</span> <span class=\"token punctuation\">{</span>\n      <span class=\"token property\">gtfsId</span>\n      <span class=\"token property\">name</span>\n      <span class=\"token property\">code</span>\n      <span class=\"token property\">platformCode</span>\n    <span class=\"token punctuation\">}</span>\n  <span class=\"token punctuation\">}</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n<ol start=\"2\">\n<li>Press play in GraphiQL to execute the query.</li>\n</ol>\n<h3 id=\"query-stations-by-name\" style=\"position:relative;\"><a href=\"#query-stations-by-name\" aria-label=\"query stations by name permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Query stations by name</h3>\n<ol>\n<li>Click <a href=\"https://api.digitransit.fi/graphiql/hsl/v2/gtfs/v1?query=%7B%0A%09stations(name%3A%20%22pasila%22)%20%7B%0A%20%20%20%20gtfsId%0A%20%20%20%20name%0A%20%20%20%20lat%0A%20%20%20%20lon%0A%20%20%20%20stops%20%7B%0A%20%20%20%20%20%20gtfsId%0A%20%20%20%20%20%20name%0A%20%20%20%20%20%20code%0A%20%20%20%20%20%20platformCode%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D\">this link</a> to run the query below in GraphiQL.</li>\n</ol>\n<div class=\"gatsby-highlight\" data-language=\"graphql\"><pre class=\"language-graphql\"><code class=\"language-graphql\"><span class=\"token punctuation\">{</span>\n  <span class=\"token property-query\">stations</span><span class=\"token punctuation\">(</span><span class=\"token attr-name\">name</span><span class=\"token punctuation\">:</span> <span class=\"token string\">\"pasila\"</span><span class=\"token punctuation\">)</span> <span class=\"token punctuation\">{</span>\n    <span class=\"token property\">gtfsId</span>\n    <span class=\"token property\">name</span>\n    <span class=\"token property\">lat</span>\n    <span class=\"token property\">lon</span>\n    <span class=\"token object\">stops</span> <span class=\"token punctuation\">{</span>\n      <span class=\"token property\">gtfsId</span>\n      <span class=\"token property\">name</span>\n      <span class=\"token property\">code</span>\n      <span class=\"token property\">platformCode</span>\n    <span class=\"token punctuation\">}</span>\n  <span class=\"token punctuation\">}</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n<ol start=\"2\">\n<li>Press play in GraphiQL to execute the query.</li>\n</ol>\n<h3 id=\"query-stops-by-location-and-radius\" style=\"position:relative;\"><a href=\"#query-stops-by-location-and-radius\" aria-label=\"query stops by location and radius permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Query stops by location and radius</h3>\n<ul>\n<li>If the argument <code class=\"language-text\">first</code> is not used in the query, all results will be on one page.</li>\n<li><strong>Note:</strong> argument <code class=\"language-text\">radius</code> is the maximum walking distance along streets and paths to the stop</li>\n<li>Click <a href=\"https://api.digitransit.fi/graphiql/hsl/v2/gtfs/v1?query=%20%20%7B%0A%20%20%20%20stopsByRadius(lat%3A60.199%2Clon%3A24.938%2Cradius%3A500)%20%7B%0A%20%20%20%20%20%20edges%20%7B%0A%20%20%20%20%20%20%20%20node%20%7B%0A%20%20%20%20%20%20%20%20%20%20stop%20%7B%20%0A%20%20%20%20%20%20%20%20%20%20%20%20gtfsId%20%0A%20%20%20%20%20%20%20%20%20%20%20%20name%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20distance%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D\">this link</a> to run the query below in GraphiQL.</li>\n</ul>\n<div class=\"gatsby-highlight\" data-language=\"graphql\"><pre class=\"language-graphql\"><code class=\"language-graphql\"><span class=\"token punctuation\">{</span>\n  <span class=\"token property-query\">stopsByRadius</span><span class=\"token punctuation\">(</span><span class=\"token attr-name\">lat</span><span class=\"token punctuation\">:</span><span class=\"token number\">60.199</span><span class=\"token punctuation\">,</span> <span class=\"token attr-name\">lon</span><span class=\"token punctuation\">:</span><span class=\"token number\">24.938</span><span class=\"token punctuation\">,</span> <span class=\"token attr-name\">radius</span><span class=\"token punctuation\">:</span><span class=\"token number\">500</span><span class=\"token punctuation\">)</span> <span class=\"token punctuation\">{</span>\n    <span class=\"token object\">edges</span> <span class=\"token punctuation\">{</span>\n      <span class=\"token object\">node</span> <span class=\"token punctuation\">{</span>\n        <span class=\"token object\">stop</span> <span class=\"token punctuation\">{</span>\n          <span class=\"token property\">gtfsId</span>\n          <span class=\"token property\">name</span>\n        <span class=\"token punctuation\">}</span>\n        <span class=\"token property\">distance</span>\n      <span class=\"token punctuation\">}</span>\n    <span class=\"token punctuation\">}</span>\n  <span class=\"token punctuation\">}</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n<ol start=\"2\">\n<li>Press play in GraphiQL to execute the query.</li>\n</ol>\n<h3 id=\"query-scheduled-departure-and-arrival-times-of-a-stop\" style=\"position:relative;\"><a href=\"#query-scheduled-departure-and-arrival-times-of-a-stop\" aria-label=\"query scheduled departure and arrival times of a stop permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Query scheduled departure and arrival times of a stop</h3>\n<ul>\n<li>Value <code class=\"language-text\">serviceDay</code> in the response is Unix timestamp (local timezone) of the departure date</li>\n<li>\n<p>Values <code class=\"language-text\">scheduledArrival</code>, <code class=\"language-text\">realtimeArrival</code>, <code class=\"language-text\">scheduledDeparture</code> and <code class=\"language-text\">realtimeDeparture</code> in the response are seconds since midnight of the departure date</p>\n<ul>\n<li>To get Unix timestamp (UTC time) of arrivals and departures, add these values to <code class=\"language-text\">serviceDay</code></li>\n</ul>\n</li>\n</ul>\n<h4 id=\"next-departures-and-arrivals\" style=\"position:relative;\"><a href=\"#next-departures-and-arrivals\" aria-label=\"next departures and arrivals permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Next departures and arrivals</h4>\n<ol>\n<li>Click <a href=\"https://api.digitransit.fi/graphiql/hsl/v2/gtfs/v1?query=%7B%0A%20%20stop(id%3A%20%22HSL%3A1140447%22)%20%7B%0A%20%20%20%20name%0A%20%20%20%20%20%20stoptimesWithoutPatterns%20%7B%0A%20%20%20%20%20%20scheduledArrival%0A%20%20%20%20%20%20realtimeArrival%0A%20%20%20%20%20%20arrivalDelay%0A%20%20%20%20%20%20scheduledDeparture%0A%20%20%20%20%20%20realtimeDeparture%0A%20%20%20%20%20%20departureDelay%0A%20%20%20%20%20%20realtime%0A%20%20%20%20%20%20realtimeState%0A%20%20%20%20%20%20serviceDay%0A%20%20%20%20%20%20headsign%0A%20%20%20%20%7D%0A%20%20%7D%20%20%0A%7D%0A%0A%0A\">this link</a> to run the query below in GraphiQL.</li>\n</ol>\n<div class=\"gatsby-highlight\" data-language=\"graphql\"><pre class=\"language-graphql\"><code class=\"language-graphql\"><span class=\"token punctuation\">{</span>\n  <span class=\"token property-query\">stop</span><span class=\"token punctuation\">(</span><span class=\"token attr-name\">id</span><span class=\"token punctuation\">:</span> <span class=\"token string\">\"HSL:1140447\"</span><span class=\"token punctuation\">)</span> <span class=\"token punctuation\">{</span>\n    <span class=\"token property\">name</span>\n      <span class=\"token object\">stoptimesWithoutPatterns</span> <span class=\"token punctuation\">{</span>\n      <span class=\"token property\">scheduledArrival</span>\n      <span class=\"token property\">realtimeArrival</span>\n      <span class=\"token property\">arrivalDelay</span>\n      <span class=\"token property\">scheduledDeparture</span>\n      <span class=\"token property\">realtimeDeparture</span>\n      <span class=\"token property\">departureDelay</span>\n      <span class=\"token property\">realtime</span>\n      <span class=\"token property\">realtimeState</span>\n      <span class=\"token property\">serviceDay</span>\n      <span class=\"token property\">headsign</span>\n    <span class=\"token punctuation\">}</span>\n  <span class=\"token punctuation\">}</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n<ol start=\"2\">\n<li>Press play in GraphiQL to execute the query.</li>\n</ol>\n<h4 id=\"departures-and-arrivals-at-specific-time\" style=\"position:relative;\"><a href=\"#departures-and-arrivals-at-specific-time\" aria-label=\"departures and arrivals at specific time permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Departures and arrivals at specific time</h4>\n<ul>\n<li>\n<p>Use argument <code class=\"language-text\">startTime</code> in stoptimes query</p>\n<ul>\n<li><code class=\"language-text\">startTime</code> is Unix timestamp (UTC timezone) in seconds</li>\n</ul>\n</li>\n<li>Click <a href=\"https://api.digitransit.fi/graphiql/hsl/v2/gtfs/v1?query=%7B%0A%20%20stop(id%3A%20%22HSL%3A1140447%22)%20%7B%0A%20%20%20%20name%0A%20%20%20%20stoptimesWithoutPatterns(startTime%3A%201528633800)%20%7B%0A%20%20%20%20%20%20scheduledArrival%0A%20%20%20%20%20%20realtimeArrival%0A%20%20%20%20%20%20arrivalDelay%0A%20%20%20%20%20%20scheduledDeparture%0A%20%20%20%20%20%20realtimeDeparture%0A%20%20%20%20%20%20departureDelay%0A%20%20%20%20%20%20realtime%0A%20%20%20%20%20%20realtimeState%0A%20%20%20%20%20%20serviceDay%0A%20%20%20%20%20%20headsign%0A%20%20%20%20%7D%0A%20%20%7D%20%20%0A%7D%0A%0A%0A\">this link</a> to run the query below in GraphiQL.</li>\n</ul>\n<div class=\"gatsby-highlight\" data-language=\"graphql\"><pre class=\"language-graphql\"><code class=\"language-graphql\"><span class=\"token punctuation\">{</span>\n  <span class=\"token property-query\">stop</span><span class=\"token punctuation\">(</span><span class=\"token attr-name\">id</span><span class=\"token punctuation\">:</span> <span class=\"token string\">\"HSL:1140447\"</span><span class=\"token punctuation\">)</span> <span class=\"token punctuation\">{</span>\n    <span class=\"token property\">name</span>\n    <span class=\"token property-query\">stoptimesWithoutPatterns</span><span class=\"token punctuation\">(</span><span class=\"token attr-name\">startTime</span><span class=\"token punctuation\">:</span> <span class=\"token number\">1528633800</span><span class=\"token punctuation\">)</span> <span class=\"token punctuation\">{</span>\n      <span class=\"token property\">scheduledArrival</span>\n      <span class=\"token property\">realtimeArrival</span>\n      <span class=\"token property\">arrivalDelay</span>\n      <span class=\"token property\">scheduledDeparture</span>\n      <span class=\"token property\">realtimeDeparture</span>\n      <span class=\"token property\">departureDelay</span>\n      <span class=\"token property\">realtime</span>\n      <span class=\"token property\">realtimeState</span>\n      <span class=\"token property\">serviceDay</span>\n      <span class=\"token property\">headsign</span>\n    <span class=\"token punctuation\">}</span>\n  <span class=\"token punctuation\">}</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n<ol start=\"2\">\n<li>Change argument <code class=\"language-text\">startTime</code>.</li>\n<li>Press play in GraphiQL to execute the query.</li>\n</ol>\n<h3 id=\"query-arrivals-and-departures-from-a-station\" style=\"position:relative;\"><a href=\"#query-arrivals-and-departures-from-a-station\" aria-label=\"query arrivals and departures from a station permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Query arrivals and departures from a station</h3>\n<ul>\n<li>Field <code class=\"language-text\">platformCode</code> contains the platform code used by the vehicle</li>\n<li>Click <a href=\"https://api.digitransit.fi/graphiql/hsl/v2/gtfs/v1?query=%7B%0A%20%20station(id%3A%20%22HSL%3A1000202%22)%20%7B%0A%20%20%20%20name%0A%20%20%20%20stoptimesWithoutPatterns(numberOfDepartures%3A%2010)%20%7B%0A%20%20%20%20%20%20stop%20%7B%0A%20%20%20%20%20%20%20%20platformCode%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20serviceDay%0A%20%20%20%20%20%20scheduledArrival%0A%20%20%20%20%20%20scheduledDeparture%0A%20%20%20%20%20%20trip%20%7B%0A%20%20%20%20%20%20%20%20route%20%7B%0A%20%20%20%20%20%20%20%20%20%20shortName%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20headsign%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%0A\">this link</a> to run the query below in GraphiQL.</li>\n</ul>\n<div class=\"gatsby-highlight\" data-language=\"graphql\"><pre class=\"language-graphql\"><code class=\"language-graphql\"><span class=\"token punctuation\">{</span>\n  <span class=\"token property-query\">station</span><span class=\"token punctuation\">(</span><span class=\"token attr-name\">id</span><span class=\"token punctuation\">:</span> <span class=\"token string\">\"HSL:1000202\"</span><span class=\"token punctuation\">)</span> <span class=\"token punctuation\">{</span>\n    <span class=\"token property\">name</span>\n    <span class=\"token property-query\">stoptimesWithoutPatterns</span><span class=\"token punctuation\">(</span><span class=\"token attr-name\">numberOfDepartures</span><span class=\"token punctuation\">:</span> <span class=\"token number\">10</span><span class=\"token punctuation\">)</span> <span class=\"token punctuation\">{</span>\n      <span class=\"token object\">stop</span> <span class=\"token punctuation\">{</span>\n        <span class=\"token property\">platformCode</span>\n      <span class=\"token punctuation\">}</span>\n      <span class=\"token property\">serviceDay</span>\n      <span class=\"token property\">scheduledArrival</span>\n      <span class=\"token property\">scheduledDeparture</span>\n      <span class=\"token object\">trip</span> <span class=\"token punctuation\">{</span>\n        <span class=\"token object\">route</span> <span class=\"token punctuation\">{</span>\n          <span class=\"token property\">shortName</span>\n        <span class=\"token punctuation\">}</span>\n      <span class=\"token punctuation\">}</span>\n      <span class=\"token property\">headsign</span>\n    <span class=\"token punctuation\">}</span>\n  <span class=\"token punctuation\">}</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n<ol start=\"2\">\n<li>Press play in GraphiQL to execute the query.</li>\n</ol>\n<h3 id=\"query-departures-near-a-specific-location\" style=\"position:relative;\"><a href=\"#query-departures-near-a-specific-location\" aria-label=\"query departures near a specific location permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Query departures near a specific location</h3>\n<ul>\n<li>Query type <strong>nearest</strong> can be used to query departure rows near a specific location</li>\n<li>Departure row is a special location type, which lists departures of a certain route pattern from a certain stop</li>\n<li>\n<p>Querying nearest departure rows returns only one stop per pattern</p>\n<ul>\n<li>i.e. if there are multiple stops that a certain pattern uses, only the closest stop is returned</li>\n</ul>\n</li>\n<li>Click <a href=\"https://api.digitransit.fi/graphiql/hsl/v2/gtfs/v1?query=%7B%0A%09nearest(lat%3A%2060.19915%2C%20lon%3A%2024.94089%2C%20maxDistance%3A%20500%2C%20filterByPlaceTypes%3A%20DEPARTURE_ROW)%20%7B%0A%20%20%20%20edges%20%7B%0A%20%20%20%20%20%20node%20%7B%0A%20%20%20%20%20%20%20%20place%20%7B%0A%20%20%20%20%20%20%20%20%20%20...on%20DepartureRow%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20stop%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20lat%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20lon%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20name%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20stoptimes%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20serviceDay%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20scheduledDeparture%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20realtimeDeparture%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20trip%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20route%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20shortName%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20longName%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20headsign%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%09distance%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%0A%09\">this link</a> to run the query below in GraphiQL.</li>\n</ul>\n<div class=\"gatsby-highlight\" data-language=\"graphql\"><pre class=\"language-graphql\"><code class=\"language-graphql\"><span class=\"token punctuation\">{</span>\n  <span class=\"token property-query\">nearest</span><span class=\"token punctuation\">(</span><span class=\"token attr-name\">lat</span><span class=\"token punctuation\">:</span> <span class=\"token number\">60.19915</span><span class=\"token punctuation\">,</span> <span class=\"token attr-name\">lon</span><span class=\"token punctuation\">:</span> <span class=\"token number\">24.94089</span><span class=\"token punctuation\">,</span> <span class=\"token attr-name\">maxDistance</span><span class=\"token punctuation\">:</span> <span class=\"token number\">500</span><span class=\"token punctuation\">,</span> <span class=\"token attr-name\">filterByPlaceTypes</span><span class=\"token punctuation\">:</span> <span class=\"token constant\">DEPARTURE_ROW</span><span class=\"token punctuation\">)</span> <span class=\"token punctuation\">{</span>\n    <span class=\"token object\">edges</span> <span class=\"token punctuation\">{</span>\n      <span class=\"token object\">node</span> <span class=\"token punctuation\">{</span>\n        <span class=\"token object\">place</span> <span class=\"token punctuation\">{</span>\n          <span class=\"token operator\">...</span><span class=\"token keyword\">on</span> <span class=\"token class-name\">DepartureRow</span> <span class=\"token punctuation\">{</span>\n            <span class=\"token object\">stop</span> <span class=\"token punctuation\">{</span>\n              <span class=\"token property\">lat</span>\n              <span class=\"token property\">lon</span>\n              <span class=\"token property\">name</span>\n            <span class=\"token punctuation\">}</span>\n            <span class=\"token object\">stoptimes</span> <span class=\"token punctuation\">{</span>\n              <span class=\"token property\">serviceDay</span>\n              <span class=\"token property\">scheduledDeparture</span>\n              <span class=\"token property\">realtimeDeparture</span>\n              <span class=\"token object\">trip</span> <span class=\"token punctuation\">{</span>\n                <span class=\"token object\">route</span> <span class=\"token punctuation\">{</span>\n                  <span class=\"token property\">shortName</span>\n                  <span class=\"token property\">longName</span>\n                <span class=\"token punctuation\">}</span>\n              <span class=\"token punctuation\">}</span>\n              <span class=\"token property\">headsign</span>\n            <span class=\"token punctuation\">}</span>\n          <span class=\"token punctuation\">}</span>\n        <span class=\"token punctuation\">}</span>\n        <span class=\"token property\">distance</span>\n      <span class=\"token punctuation\">}</span>\n    <span class=\"token punctuation\">}</span>\n  <span class=\"token punctuation\">}</span>\n<span class=\"token punctuation\">}</span></code></pre></div>\n<ol start=\"2\">\n<li>Press play in GraphiQL to execute the query.</li>\n</ol>","tableOfContents":"<ul>\n<li><a href=\"/en/developers/apis/1-routing-api/stops/#notes-about-stop-ids\">Notes about stop IDs</a></li>\n<li>\n<p><a href=\"/en/developers/apis/1-routing-api/stops/#query-examples\">Query examples</a></p>\n<ul>\n<li><a href=\"/en/developers/apis/1-routing-api/stops/#query-all-stops-returning-their-id-name-location-and-zone\">Query all stops, returning their ID, name, location and zone</a></li>\n<li><a href=\"/en/developers/apis/1-routing-api/stops/#query-stop-by-id\">Query stop by ID</a></li>\n<li><a href=\"/en/developers/apis/1-routing-api/stops/#query-stop-by-id-and-information-about-routes-that-go-through-it\">Query stop by ID and information about routes that go through it</a></li>\n<li><a href=\"/en/developers/apis/1-routing-api/stops/#query-stops-by-name\">Query stops by name</a></li>\n<li><a href=\"/en/developers/apis/1-routing-api/stops/#query-all-stations-and-return-list-of-stops-within-the-stations\">Query all stations and return list of stops within the stations</a></li>\n<li><a href=\"/en/developers/apis/1-routing-api/stops/#query-stations-by-name\">Query stations by name</a></li>\n<li><a href=\"/en/developers/apis/1-routing-api/stops/#query-stops-by-location-and-radius\">Query stops by location and radius</a></li>\n<li>\n<p><a href=\"/en/developers/apis/1-routing-api/stops/#query-scheduled-departure-and-arrival-times-of-a-stop\">Query scheduled departure and arrival times of a stop</a></p>\n<ul>\n<li><a href=\"/en/developers/apis/1-routing-api/stops/#next-departures-and-arrivals\">Next departures and arrivals</a></li>\n<li><a href=\"/en/developers/apis/1-routing-api/stops/#departures-and-arrivals-at-specific-time\">Departures and arrivals at specific time</a></li>\n</ul>\n</li>\n<li><a href=\"/en/developers/apis/1-routing-api/stops/#query-arrivals-and-departures-from-a-station\">Query arrivals and departures from a station</a></li>\n<li><a href=\"/en/developers/apis/1-routing-api/stops/#query-departures-near-a-specific-location\">Query departures near a specific location</a></li>\n</ul>\n</li>\n</ul>","excerpt":"If you are not yet familiar with GraphQL and GraphiQL it is highly recommended to review those pages at first. Notes about stop IDs Stop IDs are in  format HSL area feed ID is HSL Stop ID is available…"}},"pageContext":{"slug":"/en/developers/apis/1-routing-api/stops/"}},"staticQueryHashes":["3675773199","4050193485"]}