### GET /nextrip/routes Source: https://svc.metrotransit.org/swagger/docs/v2/nextrip Retrieves a list of routes. The response is an array of Route objects. ```APIDOC ## GET /nextrip/routes ### Description Retrieves a list of routes. ### Method GET ### Endpoint /nextrip/routes ### Response #### Success Response (200) Returns an array of Route objects. #### Error Responses - **400** - Bad Request (ProblemDetails) - **500** - Internal Server Error ``` -------------------------------- ### GET /nextrip/agencies Source: https://svc.metrotransit.org/swagger/docs/v2/nextrip Retrieves a list of transit agencies. The response is an array of Agency objects. ```APIDOC ## GET /nextrip/agencies ### Description Retrieves a list of transit agencies. ### Method GET ### Endpoint /nextrip/agencies ### Response #### Success Response (200) Returns an array of Agency objects. #### Error Responses - **400** - Bad Request (ProblemDetails) - **500** - Internal Server Error ``` -------------------------------- ### GET /nextrip/directions/{route_id} Source: https://svc.metrotransit.org/swagger/docs/v2/nextrip Retrieves a list of directions for a specific route. The response is an array of Direction objects. ```APIDOC ## GET /nextrip/directions/{route_id} ### Description Retrieves a list of directions for a specific route. ### Method GET ### Endpoint /nextrip/directions/{route_id} ### Parameters #### Path Parameters - **route_id** (string) - Required - The route identifier. ### Response #### Success Response (200) Returns an array of Direction objects. #### Error Responses - **400** - Bad Request (ProblemDetails) - **500** - Internal Server Error ``` -------------------------------- ### GET /nextrip/stops/{route_id}/{direction_id} Source: https://svc.metrotransit.org/swagger/docs/v2/nextrip Retrieves the list of stops for a given route and direction. Both route_id and direction_id are required path parameters. ```APIDOC ## GET /nextrip/stops/{route_id}/{direction_id} ### Description Retrieves the list of stops for a given route and direction. ### Method GET ### Endpoint /nextrip/stops/{route_id}/{direction_id} ### Parameters #### Path Parameters - **route_id** (string) - Required - The ID of the route. - **direction_id** (integer) - Required - The direction of travel (0 or 1). ### Response #### Success Response (200) - Returns an array of Place objects. #### Error Responses - **400** - Bad Request (ProblemDetails) - **500** - Internal Server Error ``` -------------------------------- ### GET /nextrip/vehicles/{route_id} Source: https://svc.metrotransit.org/swagger/docs/v2/nextrip Retrieves the current vehicles on a given route. The route_id is required as a path parameter. ```APIDOC ## GET /nextrip/vehicles/{route_id} ### Description Retrieves the current vehicles on a given route. ### Method GET ### Endpoint /nextrip/vehicles/{route_id} ### Parameters #### Path Parameters - **route_id** (string) - Required - The ID of the route. ### Response #### Success Response (200) - Returns an array of Vehicle objects. #### Error Responses - **400** - Bad Request (ProblemDetails) - **500** - Internal Server Error ``` -------------------------------- ### GET /nextrip/{stop_id} Source: https://svc.metrotransit.org/swagger/docs/v2/nextrip Retrieves real-time departures for a specific stop. The response includes a NexTripResult object with departure details. ```APIDOC ## GET /nextrip/{stop_id} ### Description Retrieves real-time departures for a specific stop. ### Method GET ### Endpoint /nextrip/{stop_id} ### Parameters #### Path Parameters - **stop_id** (integer, int32) - Required - The stop identifier. ### Response #### Success Response (200) Returns a NexTripResult object containing departure information. #### Error Responses - **400** - Bad Request (ProblemDetails) - **500** - Internal Server Error ``` -------------------------------- ### GET /nextrip/{route_id}/{direction_id}/{place_code} Source: https://svc.metrotransit.org/swagger/docs/v2/nextrip Retrieves real-time departures for a specific route, direction, and place. The response includes a NexTripResult object with departure details. ```APIDOC ## GET /nextrip/{route_id}/{direction_id}/{place_code} ### Description Retrieves real-time departures for a specific route, direction, and place. ### Method GET ### Endpoint /nextrip/{route_id}/{direction_id}/{place_code} ### Parameters #### Path Parameters - **route_id** (string) - Required - The route identifier. - **direction_id** (integer, int32) - Required - The direction identifier. - **place_code** (string) - Required - The place code. ### Response #### Success Response (200) Returns a NexTripResult object containing departure information. #### Error Responses - **400** - Bad Request (ProblemDetails) - **500** - Internal Server Error ``` -------------------------------- ### GET /nextrip/stopid/{street} Source: https://svc.metrotransit.org/swagger/docs/v2/nextrip Retrieves stop IDs for a given street name. The street is required as a path parameter. ```APIDOC ## GET /nextrip/stopid/{street} ### Description Retrieves stop IDs for a given street name. ### Method GET ### Endpoint /nextrip/stopid/{street} ### Parameters #### Path Parameters - **street** (string) - Required - The street name to search for stops. ### Response #### Success Response (200) - Returns an object with string properties mapping stop IDs to names. #### Error Responses - **400** - Bad Request (ProblemDetails) - **500** - Internal Server Error ``` -------------------------------- ### GET /nextrip/shape/{route_id} Source: https://svc.metrotransit.org/swagger/docs/v2/nextrip Retrieves the geographic shape (polyline) for a given route. The route_id is required as a path parameter. ```APIDOC ## GET /nextrip/shape/{route_id} ### Description Retrieves the geographic shape (polyline) for a given route. ### Method GET ### Endpoint /nextrip/shape/{route_id} ### Parameters #### Path Parameters - **route_id** (string) - Required - The ID of the route. ### Response #### Success Response (200) - Returns a FeatureCollection object. #### Error Responses - **400** - Bad Request (ProblemDetails) - **500** - Internal Server Error ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.