mirror of https://github.com/mpolden/echoip
Renamed LocationLatitude to Latitude and LocationLongitude to Longitude
This commit is contained in:
parent
919e4d6413
commit
e706486f2a
|
@ -36,8 +36,8 @@ type Response struct {
|
||||||
IsInEuropeanUnion bool `json:"is_in_european_union,omitempty"`
|
IsInEuropeanUnion bool `json:"is_in_european_union,omitempty"`
|
||||||
City string `json:"city,omitempty"`
|
City string `json:"city,omitempty"`
|
||||||
Hostname string `json:"hostname,omitempty"`
|
Hostname string `json:"hostname,omitempty"`
|
||||||
LocationLatitude float64 `json:"location_latitude,omitempty"`
|
Latitude float64 `json:"location_latitude,omitempty"`
|
||||||
LocationLongitude float64 `json:"location_longitude,omitempty"`
|
Longitude float64 `json:"location_longitude,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type PortResponse struct {
|
type PortResponse struct {
|
||||||
|
@ -86,8 +86,8 @@ func (s *Server) newResponse(r *http.Request) (Response, error) {
|
||||||
IsInEuropeanUnion: country.IsInEuropeanUnion,
|
IsInEuropeanUnion: country.IsInEuropeanUnion,
|
||||||
City: city.Name,
|
City: city.Name,
|
||||||
Hostname: hostname,
|
Hostname: hostname,
|
||||||
LocationLatitude: city.Latitude,
|
Latitude: city.Latitude,
|
||||||
LocationLongitude: city.Longitude,
|
Longitude: city.Longitude,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue