get-car-park-availability-all 2018-10-14T16:26:13+08:00

GET /service/facilities/car_park_availability/all

Return total number of car park available spaces.

Resource URL

https://api.data.um.edu.mo/service/facilities/car_park_availability/v1.0.0/all

Resource Information

Response formatJSON
Requires authorization?Yes
Rate limited?Yes

Parameters

ParameterRelated FieldRequiredDescriptionTypeFilter TypeExample
date_fromrecordDateoptionalStart datetime for filtering car park availability records.

Datetime, in UTC+08:00 (inclusive)

queryrange2018-10-14T10:00:00:00
date_torecordDateoptionalEnd datetime for filtering car park availability records.

Datetime, in UTC+08:00 (inclusive)

queryrange2018-10-14T16:00:00:00
car_park_codecarParkCodeoptionalCar Park CodequerysimpleP1
vehicle_typevehicleTypeoptionalTypes of vehiclequerysimpleLight Vehicle
parking_typeparkingTypeoptionalTypes of parkingquerysimpleVisitor

Example Request

https://api.data.um.edu.mo/service/facilities/car_park_availability/v1.0.0/all?car_park_code=P1&date_from=2018-10-14T10:00:00&date_to=2018-10-14T11:00:00

(Example to retrieve car park availability records of “P1” car park from 2018/10/14 10:00:00 to 2018/10/14 11:00:00)

Example Response

{ "_embedded": [
{
 "_id": "5bc2b023067a7dc7213ea771",
 "carParkCode": "P1",
 "recordDate": "2018-10-14T10:55:30+08:00",
 "records": [
  {
   "vehicleType": "Light Vehicle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 26
  },
  {
   "vehicleType": "Motorcycle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 22
  }
 ]
},{
 "_id": "5bc2aef7067a7dc7213ea0bd",
 "carParkCode": "P1",
 "recordDate": "2018-10-14T10:50:30+08:00",
 "records": [
  {
   "vehicleType": "Light Vehicle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 14
  },
  {
   "vehicleType": "Motorcycle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 22
  }
 ]
},{
 "_id": "5bc2adcb067a7dc7213e95b5",
 "carParkCode": "P1",
 "recordDate": "2018-10-14T10:45:31+08:00",
 "records": [
  {
   "vehicleType": "Light Vehicle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 15
  },
  {
   "vehicleType": "Motorcycle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 22
  }
 ]
},{
 "_id": "5bc2ac9e067a7dc7213e8dce",
 "carParkCode": "P1",
 "recordDate": "2018-10-14T10:40:29+08:00",
 "records": [
  {
   "vehicleType": "Light Vehicle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 17
  },
  {
   "vehicleType": "Motorcycle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 22
  }
 ]
},{
 "_id": "5bc2ab72067a7dc7213e8672",
 "carParkCode": "P1",
 "recordDate": "2018-10-14T10:35:29+08:00",
 "records": [
  {
   "vehicleType": "Light Vehicle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 18
  },
  {
   "vehicleType": "Motorcycle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 23
  }
 ]
},{
 "_id": "5bc2aa3b067a7dc7213e79b8",
 "carParkCode": "P1",
 "recordDate": "2018-10-14T10:30:18+08:00",
 "records": [
  {
   "vehicleType": "Light Vehicle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 22
  },
  {
   "vehicleType": "Motorcycle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 23
  }
 ]
},{
 "_id": "5bc2a923067a7dc7213e734f",
 "carParkCode": "P1",
 "recordDate": "2018-10-14T10:25:38+08:00",
 "records": [
  {
   "vehicleType": "Light Vehicle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 26
  },
  {
   "vehicleType": "Motorcycle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 24
  }
 ]
},{
 "_id": "5bc2a7f8067a7dc7213e6c82",
 "carParkCode": "P1",
 "recordDate": "2018-10-14T10:20:40+08:00",
 "records": [
  {
   "vehicleType": "Light Vehicle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 28
  },
  {
   "vehicleType": "Motorcycle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 24
  }
 ]
},{
 "_id": "5bc2a6cc067a7dc7213e6173",
 "carParkCode": "P1",
 "recordDate": "2018-10-14T10:15:39+08:00",
 "records": [
  {
   "vehicleType": "Light Vehicle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 26
  },
  {
   "vehicleType": "Motorcycle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 22
  }
 ]
},{
 "_id": "5bc2a59e067a7dc7213e5926",
 "carParkCode": "P1",
 "recordDate": "2018-10-14T10:10:37+08:00",
 "records": [
  {
   "vehicleType": "Light Vehicle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 24
  },
  {
   "vehicleType": "Motorcycle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 22
  }
 ]
},{
 "_id": "5bc2a474067a7dc7213e527c",
 "carParkCode": "P1",
 "recordDate": "2018-10-14T10:05:39+08:00",
 "records": [
  {
   "vehicleType": "Light Vehicle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 28
  },
  {
   "vehicleType": "Motorcycle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 23
  }
 ]
},{
 "_id": "5bc2a353067a7dc7213e484f",
 "carParkCode": "P1",
 "recordDate": "2018-10-14T10:00:50+08:00",
 "records": [
  {
   "vehicleType": "Light Vehicle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 28
  },
  {
   "vehicleType": "Motorcycle",
   "parkingType": "Visitor",
   "noOfAvailableSpace": 23
  }
 ]
}]
, "_returned": 12
}