AI coding agents are now writing a lot of geocoding code, and left to themselves they guess: they invent parameters, forget to ask for JSON, treat confidence scores as decoration and fall over on the first rate limit. So we published
geolytica-skills, an open-source (MIT) set of agent skills that tells them how Geocoder.ca and Geocode.xyz actually work.
There are three skills:
- geocoder-ca-api — Canada and the USA: geocoding, reverse geocoding, address validation and standardization, postal codes and ZIP+4, intersections, geoparsing, nearby places and census geography.
- geocode-xyz-api — the rest of the world: geocoding, reverse geocoding, geoparsing free text, IP geolocation, street and postcode autocomplete.
- geocoder-ca-autocomplete — the dependency-free JavaScript drop-in for as-you-type Canadian address entry.
The routing rule is built in: Canada or USA goes to Geocoder.ca, everything else to Geocode.xyz. Each skill also carries Python, Node.js, Perl, PHP and command-line references, which the agent loads only when it needs them.
Install (Claude Code)
/plugin marketplace add geocode-xyz/geolytica-skills
/plugin install geolytica@geolytica-skills
Then put your token in the environment the agent runs in:
export GEOCODER_CA_AUTH=your_geocoder_ca_token
export GEOCODE_XYZ_AUTH=your_geocode_xyz_key
The skills include small wrapper scripts that read the token from the environment, so the agent never sees it, prints it or writes it into shell history. Without a token, requests go to the free throttled port, which is fine for trying it out.
Using Gemini CLI, Codex or another agent? The skills are plain Markdown; see install.md. Agents that discover APIs on their own can also find us through the API catalog, the OpenAPI spec and llms.txt.
What it looks like
I installed the plugin and typed plain English. Nobody told the agent which service to use.
“Geocode 350 5th Ave, New York and show which service you used”
It picked Geocoder.ca for a US address and came back with the Empire State Building: 40.748369, -73.984853, ZIP+4 10118-0691, time zone and area codes, confidence 1.
“Geocode 751 FAIR OKS AVENUE PASADNA CA” — two typos, no direction, no ZIP:
| Input | Returned |
| FAIR OKS AVENUE | N Fair Oaks Ave |
| PASADNA | Pasadena |
| (no ZIP) | 91103-3069 |
Result: 751 N Fair Oaks Ave, Pasadena, CA 91103-3069, 34.158874, -118.151053, confidence 1. The added N is the important part: Pasadena has both North and South Fair Oaks, and 751 is on the north side. Because the skill tells the agent to ask for standard=1, the cleaned components come back as separate fields, ready to store.
What the agent learns from the skill
- Always request JSON (
geoit=XML&json=1); every value comes back as a string.
- Confidence 0.8 or higher is reliable; between 0.5 and 0.8, show the match to the user first.
- Keep the
more field: it holds unit numbers and PO boxes the geocoder didn't use.
- Include the province or state, or ambiguous names can land in the wrong country.
- What each error code means (006 throttled, 008 no results, 101 ambiguous…) and what to do about it.
- Don't loop thousands of addresses over the free port; use batch or a plan.
- Geocoder.ca results may be stored permanently and shown on any map, so no cache-expiry logic is needed.
Get it at github.com/geocode-xyz/geolytica-skills, and get a token at geocoder.ca (free non-commercial tier; plans at geocoder.ca/pricing). Pull requests and feedback welcome.
Enjoy!