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

Latest commit

 

History

History
219 lines (188 loc) · 3.95 KB

watpark.md

File metadata and controls

219 lines (188 loc) · 3.95 KB

WATPark

GET /v2/parking/watpark.{format}

Description

This method returns real-time parking counts in select parking lots across campus.

Summary

Name Value Name Value
Request Protocol GET Requires API Key Yes
Method ID 1823 Enabled Yes
Service Name parking Service ID 293
Information Steward WATPark Data Type JSON Feed
Update Frequency Every request (live) Cache Time 0 seconds

Notes

  • Usage won't increase if there is no data returned
  • We cannot modify the data from this method
  • Any value can be null

Sources

Parameters

GET /v2/parking/watpark.{format}
Parameter Type Required Description
format input yes The format of the output
key filter yes Your API key
callback filter no JSONP callback format

Output Formats

  • json
  • xml

Examples

GET /v2/parking/watpark.{format}

Response

Field Name Type Value Description
lot_name string Name of the parking lot
latitude float Latitude of the parking lot
longitude float Longitude of the parking lot
capacity integer Capacity of the parking lot
current_count integer Current count of the number of cars in the parking lot
percent_filled integer Percentage of which the parking lot is filled, rounded to the nearest integer
last_update string Time which the `current_count` was last updated

Any value can be null

Output

JSON

{
  "meta":{
    "requests":660143,
    "timestamp":1444252138,
    "status":200,
    "message":"Request successful",
    "method_id":1823,
    "method":{

    }
  },
  "data":[
    {
      "lot_name":"C",
      "latitude":43.467536,
      "longitude":-80.538379,
      "capacity":807,
      "current_count":401,
      "percent_filled":50,
      "last_updated":"2015-10-07T17:08:49-04:00"
    },
    {
      "lot_name":"N",
      "latitude":43.47491,
      "longitude":-80.544559,
      "capacity":252,
      "current_count":189,
      "percent_filled":75,
      "last_updated":"2015-10-07T17:08:39-04:00"
    },
    {
      "lot_name":"W",
      "latitude":43.474777,
      "longitude":-80.547579,
      "capacity":184,
      "current_count":135,
      "percent_filled":73,
      "last_updated":"2015-10-07T17:08:39-04:00"
    },
    {
      "lot_name":"X",
      "latitude":43.477526,
      "longitude":-80.545492,
      "capacity":630,
      "current_count":177,
      "percent_filled":28,
      "last_updated":"2015-10-07T17:08:18-04:00"
    }
  ]
}