Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Latest commit

 

History

History
277 lines (239 loc) · 5.2 KB

list.md

File metadata and controls

277 lines (239 loc) · 5.2 KB

Buildings

GET /buildings/list.{format}

Description

This method returns a list of official building names, codes, numbers, and their lat/long coordinates.

Summary

Name Value Name Value
Request Protocol GET Requires API Key Yes
Method ID 1213 Enabled Yes
Service Name buildings Service ID 257
Information Steward Institution of Analysis & Planning (IAP) Data Type CSV
Update Frequency When updated by the steward/via github pull request Cache Time 0 seconds

Notes

  • Usage won't increase if there is no data returned
  • This data is community curated on github.
  • Any value can be null

Sources

Parameters

GET /buildings/list.{format}
Parameter Type Required Description
format input yes Output format
key filter yes Your API key
callback filter no JSONP callback format

Output Formats

  • json
  • geojson
  • xml

Examples

GET /buildings/list.{format}

Response

Field Name Type Value Description
building_id string Official unique building number
building_code string Official unique building code
building_name string Official unique building name
alternate_names array Alternate building names
latitude float Latitude of building location
longitude float Longitude of building location
building_sections array List of building sections
section_name array Name of section
latitude float Latitude of building section location
longitude float Longitude of building section location

Any value except building_id, building_code, and building_name can be null

Output

JSON

{
  "meta":{
    "requests":96,
    "timestamp":1381939191,
    "status":200,
    "message":"Request successful",
    "method_id":2,
    "version":2.07,
    "method":{
      
    }
  },
  "data":[
    {
      "building_id":0,
      "building_code":"AAC",
      "building_name":"Architecture Annex Cambridge",
      "alternate_names":[
        
      ],
      "latitude":43.35855,
      "longitude":-80.31684,
      "building_sections":[
        
      ]
    },
    {
      "building_id":0,
      "building_code":"AAR",
      "building_name":"Architecture Annex Rome",
      "alternate_names":[
        
      ],
      "latitude":41.889615,
      "longitude":12.470925,
      "building_sections":[
        
      ]
    },
    {
      "building_id":0,
      "building_code":"ACW",
      "building_name":"Accelerator Centre Waterloo",
      "alternate_names":[
        
      ],
      "latitude":43.47731,
      "longitude":-80.54896,
      "building_sections":[
        
      ]
    },
    {
      "building_id":44,
      "building_code":"MKV",
      "building_name":"William Lyon Mackenzie King Village",
      "alternate_names":[
        "Mackenzie King Village"
      ],
      "latitude":43.471509,
      "longitude":-80.552729,
      "building_sections":[
        {
          "section_name":"MKV East",
          "latitude":43.47132,
          "longitude":-80.551983
        },
        {
          "section_name":"MKV West",
          "latitude":43.471161,
          "longitude":-80.553056
        }
      ]
    },
    {
      "building_id":45,
      "building_code":"TC",
      "building_name":"William M. Tatham Centre for Co-operative Education & Career Action",
      "alternate_names":[
        "Tatham Centre"
      ],
      "latitude":43.469,
      "longitude":-80.541324,
      "building_sections":[
        
      ]
    }
  ]
}