-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
39 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
layout: rest_api | ||
title: Search-Route Method | ||
description: Search for a route based on its name. | ||
sample_request_url: https://api.pugetsound.onebusaway.org/api/where/search/route.json?input=crystal&key=TEST | ||
example_response_file: search_route_crystal.json | ||
--- | ||
|
||
## Request Parameters | ||
|
||
* `input` - the string to search for, encoded directly in the URL: | ||
* `https://api.pugetsound.onebusaway.org/api/where/search/route.json?input=[INPUT GOES HERE]` | ||
* `maxCount` - the max number of results to return. Defaults to 20. | ||
|
||
## Response | ||
|
||
The method returns a [list result](/api/where/elements/list-result), so see additional documentation on controlling the number of elements returned and interpreting the results. The list contents are `<route/>` elements, so see details about the various properties of the [`<route/>` element](/api/where/elements/route). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
layout: rest_api | ||
title: Search-Stop Method | ||
description: Search for a stop based on its name. | ||
sample_request_url: https://api.pugetsound.onebusaway.org/api/where/search/stop.json?input=crystal&key=TEST | ||
example_response_file: search_stop_crystal.json | ||
--- | ||
|
||
## Request Parameters | ||
|
||
* `input` - the string to search for, encoded directly in the URL: | ||
* `https://api.pugetsound.onebusaway.org/api/where/search/stop.json?input=[INPUT GOES HERE]` | ||
* `maxCount` - the max number of results to return. Defaults to 20. | ||
|
||
## Response | ||
|
||
The method returns a [list result](/api/where/elements/list-result), so see additional documentation on controlling the number of elements returned and interpreting the results. The list contents are `<stop/>` elements, so see details about the various properties of the [`<stop/>` element](/api/where/elements/stop). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters