Renamed LocationLatitude to Latitude and LocationLongitude to Longitude

This commit is contained in:
Mike Raunsbæk 2018-06-28 17:49:47 +02:00
parent 919e4d6413
commit e706486f2a
1 changed files with 4 additions and 4 deletions

View File

@ -36,8 +36,8 @@ type Response struct {
IsInEuropeanUnion bool `json:"is_in_european_union,omitempty"`
City string `json:"city,omitempty"`
Hostname string `json:"hostname,omitempty"`
LocationLatitude float64 `json:"location_latitude,omitempty"`
LocationLongitude float64 `json:"location_longitude,omitempty"`
Latitude float64 `json:"location_latitude,omitempty"`
Longitude float64 `json:"location_longitude,omitempty"`
}
type PortResponse struct {
@ -86,8 +86,8 @@ func (s *Server) newResponse(r *http.Request) (Response, error) {
IsInEuropeanUnion: country.IsInEuropeanUnion,
City: city.Name,
Hostname: hostname,
LocationLatitude: city.Latitude,
LocationLongitude: city.Longitude,
Latitude: city.Latitude,
Longitude: city.Longitude,
}, nil
}