Public Transit API Developer's Guide

Nearby Stations by Geocoord

Use the resource stations/by_geocoord to request a list of stops/stations based on a set of geocoordinates.

.../v3/stations/by_geocoord.{format}?<parameter>=<value>...
  
Table 1. Mandatory Parameters
Parameter Data Type Description
app_id String

A 20 bytes Base64 URL-safe encoded string used for the authentication of the client application.
You must include an app_id and app_code with every request. To get an app_code assigned to you, please see Acquiring Credentials.

app_code String

A 20 bytes Base64 URL-safe encoded string used for the authentication of the client application.
You must include an app_id and app_code with every request. To get an app_code assigned to you, please see Acquiring Credentials.

center Double,Double Specifies the latitude and the longitude of the center point of your search separated by a comma. Where the latitude is in WGS 84-compliant degrees between -90 and 90 and the longitude in WGS 84-compliant degrees between -180 and 180.
Table 2. Optional Parameters
Parameter Data Type Description
callbackFunc String Specifies an arbitrary string used to wrap the JSON object in the response.
callbackId String If you specify the parameter callbackId, specifies the first argument to the function specified by the callbackFunc.
details Integer Requests line information for every station. The possible values are:

1 (enabled), 0 (disabled)

The default value is 1.

lang String Specifies the language of the response. The value complies with the ISO 639-1 standard and defaults to en.
max Integer Specifies the maximum number of stations/stops included in the response.

The default value is 5. The minimum value is 1 and the maximum value is 50.

radius Integer Specifies a radius in meters when combined with a center point defines the area of the search.

The default value is 500m. The minimum value is 0 and the maximum value is not limited.