formula1.js
Version:
Formula 1 Ergast API Wrapper
22 lines (21 loc) • 579 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Circuit = void 0;
class Circuit {
constructor(grandprix, data) {
this.grandprix = grandprix;
this.name = data.circuitName;
this.id = data.circuitId;
this.location = {
latitude: parseFloat(data.Location.lat),
longitude: parseFloat(data.Location.long),
locality: data.Location.locality,
country: data.Location.country,
};
}
grandprix;
name;
id;
location;
}
exports.Circuit = Circuit;