# Geocode queued addresses with Supabase and Nominatim: n8n workflow

> Started by a clock, and works across Supabase. 16 steps, 3 branches, 2 loops or waits: a working afternoon to understand properly.

Source: https://millionrounds.com/workflow/geocode-queued-addresses-with-supabase-and-nominatim (Millionrounds; every figure on the page links to its filing or article)

[Automation library](https://millionrounds.com/workflows) · [Data collection](https://millionrounds.com/workflows?category=Data+collection#library)

# Geocode queued addresses with Supabase and Nominatim

Started by a clock, and works across Supabase. 16 steps, 3 branches, 2 loops or waits: a working afternoon to understand properly.

Medium

[Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgeocode-queued-addresses-with-supabase-and-nominatim)

**16 steps** Medium: a working afternoon

**3** Branches: places the flow splits

**2** Loops or waits

**1** Service it connects to

## The flow

Starts it 1 Model 1 Logic 8 Service 6

The steps in the order they run, from what starts it.

- 1 **Every day at 07:00** Schedule trigger *Starts it*
- 2 **Set table and country** Set *Logic*
- 3 **Fetch pending addresses** Supabase *Service*
- 4 **Loop over addresses** Split In Batches *Logic*
- 5 **Wait 2.1s for rate limit** Wait *Logic*
- 6 **Geocode district with Nominatim** Http Request *Service*
- 7 **District coordinates found?** If *Logic*
- 8 **Save district coordinates** Supabase *Service*
- 9 **Ask the LLM for the centroid** Anthropic *Model*
- 10 **Extract lat and lon from reply** Code *Logic*
- 11 **LLM returned coordinates?** If *Logic*
- 12 **Save LLM coordinates** Supabase *Service*
- 13 **Geocode city with Nominatim** Http Request *Service*
- 14 **City coordinates found?** If *Logic*
- 15 **Save city coordinates** Supabase *Service*
- 16 **Leave pending for next run** No Op *Logic*

## How it's built

- **Starts on:** A clock
- **Steps:** 16, with 3 branches, 2 loops or waits
- **Size:** Medium: a working afternoon
- **Connects to:** Supabase
- **Model:** None. This is plumbing, not judgement

## Questions

What does it need to run?

An n8n account, plus your own Supabase account. You connect your own accounts after importing it; none are included.

What starts it?

It starts on a clock.

Does it use AI?

No. Every step is fixed logic or a call to a service, so it does the same thing every time.

How long does it take to set up?

Plan an afternoon. 16 steps is enough that you should read each one before running it.

How do I import it?

Copy the workflow, open a new workflow in n8n and paste. The steps appear on the canvas, ready for your own accounts.

**Before you run it**

Nothing here has been tested by us. It is somebody's working automation, read and described from its own steps. Treat the connections it wants as a list of accounts it will touch, and read the 16 steps before you point it at anything that matters.

## Run it in n8n

- **Create your n8n account** Free to start. n8n is where the workflow runs. [Create an n8n account ↗](https://millionrounds.com/n8n)
- **Download the workflow** Free with a Millionrounds account. [Download free](https://millionrounds.com/login?next=%2Fapp%2Fworkflow%2Fgeocode-queued-addresses-with-supabase-and-nominatim)
- **Paste it into n8n** Open a new workflow in n8n and paste. Then connect your own accounts.

Stored with the author's traces removed: canvas notes, instance identifiers, saved credential names and any live document they had left behind.

## Connects to

Each opens the other workflows that use it.

[Supabase](https://millionrounds.com/workflows?service=Supabase#library)

## Workflows like it

Also data collection, with the same services where possible, closest in size first.

- [**Build a labeled Reddit opinion dataset with Apify and OpenAI** 16 steps · calls a model · Apify, Supabase](https://millionrounds.com/workflow/build-a-labeled-reddit-opinion-dataset-with-apify-and-openai)
- [**Route approval requests with OpenAI and Supabase** 16 steps · calls a model · Gmail, Supabase](https://millionrounds.com/workflow/route-approval-requests-with-openai-and-supabase)
- [**Supabase insertion & upsertion & retrieval with OpenAI** 16 steps · calls a model · Google Drive, Supabase](https://millionrounds.com/workflow/supabase-insertion-and-upsertion-and-retrieval-with-openai)
- [**Generate and store Supabase images with Claude** 15 steps · Supabase](https://millionrounds.com/workflow/generate-and-store-supabase-images-with-claude)
- [**Learn secure webhook APIs with Supabase** 15 steps · Supabase](https://millionrounds.com/workflow/learn-secure-webhook-apis-with-supabase)
- [**Build a RAG knowledge chatbot with OpenAI and Google Drive** 17 steps · calls a model · Google Drive, Supabase](https://millionrounds.com/workflow/build-a-rag-knowledge-chatbot-with-openai-and-google-drive)
