Search

Version Number

2.0.0

Description

The Search API returns all stops and lines that match the input search text.

Request URL

base URL /v2/search/%@?&devid=%@&signature=%@

Parameters

Response

Returns an array of JSON "result" objects for which the "type" equals either "stop" or "line". A "stop" object or "line" object is embedded within each "result" depending on its type. For more information on the data structures, check out the JSON object structure.

"stop" objects have these attributes:

"Line" objects have the following attributes:

Example use case

Janelle's next development for the tourist app is to add a search function that allows tourists to find any stations or stops, as well as any train lines, tram routes or bus routes, by inputting some text. She uses the Search API.

supplescroll:lucid theme