include addresses for sanity testing

This commit is contained in:
Bel LaPointe
2026-03-08 20:46:50 -06:00
parent e8783c982d
commit e8111a50d7

View File

@@ -35,9 +35,10 @@ func Run(ctx context.Context) error {
origin := resp.Results[0].Geometry.Location
type Result struct {
Name string
Lat float64
Lng float64
Name string
Lat float64
Lng float64
Address string
}
results := []Result{}
var nextToken string
@@ -55,9 +56,10 @@ func Run(ctx context.Context) error {
nextToken = resp.NextPageToken
for _, result := range resp.Results {
results = append(results, Result{
Name: result.Name,
Lat: result.Geometry.Location.Lat,
Lng: result.Geometry.Location.Lng,
Name: result.Name,
Lat: result.Geometry.Location.Lat,
Lng: result.Geometry.Location.Lng,
Address: result.FormattedAddress,
})
}
log.Printf("%d...", len(resp.Results))