getLocations

GET

getLocations

Gets all `Location` objects. Can be filtered by parameters.

Resource URL

https://api.oregonstate.edu/v1 /locations

Query Parameters


Name Values Description
q

Query to search through buildings. Looks through the location name, abbreviation, summary and description

campus

Name of the campus. Valid options are: corvallis, extension, cascades, hmsc, and other.

type

Type of location. Valid options are: building, dining, cultural-center, parking, and other.

page[size]

Number of results to return. Used in pagination. Max value is 10000.

page[number]

Page number of results. Used to paginate through results.

lat

Latitude of the location. Should be used with lon parameter.

lon

Longitude of the location. Should be used with lat parameter.

distance

The radius of the circle centred on the specified location.

distanceUnit

Distance can be specified in following units: Mile - mi or miles (default); Yard - yd or yards; Feet - ft or feet; Inch - in or inch; Kilometer - km or kilometers; Meter - m or meters; Centimeter - cm or centimeters; Millimeter - mm or millimeters; Nautical mile - NM, nmi or nautical miles

isOpen

Filter by locations that are currently open.

giRestroom

If true, only locations that have gender inclusive restrooms will be returned.

parkingZoneGroup

Locations in results should match the parkingZoneGroup in this query parameter. Multiple value allowed. Example `?parkingZoneGroup=B2&parkingZoneGroup=C`

adaParkingSpaceCount

The filter for locations with ADA parking space greater than or equal to this amount

motorcycleParkingSpaceCount

The filter for locations with motorcycle parking space greater than or equal to this amount

evParkingSpaceCount

The filter for locations with electric vehicle parking space greater than or equal to this amount


Header Parameters


Name Values Description
Authorization
(required)

"Bearer [token]" where [token] is your OAuth2 access token

Request Body

HTTP Basic

OAuth 2.0

API Key

Reset

Make a request and see the response.

Make a request and see the response.

Make a request and see the response.

Response Error Details

  • HTTP Code
    Error Code
    Description
  • 404

    Not Found

  • 500

    Internal Server Error

Resource Summary

Security

Category

locations

Working...