Function gtfs_server::routes::api::agency::agency_by_id[][src]

pub fn agency_by_id(
    rh: State<RoutesHandler>,
    agency_uid: String
) -> Json<Result<Agency>>

/agency/<agency_uid> Get the the specified Agency by its specified UID. Returns a Result<Agency>

Example

/api/agency/a-cfb94d-aroserverkehrsbetriebe returns:

{
  "result": {
    "uid": "a-cfb94d-aroserverkehrsbetriebe",
    "name": "Aroser Verkehrsbetriebe",
    "url": "http://www.sbb.ch/",
    "timezone": "Europe/Berlin",
    "lang": "DE",
    "phone": "0900 300 300 "
  },
  "meta": {
    "success": true
  }
}