Remove ResponseLocation
We're going to use the H3 index directly.
This commit is contained in:
parent
6517d50802
commit
1fdc59d7c7
1 changed files with 0 additions and 16 deletions
16
api/types.go
16
api/types.go
|
|
@ -137,22 +137,6 @@ func (e *ResponseErr) Render(w http.ResponseWriter, r *http.Request) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
type ResponseLocation struct {
|
|
||||||
Latitude float64 `json:"latitude"`
|
|
||||||
Longitude float64 `json:"longitude"`
|
|
||||||
}
|
|
||||||
|
|
||||||
func (rtd ResponseLocation) Render(w http.ResponseWriter, r *http.Request) error {
|
|
||||||
return nil
|
|
||||||
}
|
|
||||||
|
|
||||||
func NewResponseLocation(l LatLong) ResponseLocation {
|
|
||||||
return ResponseLocation{
|
|
||||||
Latitude: l.Latitude(),
|
|
||||||
Longitude: l.Longitude(),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
type ResponseMosquitoInspection struct {
|
type ResponseMosquitoInspection struct {
|
||||||
ActionTaken string `json:"action_taken"`
|
ActionTaken string `json:"action_taken"`
|
||||||
Comments string `json:"comments"`
|
Comments string `json:"comments"`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue