Client reference notes
August 3, 2026 ยท View on GitHub
The public package mirrors the CLI workflows through typed request and response types. The generated package reference is at pkg.go.dev.
These request details are easy to miss when moving between the CLI and library:
Filters.Typesmaps to Google's singularincludedType; only the first value is sent.- Search price levels use integers from
0(free) through4(very expensive). - Details include reviews or photos only when
IncludeReviewsorIncludePhotosis set. PhotoMediaRequestrequiresMaxWidthPxorMaxHeightPx; each supplied dimension must be between 1 and 4800.- Search and nearby responses include
NextPageTokenwhen Google returns one. Place summaries include business status when it is present upstream. - Route search and directions require Routes API to be enabled.
- CLI directions route modifiers apply only to a driving primary or comparison route.
Field masks are defined with each request implementation so calls ask Google only for the fields represented by that workflow.