Patch for a Map (#62)

Add map
This commit is contained in:
Johann Richard
2018-10-28 16:42:17 +01:00
committed by Martin Polden
parent e5c8310acb
commit cba0928a65
2 changed files with 17 additions and 3 deletions

View File

@ -222,12 +222,20 @@ func (s *Server) DefaultHandler(w http.ResponseWriter, r *http.Request) *appErro
}
var data = struct {
Response
Host string
JSON string
Port bool
Host string
BoxLatTop float64
BoxLatBottom float64
BoxLonLeft float64
BoxLonRight float64
JSON string
Port bool
}{
response,
r.Host,
response.Latitude + 0.05,
response.Latitude - 0.05,
response.Longitude - 0.05,
response.Longitude + 0.05,
string(json),
s.LookupPort != nil,
}