resolve_names
Resolves a batch list of specific location queries (landmark names or exact addresses) into canonical Google Maps Place IDs.
Input Requirements (CRITICAL):
queries(array of objects - MANDATORY): A list of location queries to resolve. You may specify up to 20 queries.Each query object must have:
text(string - MANDATORY): The text query representing a specific place name or address to resolve.Examples:
'Googleplex, Mountain View, CA','1600 Amphitheatre Pkwy, Mountain View, CA','Eiffel Tower, Paris'.
location_bias(object - OPTIONAL): Use this to prioritize results near a specific geographic area.Format:
{"viewport": {"low": {"latitude": [value], "longitude": [value]}, "high": {"latitude": [value], "longitude": [value]}}}
region_code(string - OPTIONAL): The Unicode CLDR region code (two-letter country code, e.g.,US,CA) of the user to bias the results.
Instructions for Tool Call:
Specificity (CRITICAL): Queries must represent a specific place name or address. General searches like
'restaurants'or chain names like'Starbucks'are not supported.Do NOT call this tool if the downstream tools you plan to invoke already accept raw address or place name strings directly.
Error Handling (CRITICAL):
This is a batch processing tool. A request might return "mixed results" (e.g. some queries resolve successfully while others fail).
The output list of
resultsis guaranteed to map 1:1 with the inputqueriesindices. A failed query will result in an emptyResultmessage (noentityis set) at its corresponding index in theresultslist.You MUST check the
failed_requestsmap field in the response to identify which specific query index failed. The key offailed_requestsrepresents the 0-based index of the failed query in the request. Do not assume the entire batch call failed because of a partial failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| queries | Yes | Required. A list of location queries to be resolved. You may specify up to 20 queries. | |
| regionCode | No | Optional. An optional region code to bias the resolution results. If specified, the resolution results will be biased towards the entities that are in or near the specified region. This should be a CLDR region code. For example, "US" or "CA". Including `location_bias` or `region_code` often provides better results by narrowing the search space. If both `location_bias` and `region_code` are specified, `location_bias` takes precedence over `region_code`. | |
| locationBias | No | Optional. An optional region to bias the resolution results. If specified, the resolution results will be biased towards the entities that are closer to this region. Including `location_bias` or `region_code` often provides better results by narrowing the search space. If both `location_bias` and `region_code` are specified, `location_bias` takes precedence over `region_code`. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | No | Output only. The list of resolved entities from the location queries. Guaranteed to map 1:1 with the request `queries` indices. An empty string at index `i` indicates the resolution failed for that query. If the resolution failed, please check the `failed_requests` field for the error status. | |
| failedRequests | No | Output only. A map communicating partial failures. The key is the index of the failed request in the `queries` field. The value is the error status detailing why the resolution failed. |