back to vold

This commit is contained in:
Bel LaPointe
2026-03-08 20:35:09 -06:00
parent 94e946b20f
commit cddb6f4280
3 changed files with 113 additions and 4 deletions

View File

@@ -2,15 +2,43 @@ package cmd
import (
"context"
"fmt"
"io"
<<<<<<< HEAD
"os"
"cloud.google.com/go/maps"
=======
>>>>>>> parent of bff0f40 (vold)
"googlemaps.github.io/maps"
)
func Main(ctx context.Context) error {
c, err := maps.NewClient(maps.WithAPIKey(os.Getenv("GOOGLE_PLACES_API_KEY")))
if err != nil {
return err
}
resp, err := c.TextSearch(ctx, &maps.TextSearchRequest{
Query: os.Args[1],
Location: nil,
Radius: uint(0),
})
if err != nil {
return err
}
return fmt.Errorf("%+v", resp)
/*
resp, err := c.NearbySearch(ctx, &maps.NearbySearchRequest{
Location: &maps.LatLng{},
Radius: uint(0),
Keyword: os.Args[1],
Name: "",
OpenNow: false,
})
if err != nil {
return err
}
return fmt.Errorf("%+v", resp)
*/
return io.EOF
}