Skip to main content

Module google

Module google 

Source
Expand description

The shape of a Google Geocoding API answer, so a client written for it only needs a new base URL.

Follows the documented JSON response (developers.google.com/maps/documentation/geocoding/requests-geocoding, read 2026-11-07). Answers come from the sheet, so what Google has and a sheet does not is a documented stand-in, never a guess: place_id is GridPin’s own and lasts as long as the sheet release, viewport is a box by precision, a country component holds the code alone.

Functions§

component_filter
components=country:US|postal_code:94043: the value of one filter.
invalid
A request the API documents as INVALID_REQUEST.
location_type
geometry.location_type, from how far the answer reaches.
response
The whole answer: status is OK with at least one result, ZERO_RESULTS otherwise, as documented.
result
One answer as an element of results.