Back to UConn Restful
NEAREST_BUILDINGS
Fetches the 10 closest active University of Connecticut Maintained buildings to a specified location. The call takes longitude and latitude as parameters. The call returns multiple records describing each of the 10 closest active buildings maintained by University of Connecticut Facilities Operations.
- URL
https://aimdev.uconn.edu/api/index (dev)
https://aimtest.uconn.edu/api/index (test)
https://aim.uconn.edu/api/index (prod) - Method:
NEAREST_BUILDINGS
GET
- URL Params:
Required:
latitude=[decimal]
longitude=[decimal]
Optional:None
- Data Params
N/A - Success Response:
A successful response returns an array of 10 buildings. Each building has the following format- ID: “BUILDING”
SAMPLE VALUE: “BABBIDGE LIBRARY (HOMER)” - ID:”BLDG_CODE”
SAMPLE VALUE: “0364” - ID: “CAMPUS”
SAMPLE VALUE: “01” - ID: “DISTANCE_m”
SAMPLE VALUE: “33.2”
- ID: “BUILDING”
- Error Response:
Content:"Authentication Failed"
- Sample Call:
https://aim.uconn.edu/api/index?key={API_KEY}&method=NEAREST_BUILDINGS&format=json&lat=41.8064002&lon=-72.25204769999999 - Notes:
Please send an email to help@uconn.edu referencing these instructions and your business case for needing access to the API. A key will then be provided for access to the API