Справочник написан на английском. Названия полей, примеры и коды ошибок на всех языках одинаковые.
Turns a free-form address or place name (q), or a structured address, into coordinates with the parts of the address and its kind. limit is 5 by default and at most 20. Every response carries attribution, the licence note of the open data the places come from; show it with the results.
What is charged
Charged when at least one result comes back. An empty list carries the warning no_results and is free.
Units: geocode. usage.items in the response lists them.
Billable unit, for example search_web, content_page, fetch_page, geocode, autocomplete, knowledge.
countrequired
integer
cache
object
Show fields
Name
Type
Description
hitrequired
boolean
The response, or every page in it, came from a stored copy.
data_age_secondsrequired
integer
Age of the oldest part of the response.
fetched_atrequired
integer
Unix seconds when the oldest part was read.
warnings
array of object
Show fields
Name
Type
Description
coderequired
string
For example no_results, content_partial, answer_unavailable, partial, all_failed, reach_reduced.
message
string
param
string
resultsrequired
array of object
Show fields
Name
Type
Description
formatted_addressrequired
string
name
string
Name of the place when it has one.
locationrequired
object
Show fields
Name
Type
Description
latrequired
number
-90 to 90.
lonrequired
number
-180 to 180.
components
object
Show fields
Name
Type
Description
house_number
string
street
string
district
string
city
string
region
string
postal_code
string
country
string
country_code
string
kindrequired
string
A place of any other kind is not returned. One of address, street, poi, postal_code, district, city, region, country.
bbox
array of number
[min_lon, min_lat, max_lon, max_lat]. 4 to 4 items.
place_id
string
Stable id of the map object, when known.
distance_m
number
reverse-geocode only: metres from the point, rounded to 0.1.
attributionrequired
string
Licence notice of the map data. Always present; show it where the results are shown.
Errors
Status
Codes
400
invalid_request, invalid_url, invalid_schema or invalid_image. Not charged.
401
invalid_token. Not charged.
403
pre_consume_token_quota_failed (the key's own spending limit), access_denied, web_not_allowed or model_not_in_plan (customer keys while plans cannot include the web tools). Not charged.
404
not_found or invalid_endpoint. Not charged.
413
read_request_body_failed: the request body is over the limit. Not charged.
429
rate_limited, concurrency_limited, api_key_temporarily_frozen, or the failure guard. Not charged.
500
internal_error. Not charged.
501
api_not_implemented: the endpoint, type or option has not shipped. Not charged.
503
source_unavailable, web_api_disabled, token_cache_busy or billing_busy (the charge could not be prepared in time; retry after Retry-After). Not charged.