Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Occupancy Service #3

Open
2 tasks
mikulucky opened this issue Oct 20, 2016 · 0 comments
Open
2 tasks

Occupancy Service #3

mikulucky opened this issue Oct 20, 2016 · 0 comments
Milestone

Comments

@mikulucky
Copy link
Owner

mikulucky commented Oct 20, 2016

  • /Occupancy/CarPark (Gets the occupancy for all car parks that have occupancy data)
[
  {
    "$type": "Tfl.Api.Presentation.Entities.CarParkOccupancy, Tfl.Api.Presentation.Entities",
    "id": "CarParks_800491",
    "bays": [
      {
        "$type": "Tfl.Api.Presentation.Entities.Bay, Tfl.Api.Presentation.Entities",
        "bayType": "Disabled",
        "bayCount": 2,
        "free": 2,
        "occupied": 0
      },
      {
        "$type": "Tfl.Api.Presentation.Entities.Bay, Tfl.Api.Presentation.Entities",
        "bayType": "Pay and Display Parking",
        "bayCount": 45,
        "free": 31,
        "occupied": 14
      }
    ],
    "name": "Barkingside Stn (LUL)",
    "carParkDetailsUrl": "https://api-neon.tfl.gov.uk/Place/CarParks_800491"
  },
  {
    "$type": "Tfl.Api.Presentation.Entities.CarParkOccupancy, Tfl.Api.Presentation.Entities",
    "id": "CarParks_800468",
    "bays": [
      {
        "$type": "Tfl.Api.Presentation.Entities.Bay, Tfl.Api.Presentation.Entities",
        "bayType": "Disabled",
        "bayCount": 2,
        "free": 1,
        "occupied": 1
      },
      {
        "$type": "Tfl.Api.Presentation.Entities.Bay, Tfl.Api.Presentation.Entities",
        "bayType": "Pay and Display Parking",
        "bayCount": 42,
        "free": 23,
        "occupied": 19
      }
    ],
    "name": "Buckhurst Hill Stn (LUL)",
    "carParkDetailsUrl": "https://api-neon.tfl.gov.uk/Place/CarParks_800468"
  }
]
  • /Occupancy/CarPark/{id} (Gets the occupancy for a car park with a given id)
{
  "$type": "Tfl.Api.Presentation.Entities.CarParkOccupancy, Tfl.Api.Presentation.Entities",
  "id": "CarParks_800491",
  "bays": [
    {
      "$type": "Tfl.Api.Presentation.Entities.Bay, Tfl.Api.Presentation.Entities",
      "bayType": "Disabled",
      "bayCount": 2,
      "free": 2,
      "occupied": 0
    },
    {
      "$type": "Tfl.Api.Presentation.Entities.Bay, Tfl.Api.Presentation.Entities",
      "bayType": "Pay and Display Parking",
      "bayCount": 45,
      "free": 31,
      "occupied": 14
    }
  ],
  "name": "Barkingside Stn (LUL)",
  "carParkDetailsUrl": "https://api-neon.tfl.gov.uk/Place/CarParks_800491"
}
@mikulucky mikulucky added this to the 1.0.0 milestone Oct 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant