Bus Stops - TransportSG/TransportSG GitHub Wiki
TransportSG API - Bus Stops
List all Bus Stops
Description
This API returns a list of all bus stop codes of the active bus stops in Singapore
Request URL
https://transportsg.me/api/bus/stops
Parameters
This API takes no parameters.
Response
Returns a JSON array containing the bus stop codes
[ busStopCode: string ]
busStopCode
string
The bus stop code
Bus Stop by Bus Stop Code
Description
This API returns detailed information regarding a bus stop
Request URL
https://transportsg.me/api/bus/stops/:busStopCode
Parameters
:busStopCode
the bus stop code of the bus stop to be queried.
Response
Returns a JSON object containing information regarding the bus stop.
busStop: object
Under busStop
:
busStopCode
string: the bus stop code of the given bus stop. It is stored as a string to ensure that 4 digit bus stop codes are still padded to 5 digits, with leading0
s.
busStopName
string: the human friendly name of the bus stop, usually based of a nearby landmark such as an HDB flat, or a building.
position
GeoJSON Point: an object representing the location of the bus stop.
roadName
string: the name of the road the bus stop is on.
locale
object (optional): translated names for the bus stop, and the road name.
Under
locale
:
chinese
: the chinese names of the bus stop and the road, given by the fieldsbusStopName
androadName
respectively.
nearbyAttraction
string (optional): the name of a tourist attraction near the bus stop.
Bus Stops by Bus Stop Codes
Description
This API returns a list of busStop
s based on the given bus stop codes.
Request URL
https://transportsg.me/api/bus/stops/many/:busStopCodes
Parameters
:busStopCodes
a comma separated list of bus stop codes to query.
Response
Returns a JSON array containing busStop
objects.
See Bus Stop by Bus Stop Code for fields under busStop
.