Make JSON keys for airports more user-friendly

This commit is contained in:
Elara 2023-08-22 17:54:41 -07:00
parent d5d2f35b15
commit d94a59c12c

View File

@ -2,16 +2,16 @@ package airports
// Airport contains information about an airport
type Airport struct {
ICAO string `json:"icao,omitempty"`
IATA string `json:"iata,omitempty"`
ICAO string `json:"icao_code,omitempty"`
IATA string `json:"iata_code,omitempty"`
Name string `json:"name,omitempty"`
City string `json:"city,omitempty"`
State string `json:"state,omitempty"`
Country string `json:"country,omitempty"`
Elevation int `json:"elevation,omitempty"`
Latitude float64 `json:"lat,omitempty"`
Longitude float64 `json:"lon,omitempty"`
Timezone string `json:"tz,omitempty"`
Latitude float64 `json:"latitude,omitempty"`
Longitude float64 `json:"longitude,omitempty"`
Timezone string `json:"timezone,omitempty"`
}
// Airports contains ICAO airport codes mapped to information about them.