Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitkumar748846 committed Mar 6, 2024
1 parent c30f91b commit 754ddea
Show file tree
Hide file tree
Showing 28 changed files with 58 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/api/where/methods/agencies-with-coverage.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Returns a list of all transit agencies currently supported by OneBusAway along w

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/agencies-with-coverage.xml?key=TEST
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/agency.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Retrieve info for a specific transit agency identified by id

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/agency/1.xml?key=TEST
~~~

## Sample Response

Expand Down
4 changes: 4 additions & 0 deletions src/api/where/methods/arrival-and-departure-for-stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ Get info about a single arrival and departure for a stop

## Sample Requests

~~~
http://api.pugetsound.onebusaway.org/api/where/arrival-and-departure-for-stop/1_75403.xml?key=TEST&tripId=1_15551341&serviceDate=1291536000000&vehicleId=1_3521&stopSequence=42
~~~

~~~
http://api.pugetsound.onebusaway.org/api/where/arrival-and-departure-for-stop/1_75403.xml?key=TEST&tripId=1_47634632&serviceDate=1590476400000
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/arrivals-and-departures-for-stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Get current arrivals and departures for a stop identified by id

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/arrivals-and-departures-for-stop/1_75403.xml?key=TEST
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/block.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Get details of a specific block by id

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/block/1_5678585.xml?key=TEST
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/cancel-alarm.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Cancel a registered alarm.

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/cancel_alarm/1_00859082-9b9d-4f72-a89f-c4be0e2cf01a.xml
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/current-time.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Retrieve the current system time

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/current-time.xml?key=TEST
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/plan-trip.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ Check out the [OpenTripPlanner](http://www.opentripplanner.org/) open-source pro

## Sample Request

~~~
http://soak-api.pugetsound.onebusaway.org/api/where/plan-trip.xml?key=TEST&latFrom=47.669940&lonFrom=-122.387958&latTo=47.598941&lonTo=-122.331138&time=2011-01-31_12-48-00
~~~

## Sample Response

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Register an alarm for a single arrival and departure at a stop, with a callback

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/register-alarm-for-arrival-and-departure-at-stop/1_75403.xml?key=TEST&tripId=1_15551341&serviceDate=1291536000000&vehicleId=1_3521&stopSequence=42&alarmTimeOffset=120&url=http://host/callback_url
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/report-problem-with-stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ problem reporting admin interface.

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/report-problem-with-stop/1_75403.xml?key=TEST&code=stop_name_wrong
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/report-problem-with-trip.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ problem reporting admin interface.

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/report-problem-with-trip/1_79430293.xml?key=TEST&serviceDate=1291536000000&vehicleId=1_3521&stopId=1_75403&code=vehicle_never_came
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/route-ids-for-agency.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Retrieve the list of all route ids for a particular agency.

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/route-ids-for-agency/40.xml?key=TEST
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/route.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Retrieve info for a specific route by id.

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/route/1_100224.xml?key=TEST
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/routes-for-agency.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Retrieve the list of all routes for a particular agency by id

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/routes-for-agency/1.xml?key=TEST
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/routes-for-location.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Search for routes near a specific location, optionally by name

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/routes-for-location.xml?key=TEST&lat=47.653435&lon=-122.305641
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/schedule-for-route.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Retrieve the full schedule for a route on a particular day

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/schedule-for-route/97_9.xml?key=TEST
~~~


## Sample Response
Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/schedule-for-stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ Retrieve the full schedule for a stop on a particular day

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/schedule-for-stop/1_75403.xml?key=TEST
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/shape.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Retrieve a shape (the path traveled by a transit vehicle) by id

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/shape/1_10002005.xml?key=TEST
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/stop-ids-for-agency.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Retrieve the list of all stops for a particular agency by id

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/stop-ids-for-agency/40.xml?key=TEST
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Retrieve info for a specific stop by id

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/stop/1_75403.xml?key=TEST
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/stops-for-location.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Search for stops near a specific location, optionally by stop code

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/stops-for-location.xml?key=TEST&lat=47.653435&lon=-122.305641
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/stops-for-route.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Retrieve the set of stops serving a particular route, including groups by direct

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/stops-for-route/1_100224.xml?key=TEST
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/trip-details.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Get extended details for a specific trip

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/trip-details/1_47805860.xml?key=TEST
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/trip-for-vehicle.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Get extended trip details for a specific transit vehicle. That is, given a vehi

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/trip-for-vehicle/1_4210.xml?key=TEST
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/trip.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Get details of a specific trip by id

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/trip/1_12540399.xml?key=TEST
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/trips-for-location.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Search for active trips near a specific location.

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/trips-for-location.xml?key=TEST&lat=47.653&lon=-122.307&latSpan=0.008&lonSpan=0.008
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/trips-for-route.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Search for active trips for a specific route.

## Sample Request

~~~
http://api.pugetsound.onebusaway.org/api/where/trips-for-route/1_100224.xml?key=TEST
~~~

## Sample Response

Expand Down
2 changes: 2 additions & 0 deletions src/api/where/methods/vehicles-for-agency.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ Search for active vehicles for a particular agency by id.

## Sample Request

~~~
http://api.onebusaway.org/api/where/vehicles-for-agency/1.xml?key=TEST
~~~

## Sample Response

Expand Down

0 comments on commit 754ddea

Please sign in to comment.