UConn RESTful: CENTER_OF_BUILDING

Back to UConn Restful

CENTER_OF_BUILDING

Fetches the latitude and longitude of the center of the building.  The call takes a building id as a parameter. The call returns one record with the latitude and longitude of the building specified.

  • URL
    https://aimdev.uconn.edu/api/index (dev)
    https://aimtest.uconn.edu/api/index (test)
    https://aim.uconn.edu/api/index (prod)
  • Method:
    CENTER_OF_BUILDING
    GET
  • URL Params:
    Required:
    VALUE=[alphanumeric]
    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: “LATITUDE”
      SAMPLE VALUE: “41.8092573900”
    • ID: “LONGITUDE”
      SAMPLE VALUE: “-72.2567138400”
  • Error Response:
    Content: "Authentication Failed"
  • Sample Call:
    https://aim.uconn.edu/api/index?key={API_KEY}&method=CENTER_OF_BUILDING&format=json&value=0001
  • 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