mikulucky / tfl4j Goto Github PK
View Code? Open in Web Editor NEWJava Rest Client Implementation for the TFL (Transport for London) Rest API
License: MIT License
Java Rest Client Implementation for the TFL (Transport for London) Rest API
License: MIT License
[
{
"$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"
}
]
{
"$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.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"
}
]
}
]
Gets the predictions for a given list of vehicle Id's.
[
{
"$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"
}
]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.