Quick overview
This workflow reads Spanish addresses from a Google Sheets tab, geocodes them in batches using the Geo Govoy Geocode API, writes latitude/longitude and quality fields back to the source rows, and appends any low-confidence or non-accepted matches to a separate Review tab.
How it works
- Starts when you manually execute the workflow.
- Reads rows from the Google Sheets “Addresses” tab.
- Filters to rows that have an address but an empty latitude and groups them into batches of up to 1,000 addresses.
- Sends each batch to the Geo Govoy API (POST https://geo.govoy.es/v2/geocode) to retrieve the best geocoding candidate per address.
- Flattens the API response to one output row per address, calculates a needs-review flag based on next_action and a confidence threshold, and prepares normalized fields.
- Updates the original rows in Google Sheets with lat, lon, status, confidence, normalized_address, next_action, and reason.
- Appends any rows flagged for review to the Google Sheets “Review” tab.
Setup
- Create a Google Sheet with an “Addresses” tab (including an address column and the output columns) and a “Review” tab with matching headers.
- Connect Google Sheets OAuth credentials and paste your spreadsheet URL into the Google Sheets nodes.
- Create an HTTP Header Auth credential for Geo Govoy using header name X-API-Key and your Geo Govoy API key.
- (Optional) Adjust the address column name, batch size (max 1,000), and confidence threshold in the code steps to match your sheet and review criteria.
Requirements
- A Google account with Google Sheets, and a Geo Govoy API key (free monthly allowance; request it at [email protected]). Geo Govoy covers addresses in Spain only.
Customization
- Replace the Manual Trigger with a Schedule Trigger to geocode new rows automatically; only rows with an empty lat are processed, so re-runs are safe.
Additional info
Disclosure: Geo Govoy is a product of Govoy, the author of this template. next_action is accept, confirm (check with the customer) or fix (correct the address). 1 unit per distinct address; rejected requests are not charged. API docs: https://geo.govoy.es/docs. Source and a Spanish version: https://github.com/GovoySL/geo-govoy-mcp/tree/main/integrations/n8n