Skip to main content

Setup

Put them in your environment or .env; Data APIs covers the other ways.

Notes

  • Billed per request by SKU, on a Cloud project with billing enabled; Places calls are billed by the most expensive field in the mask, so keep field masks short.
  • Places (New) calls need a field mask (the fields parameter); without one they fail.
  • Geocoding and Street View metadata answer HTTP 200 with a status field; read it.

Endpoints

  • A read over POST.
  • At most 20 results per page and 60 across all pages.
  • Put nextPageToken in fields to be able to page.
  • A read over POST. No paging: at most 20 results.

Get place details

  • Reviews are a field of the details response (reviews), billed at the Enterprise + Atmosphere SKU.

Geocode an address

  • Errors come back as HTTP 200 with a status field: check status is OK (ZERO_RESULTS, OVER_QUERY_LIMIT, REQUEST_DENIED, INVALID_REQUEST).

Reverse geocode coordinates

Check Street View coverage

  • No charge and no quota for metadata; only loading the image is billed. The image itself is the Street View Static API (binary JPEG), not in this entry.