public TransportApiResult < List < Agency > > getAgenciesByBoundingBox ( AgencyQueryOptions options , String boundingBox ) { if ( options == null ) { options = AgencyQueryOptions . defaultQueryOptions ( ) ; } if ( boundingBox == null ) { throw new IllegalArgumentException ( "BoundingBox is required." ) ; } String [ ] bbox = boundingBox . split ( "," , - 1 ) ; if ( bbox . length != 4 ) { throw new IllegalArgumentException ( "Invalid bounding box. See valid examples here: http://developer.whereismytransport.com/documentation#bounding-box." ) ; } return TransportApiClientCalls . getAgencies ( tokenComponent , settings , options , null , null , boundingBox ) ; }
Gets a list of all agencies within a bounding box .