From e706486f2abdad322c725c12c251edca716600c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Raunsb=C3=A6k?= Date: Thu, 28 Jun 2018 17:49:47 +0200 Subject: [PATCH] Renamed LocationLatitude to Latitude and LocationLongitude to Longitude --- http/http.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/http/http.go b/http/http.go index 609e599..1c0fa8e 100644 --- a/http/http.go +++ b/http/http.go @@ -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 }