UNPKG

formula1.js

Version:
22 lines (21 loc) 579 B
"use strict"; 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;