GithubHelp home page GithubHelp logo

tfl4j's People

Contributors

mikulucky avatar

Watchers

 avatar  avatar

tfl4j's Issues

AccidentStats Service

  • /AccidentStats/{year} (Gets all accident details for accidents occuring in the specified year)
[
  {
    "$type": "Tfl.Api.Presentation.Entities.AccidentStats.AccidentDetail, Tfl.Api.Presentation.Entities",
    "id": 145223,
    "lat": 51.5127,
    "lon": -0.088493,
    "location": "King William Street junction with Lombard Street.",
    "date": "2011-01-07T08:31:00Z",
    "severity": "Serious",
    "borough": "City of London",
    "casualties": [
      {
        "$type": "Tfl.Api.Presentation.Entities.AccidentStats.Casualty, Tfl.Api.Presentation.Entities",
        "age": 32,
        "class": "Driver",
        "severity": "Serious",
        "mode": "PoweredTwoWheeler",
        "ageBand": "Adult"
      },
      {
        "$type": "Tfl.Api.Presentation.Entities.AccidentStats.Casualty, Tfl.Api.Presentation.Entities",
        "age": 38,
        "class": "Pedestrian",
        "severity": "Slight",
        "mode": "Pedestrian",
        "ageBand": "Adult"
      }
    ],
    "vehicles": [
      {
        "$type": "Tfl.Api.Presentation.Entities.AccidentStats.Vehicle, Tfl.Api.Presentation.Entities",
        "type": "Motorcycle_500cc_Plus"
      },
      {
        "$type": "Tfl.Api.Presentation.Entities.AccidentStats.Vehicle, Tfl.Api.Presentation.Entities",
        "type": "LightGoodsVehicle"
      }
    ]
  },
  {
    "$type": "Tfl.Api.Presentation.Entities.AccidentStats.AccidentDetail, Tfl.Api.Presentation.Entities",
    "id": 145224,
    "lat": 51.520488,
    "lon": -0.097393,
    "location": "Aldersgate Street 50 metres north junction with Beech Street.",
    "date": "2011-01-06T10:40:00Z",
    "severity": "Slight",
    "borough": "City of London",
    "casualties": [
      {
        "$type": "Tfl.Api.Presentation.Entities.AccidentStats.Casualty, Tfl.Api.Presentation.Entities",
        "age": 28,
        "class": "Pedestrian",
        "severity": "Slight",
        "mode": "Pedestrian",
        "ageBand": "Adult"
      }
    ],
    "vehicles": [
      {
        "$type": "Tfl.Api.Presentation.Entities.AccidentStats.Vehicle, Tfl.Api.Presentation.Entities",
        "type": "Car"
      }
    ]
  },
  {
    "$type": "Tfl.Api.Presentation.Entities.AccidentStats.AccidentDetail, Tfl.Api.Presentation.Entities",
    "id": 145225,
    "lat": 51.513495,
    "lon": -0.076642,
    "location": "Aldgate junction with Jewry Street.",
    "date": "2011-01-10T08:05:00Z",
    "severity": "Slight",
    "borough": "City of London",
    "casualties": [
      {
        "$type": "Tfl.Api.Presentation.Entities.AccidentStats.Casualty, Tfl.Api.Presentation.Entities",
        "age": 27,
        "class": "Pedestrian",
        "severity": "Slight",
        "mode": "Pedestrian",
        "ageBand": "Adult"
      }
    ],
    "vehicles": [
      {
        "$type": "Tfl.Api.Presentation.Entities.AccidentStats.Vehicle, Tfl.Api.Presentation.Entities",
        "type": "Car"
      }
    ]
  },
  {
    "$type": "Tfl.Api.Presentation.Entities.AccidentStats.AccidentDetail, Tfl.Api.Presentation.Entities",
    "id": 145226,
    "lat": 51.517605,
    "lon": -0.080505,
    "location": "Bishopsgate junction with New Street.",
    "date": "2011-01-09T04:00:00Z",
    "severity": "Slight",
    "borough": "City of London",
    "casualties": [
      {
        "$type": "Tfl.Api.Presentation.Entities.AccidentStats.Casualty, Tfl.Api.Presentation.Entities",
        "age": 54,
        "class": "Driver",
        "severity": "Slight",
        "mode": "Taxi",
        "ageBand": "Adult"
      }
    ],
    "vehicles": [
      {
        "$type": "Tfl.Api.Presentation.Entities.AccidentStats.Vehicle, Tfl.Api.Presentation.Entities",
        "type": "Taxi"
      },
      {
        "$type": "Tfl.Api.Presentation.Entities.AccidentStats.Vehicle, Tfl.Api.Presentation.Entities",
        "type": "Car"
      }
    ]
  }
]

Occupancy Service

  • /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"
}

Line Service

  • /Line/{ids}
  • /Line/{ids}/Arrivals
  • /Line/{ids}/Arrivals?stopPointId={stopPointId}
  • /Line/{ids}/Arrivals/{stopPointId}?direction={direction}
  • /Line/{ids}/Arrivals/{stopPointId}?direction={direction}&destinationStationId={destinationStationId}
  • /Line/{ids}/Disruption
  • /Line/{ids}/Disruption?startDate={startDate}&endDate={endDate}
  • /Line/Meta/{metadataType}
  • /Line/Mode/{modes}
  • /Line/Mode/{modes}/Disruption
  • /Line/Mode/{modes}/Disruption?startDate={startDate}&endDate={endDate}
  • /Line/Mode/{modes}/Route
  • /Line/Mode/{modes}/Status
  • /Line/Mode/{modes}/Status?startDate={startDate}&endDate={endDate}
  • /Line/Route
  • /Line/{ids}/Route
  • /Line/{id}/Route/Sequence/{direction}
  • /Line/Search/{query}
  • /Line/Status/{severity}
  • /Line/{ids}/Status
  • /Line/{ids}/Status/{startDate}/to/{endDate}
  • /Line/{id}/StopPoints
  • /Line/{id}/Timetable/{fromStopPointId}
  • /Line/{id}/Timetable/{fromStopPointId}?direction={direction}
  • /Line/{id}/Timetable/{fromStopPointId}/to/{toStopPointId}

Vehicle Search

Gets the predictions for a given list of vehicle Id's.

  • /Vehicle/{ids}/Arrivals
[
  {
    "$type": "Tfl.Api.Entities.Transient.Prediction, Tfl.Api.Entities",
    "id": "5809249e1e875a15e402fddd",
    "operationType": 1,
    "vehicleId": "LX58CFV",
    "naptanId": "490007851E",
    "stationName": "Harrow Lodge Park",
    "lineId": "365",
    "lineName": "365",
    "platformName": "W",
    "direction": "inbound",
    "bearing": "120",
    "visitNumber": "1",
    "tripId": "7448",
    "vehicleCDId": "595013",
    "destinationNaptanId": "",
    "destinationName": "Orchard Village",
    "timestamp": "2016-10-20T20:11:11Z",
    "timeToStation": 1698,
    "currentLocation": "",
    "towards": "Elm Park or Upminster",
    "expectedArrival": "2016-10-20T20:39:29.8955709Z",
    "timeToLive": "2016-10-20T20:39:59.8955709Z",
    "modeName": "bus",
    "serverTimestamp": "2016-10-20T20:10:06.042Z"
  }
]

screenshot 2016-10-20 21 12 11

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.