Module gtfs_server::routes::api::stops[][src]

/stops related routes

Statics

static_rocket_route_info_for_stops

Rocket code generated static route information structure.

static_rocket_route_info_for_stops_by_id

Rocket code generated static route information structure.

static_rocket_route_info_for_stops_by_trip

Rocket code generated static route information structure.

static_rocket_route_info_for_stops_in_bbox

Rocket code generated static route information structure.

static_rocket_route_info_for_stops_in_bbox_radius

Rocket code generated static route information structure.

static_rocket_route_info_for_stops_latlng_test

Rocket code generated static route information structure.

static_rocket_route_info_for_stops_latlng_test_zoom

Rocket code generated static route information structure.

static_rocket_route_info_for_stops_near

Rocket code generated static route information structure.

static_rocket_route_info_for_stops_near_default

Rocket code generated static route information structure.

Functions

stops

/stops
Returns a ResultArray<Stop>

stops_by_id

/stops/<stop_id>
Gets a single Stop from its stop_id.
Returns a Result<Stop>

stops_by_trip

/stops/by-trip/<trip_id>
get the Stops visited by a Trip uid.
Returns a ResultArray<Stop>

stops_in_bbox

/stops/in/<bbox>
Gets an array of Stops, inside a BoudingBox defined by two points (P1 and P2).

stops_in_bbox_radius

/stops/in/<bbox>/<meters>
Gets an array of Stops, inside a Bouding Box defined by two circles of a radius <meters> meters with centers in P1 and P2.

stops_latlng_test
stops_latlng_test_zoom
stops_near

/stops/near/<lat>/<lng>/<meters>
Gets an array of StopDistances, within <meters> meters from <lat>,<lng> nearest first, of Stops near the provided coordinate.
Returns a ResultArray <StopDistance>

stops_near_default

/stops/near/<lat>/<lng>
Gets an array of StopDistances, within 100.0 meters from <lat>,<lng> - nearest first.
Returns a ResultArray <StopDistance>