GET api/Values/{secondsAgo}/{lat}/{lon}/{stopsWithinXMetres}/{limitTo}
Get bus locations and bus stops (if lat and lon provided) within x metres of the provided location
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
secondsAgo |
The number of seconds to look back for updates |
integer |
None. |
lat |
The latitude of the current user's location |
decimal number |
None. |
lon |
The longtitude of the current user's location |
decimal number |
None. |
stopsWithinXMetres |
The number of metres within which to return bus stops |
integer |
Default value is 500 |
limitTo |
The maximum number of bus stops to return in the update, in case the radius is too large |
integer |
Default value is 10 |
Body Parameters
None.
Response Information
Resource Description
An array of bus locations and an optional array of bus stops
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |