Skip to content

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

Notifications You must be signed in to change notification settings

olerom/formula-one-ergast

Repository files navigation

Formula One Ergast Build Status

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

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 -1, limit as 30 and offset as 0. 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);

About

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

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages