Guides
Worked examples that end in a working page. Each one links to the endpoints it uses in the reference, and every block of code can be copied.
- Address autocomplete in plain JavaScriptAdd Australian address autocomplete to any HTML form with one script and no framework: a debounced call to the address API as someone types, a list to pick from, and the G-NAF id saved with the form.About 10 minutes
- Address autocomplete in React with the Locio packageInstall the published React client and have an accessible address autocomplete working in a few minutes, with the debouncing, request cancellation and keyboard handling already done and every class name still yours.About 6 minutes
- Address autocomplete in ReactA small hook and a component that give a React form Australian address autocomplete from the Locio API, with debouncing, request cancellation and the picked address handed to the parent as a typed object.About 15 minutes
- Address autocomplete in Vue with the Locio packageInstall the published Vue client and get an accessible address autocomplete as a single component, with the debouncing and request cancellation already done, v-model support and every class name still yours.About 6 minutes
- Address autocomplete in VueA single file Vue 3 component that adds Australian address autocomplete to a form with the Locio API: script setup, a watched query with a debounce, request cancellation, and the picked address emitted to the parent.About 15 minutes
- Stand up a React site with Australian address searchFrom an empty folder to a deployed page: create a Vite React project, add address search backed by the Locio API with a public key, run it locally, build it and put it on a static host.About 20 minutes
- Normalise shipping addresses at checkoutTake the address a customer typed, resolve it against G-NAF on your server, store the id, and hand your carrier the canonical form. Node, with the fallback for an address that does not resolve, unit numbers handled, and the same answer every time an order is looked at again.About 15 minutes
- Put a searched address on a map with MapLibreAddress autocomplete that drops a pin on a MapLibre map as soon as an address is picked, with OpenFreeMap tiles so there is no second API key to manage, a pin that follows each pick, and a dark mode that does not leave a bright rectangle on the page.About 15 minutes
- Validate and geocode Australian addresses in PHPA small PHP client for the Locio API that checks whether an address is real, returns its G-NAF id and coordinates, and falls back to fuzzy matching for typos. Plain curl, no framework required, with a Laravel variant.About 15 minutes
- Australian address autocomplete for WooCommerceInstall the Locio plugin on a WooCommerce shop: suggestions as the customer types at checkout, a check against G-NAF when the order is placed, and the G-NAF id saved on the order. With a local test shop you can stand up in two commands.About 12 minutes
- Address validation and geocoding in GoInstall the Go client and resolve a typed address to a G-NAF id and a coordinate on the server, with near misses to offer back when nothing matches and typed errors for quota and rate limits.About 8 minutes
- Use Locio from Claude Code, Claude Desktop and CursorConnect the address API to the agents you already use: one command for Claude Code, a connector for claude.ai and Claude Desktop, a JSON file for Cursor and VS Code. Then what to ask, and how to read the quota when an agent runs out.About 10 minutes
- Give an agent address tools with the Anthropic APITwo ways to let Claude validate and geocode Australian addresses from your own code: point the Messages API at the Locio MCP server and write no tool loop at all, or define the tools yourself over the REST API with the SDK's tool runner.About 15 minutes
- Clean a spreadsheet of addresses with an agentA complete Python script: read a CSV of addresses as people typed them, let Claude resolve each one through the Locio API, fall back to fuzzy matching for typos, and write a CSV with the address id, coordinates and a note for every row it could not settle.About 20 minutes