コード例 #1
0
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
}
コード例 #2
0
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
}