Geocode addresses
geocode_addressesTurn street addresses into latitude/longitude using Vepathos Smart Import. Requires a depot lat/lng or a city. Each stop includes matched_address (what the gazetteer matched) — use it to catch bad pins. Charges Smart Import quota, not route stops. When needs_confirmation is true, tell the user which ids are missing or uncertain before optimizing. Do not invent coordinates. Returns pins, or a geocode_id for get_geocode_result. It carries ADDRESSES AND NOTHING ELSE: a customer, phone, package count, weight, volume, note or delivery window sent here is dropped without a word. Rows carrying any of those are a delivery list, however few, and go to import_deliveries, which keeps them and geocodes them itself. Use this one for bare addresses: checking a handful, or placing a depot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City used to pick the map region when depot is omitted. | |
| depot | No | Depot coordinates. Helps pick the map region. Required if city is omitted. | |
| country | No | Country or ISO code the addresses are in. | |
| timezone | No | IANA time zone, e.g. America/Argentina/Buenos_Aires. | |
| addresses | Yes | Stops to geocode (1-500). Uses the account Smart Import quota, not route stops. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Structured error when the tool call failed. | |
| stops | No | Per-stop pins when status is completed (includes matched_address). | |
| status | No | queued / running / completed / failed. | |
| progress | No | Present while the geocode job is running. | |
| geocode_id | No | Handle for get_geocode_result, while the job is still running. A finished job returns its stops here instead and no handle: there is nothing left to poll. | |
| resolved_stops | No | Stops that received a latitude and longitude. | |
| review_stop_ids | No | Pins to confirm (band=review or confidence below 0.8). Ask before routing them. | |
| submitted_stops | No | Addresses sent to Smart Import. | |
| needs_confirmation | No | True when any stop is unresolved or in review. Wait for the user before optimize. | |
| poll_after_seconds | No | Call get_geocode_result again after about this many seconds. | |
| unresolved_stop_ids | No | Stops with no pin. Do not invent coordinates. Ask before optimizing. |