See llms.txt for all machine-readable content.

Back to Templates

Geocode Spanish addresses in Google Sheets with Geo Govoy and flag reviews

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

  1. Starts when you manually execute the workflow.
  2. Reads rows from the Google Sheets “Addresses” tab.
  3. Filters to rows that have an address but an empty latitude and groups them into batches of up to 1,000 addresses.
  4. Sends each batch to the Geo Govoy API (POST https://geo.govoy.es/v2/geocode) to retrieve the best geocoding candidate per address.
  5. 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.
  6. Updates the original rows in Google Sheets with lat, lon, status, confidence, normalized_address, next_action, and reason.
  7. Appends any rows flagged for review to the Google Sheets “Review” tab.

Setup

  1. Create a Google Sheet with an “Addresses” tab (including an address column and the output columns) and a “Review” tab with matching headers.
  2. Connect Google Sheets OAuth credentials and paste your spreadsheet URL into the Google Sheets nodes.
  3. Create an HTTP Header Auth credential for Geo Govoy using header name X-API-Key and your Geo Govoy API key.
  4. (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