func (st *GetReportsByLatLng) Run() (string, error) { rpts, _ := data.FindLL(st.LatitudeV, st.LongitudeV, st.radius, st.maxResults, st.includeComments) log.Debug(">>> rpts:\n%s\n", spew.Sdump(rpts)) resp, _ := response.NewResponseReports(true, st.Start(), rpts) return resp, nil }
func (st *GetReportsByZipCode) Run() (string, error) { rpts, _ := data.FindZipCode(st.ZipCode, st.includeComments) log.Debug(">>> rpts:\n%s\n", spew.Sdump(rpts)) resp, _ := response.NewResponseReports(true, st.Start(), rpts) return resp, nil }