All Projects → olerom → formula-one-ergast

olerom / formula-one-ergast

Licence: other
Java implementation to get a historical record of motor racing data from Ergast Developer API

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to formula-one-ergast

f1-telemetry-client
A Node UDP client and telemetry parser for Codemaster's Formula 1 series of games
Stars: ✭ 128 (+611.11%)
Mutual labels:  formula1, formula-one
F1-AppleTV
F1TV app for the Apple TV
Stars: ✭ 16 (-11.11%)
Mutual labels:  formula1
f1
Second edition of F1 Calendar 🏎📅
Stars: ✭ 155 (+761.11%)
Mutual labels:  formula1
updater
Update mechanism of f1jobs.co
Stars: ✭ 20 (+11.11%)
Mutual labels:  formula1
F1-Web-Viewer
A simple grid-based web viewer for Formula 1
Stars: ✭ 78 (+333.33%)
Mutual labels:  formula1
flask-react-d3-celery
A full-stack dockerized web application to visualize Formula 1 race statistics from 2016 to present, with a Python Flask server and a React front-end with d3.js as data visualization tool.
Stars: ✭ 20 (+11.11%)
Mutual labels:  formula1
Formula1API
Swift Package for accessing Formula 1 data from the Ergast API
Stars: ✭ 19 (+5.56%)
Mutual labels:  formula1
client
Job listings from all the Formula 1 teams on the grid
Stars: ✭ 27 (+50%)
Mutual labels:  formula1
formula1-telemetry-kafka
No description or website provided.
Stars: ✭ 99 (+450%)
Mutual labels:  formula1

Formula One Ergast Build Status

Java implementation to get a historical record of motor racing data from Ergast Developer API.

Add dependencies

Gradle

Add the JitPack repository to your build file. Add it in your root build.gradle at the end of repositories:

allprojects {
    repositories { 
        maven { url 'https://jitpack.io' }
    }
}

Add the dependency:

dependencies {
    compile 'com.github.olerom.formula-one-ergast:ergast:0.1.1'
}

Maven

Add the JitPack repository to your build file:

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

Add the dependency:

<dependency>
    <groupId>com.github.olerom.formula-one-ergast</groupId>
    <artifactId>ergast</artifactId>
    <version>0.1.1</version>
</dependency>

Usage

You have to initialize Ergast object:

Ergast ergast = new Ergast(2016, 100, 2);
Ergast ergast = new Ergast();

If you use default constructor, season will be set as NO_SEASON, limit as DEFAULT_LIMIT and offset as DEFAULT_OFFSET.

You can get the following objects that satisfy Ergast queries:

For example, to get information about pit stops at final race of 2016 season with 100 limit:

Ergast ergast = new Ergast(2016, 100, Ergast.DEFAULT_OFFSET);
ergast.getRacePitStops(21).forEach(System.out::println);

Help

It would be cool, if you review the code or create a pull request.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].