[BUGFIX] omit longitude and latitude in location if empty (#42)

This commit is contained in:
Julian 2017-03-15 15:04:40 +01:00 committed by Julian K
parent 49a153b7a2
commit a3e3ea7589

View File

@ -43,8 +43,8 @@ type System struct {
// Location struct // Location struct
type Location struct { type Location struct {
Longtitude float64 `json:"longitude"` Longtitude float64 `json:"longitude,omitempty"`
Latitude float64 `json:"latitude"` Latitude float64 `json:"latitude,omitempty"`
Altitude float64 `json:"altitude,omitempty"` Altitude float64 `json:"altitude,omitempty"`
} }