For Developers
List Stops
GET https://ed.link/api/v2/graph/stops
Retrieve a list of all Stops.
Request Parameters
This query allows for filtering results.
This query allows for standard paging parameters.
| Parameter | Location | Type | Description |
|---|---|---|---|
$first | query | number | Returns the first n elements from the list. |
$last | query | number | Returns the last n elements from the list. |
$before | query | uuid | Returns the elements in the list that come before the specified item. |
$after | query | uuid | Returns the elements in the list that come after the specified item. |
It is best practice to use either $first or $last in conjunction with the $next value returned by the API to paginate through results.
Read More About Paging
Developer Guide
Click to Read
Sample Request
axios.get('https://ed.link/api/v2/graph/stops', {
headers: {
authorization: `Bearer ${integration_access_token}`
}
});
Sample Reponse
{
"$data": [
{
"id": "2e5fe2c4-ddd2-5e7f-9586-36d885606a3e",
"created_date": "2021-07-13T17:45:27.570Z",
"updated_date": "2021-07-13T17:45:27.570Z",
"properties": {},
"name": "Freddy's Bus Stop",
"description": "A description of the stop.",
"comments": "A very useful comment.",
"type": "bus_stop",
"flags": [],
"address": {
"street_address": "123 Elm St",
"unit_number": "",
"city": "Springfield",
"state": "CA",
"postal_code": "98765",
"country": "USA",
"phone": "555-987-6543",
"latitude": 34.1808,
"longitude": -118.3081
}
},
{
"id": "e760bade-c6a3-540d-b800-cf67ce1b9858",
"created_date": "2021-07-13T17:45:27.570Z",
"updated_date": "2021-07-13T17:45:27.570Z",
"properties": {},
"name": "Edlink Office",
"description": "A description of the stop.",
"comments": "A very useful comment.",
"type": "business",
"flags": [],
"address": {
"street_address": "1011 Sanjacinto Blvd",
"unit_number": "",
"city": "Austin",
"state": "TX",
"postal_code": "78701",
"country": "USA",
"phone": "555-987-6543",
"latitude": 30.267,
"longitude": 97.742
}
}
],
"$request": "00000000-0000-0000-0000-000000000000"
}
