---
title: "Get buildings"
method: GET
path: "/map/buildings/{building_id}"
tags: ["map"]
---

# Get buildings

`GET /map/buildings/{building_id}`

Get location data about one or more buildings. Comma separated building numbers are the parameters.

## Path parameters

- `building_id` string[], required

## Response `200`

Successful Operation

- object
  - `data` Building — Represents a building on campus.
    - `name` string — Name of the building
    - `code` string — Shortened building code. Not all buildings have these.
    - `id` string — Unique building id
    - `long` number — Longitude
    - `lat` number — Latitude
  - `count` number — Number of buildings returned

## Other responses

- `400` — Malformed building code
- `404` — Unknown building code

## Changes

- **2020-03-31** `b4919cd9fb0d` — 2 breaking, 1 warning, 1 info
  - `path` request parameter `building_id` list-of-types was narrowed by removing types `string`
  - for the `path` request parameter `building_id`, the type changed from no type to `array`
  - removed the optional property `data/number` from the response with the `200` status
  - added the optional property `data/id` to the response with the `200` status
- **2020-02-18** `ae6661642f5a` — 1 info
  - endpoint added
- **2019-07-02** `f2f973dd5f11` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/umdio/apis/umd-io/changes/map/buildings/:building_id/get.md)

---

[API](https://skmtc.dev/umdio/apis/umd-io.md) · [All operations](https://skmtc.dev/umdio/apis/umd-io/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/umdio/umd-io/revisions/c0fac695dd04/schema)
