Make JSON keys for airports more user-friendly
This commit is contained in:
parent
d5d2f35b15
commit
d94a59c12c
@ -2,16 +2,16 @@ package airports
|
|||||||
|
|
||||||
// Airport contains information about an airport
|
// Airport contains information about an airport
|
||||||
type Airport struct {
|
type Airport struct {
|
||||||
ICAO string `json:"icao,omitempty"`
|
ICAO string `json:"icao_code,omitempty"`
|
||||||
IATA string `json:"iata,omitempty"`
|
IATA string `json:"iata_code,omitempty"`
|
||||||
Name string `json:"name,omitempty"`
|
Name string `json:"name,omitempty"`
|
||||||
City string `json:"city,omitempty"`
|
City string `json:"city,omitempty"`
|
||||||
State string `json:"state,omitempty"`
|
State string `json:"state,omitempty"`
|
||||||
Country string `json:"country,omitempty"`
|
Country string `json:"country,omitempty"`
|
||||||
Elevation int `json:"elevation,omitempty"`
|
Elevation int `json:"elevation,omitempty"`
|
||||||
Latitude float64 `json:"lat,omitempty"`
|
Latitude float64 `json:"latitude,omitempty"`
|
||||||
Longitude float64 `json:"lon,omitempty"`
|
Longitude float64 `json:"longitude,omitempty"`
|
||||||
Timezone string `json:"tz,omitempty"`
|
Timezone string `json:"timezone,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Airports contains ICAO airport codes mapped to information about them.
|
// Airports contains ICAO airport codes mapped to information about them.
|
||||||
|
Loading…
Reference in New Issue
Block a user