Geocode names in batch
geocode_batchGeocode up to 20 free-text queries at once, returning the top match with coordinates for each, while keeping results in input order. Unmatched queries return errors without stopping the batch.
Instructions
Geocode up to 20 free-text queries in one call, one best match each.
Cuts N round-trips of geocode() into one and, more importantly,
shares ONE local divisions name table across the batch (#329) so a
two-name walk is not N cold S3 scans. For each query, keeps only
the top candidate.
Returns {"results": [{"query", "name", "type", "lat", "lon", "id"
(GERS), "rank_score"}, ...]}, one row per query, in input order — a
query with no match gets the standard error envelope {"query",
"error": "not_found", "detail"} instead, and does not fail the rest of
the batch. queries is capped at 20; a longer list returns a structured
{"error": ...} rather than truncating silently. Budgeted like every
other tool. Returns a structured {"error": ...} instead of raising if
the remote scan itself fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| queries | Yes | ||
| limit_per_query | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||