Create initial `Asteroid` struct

This commit is contained in:
CypherPoet 2019-01-19 23:09:49 -05:00
parent 95c4d9f19a
commit a5c980d19d
1 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,26 @@
//
// Asteroid.swift
//
// An asteroid classified by NASA JPL as a Near-Earth Object
//
struct Asteroid {
let name: String
let designation: String
let absoluteMagnitudeH: Double
let isPotentiallyHazardous: Bool
let jplURL: String
struct EstimatedDiameter {
let minMeters: Double
let maxMeters: Double
}
/*
Close-Approach Data
📝 While the API tracks close-approach data relative to all planets in the solar system,
we're looking for close-approach data relative to Earth
*/
let missDistanceKM: Double
let closetApproachDate: String
}