[BUGFIX] omit longitude and latitude in location if empty (#42)
This commit is contained in:
parent
49a153b7a2
commit
a3e3ea7589
|
@ -43,8 +43,8 @@ type System struct {
|
|||
|
||||
// Location struct
|
||||
type Location struct {
|
||||
Longtitude float64 `json:"longitude"`
|
||||
Latitude float64 `json:"latitude"`
|
||||
Longtitude float64 `json:"longitude,omitempty"`
|
||||
Latitude float64 `json:"latitude,omitempty"`
|
||||
Altitude float64 `json:"altitude,omitempty"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue