GET stops/{latitude}/{longitude}/{distance}/{active}/{routeName}

Retrieve all stops within a certain radius (in feet) of the given point. The default search radius is 500 feet.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
latitude

Latitude for the position to evaulate.

decimal number

Required

longitude

Longitude for the position to evaluate.

decimal number

Required

distance

Optional - The radius (in feet) for which to search against the supplied coordinates. Default is 500, max is 25,000

decimal number

None.

active

Optional - Retrieve also inactive stops (false by default)

boolean

None.

routeName

Optional - Only retrieve stops for the specified route.

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of Stop
NameDescriptionTypeAdditional information
StopId

integer

None.

Name

string

None.

Latitude

decimal number

None.

Longitude

decimal number

None.

ScheduledTime

The time a vehicle is scheduled to depart from this stop. Note: The 'date' part of this variable is unimportant, use only the Time.

date

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "StopId": 1,
    "Name": "sample string 2",
    "Latitude": 3.0,
    "Longitude": 4.0,
    "ScheduledTime": "2022-06-28T08:40:04.2211917-07:00"
  },
  {
    "StopId": 1,
    "Name": "sample string 2",
    "Latitude": 3.0,
    "Longitude": 4.0,
    "ScheduledTime": "2022-06-28T08:40:04.2211917-07:00"
  }
]

text/html

Sample:
[{"StopId":1,"Name":"sample string 2","Latitude":3.0,"Longitude":4.0,"ScheduledTime":"2022-06-28T08:40:04.2211917-07:00"},{"StopId":1,"Name":"sample string 2","Latitude":3.0,"Longitude":4.0,"ScheduledTime":"2022-06-28T08:40:04.2211917-07:00"}]

application/xml, text/xml

Sample:
<ArrayOfStop xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ACTransit.Transit.Domain.Models">
  <Stop>
    <Latitude>3</Latitude>
    <Longitude>4</Longitude>
    <Name>sample string 2</Name>
    <ScheduledTime>2022-06-28T08:40:04.2211917-07:00</ScheduledTime>
    <StopId>1</StopId>
  </Stop>
  <Stop>
    <Latitude>3</Latitude>
    <Longitude>4</Longitude>
    <Name>sample string 2</Name>
    <ScheduledTime>2022-06-28T08:40:04.2211917-07:00</ScheduledTime>
    <StopId>1</StopId>
  </Stop>
</ArrayOfStop>