Overview
Use cases
An API page tells you what one endpoint answers. A use case is the other way round: it starts from a job someone is actually trying to get done — a customer file full of misspelt addresses, a checkout form that loses orders to typos, forty drivers and four hundred drops — and works out which calls to make, in what order, and what to do when an answer is not good enough to act on.
What each workflow covers
Every page below follows the same discipline. It names the decision points, because that is where location data goes wrong in production: accepting an answer that matched only a locality, routing to a coordinate that is the centre of a postcode, trusting a travel time that assumed an empty road. It says which plan the workflow needs and why, in terms of request rate rather than volume, since no oslew plan has a monthly allowance to budget against. And it ends with where the workflow falls short today, stated plainly, because the limits of a tool are part of choosing it.
Each workflow has a runnable counterpart in the examples on docs.oslew.com, written in Python and TypeScript against the live API. The pages here explain the reasoning; the examples are the code.
Choosing where to start
If the addresses already exist — a CRM export, an order history, a supplier list — start with the file-cleaning workflow, which uses batch geocoding and validation and sorts every row into accept, review or reject. If addresses are being typed by people right now, start with the checkout form, which combines autocomplete while typing with validation on submit. If the problem is getting things or people from one place to another, the delivery, fleet and commute workflows cover the routing side, from visit order to cleaning up recorded GPS traces.
Building an agent rather than an application? The same APIs are exposed as tools over the Model Context Protocol; MCP server for geocoding, routing and maps covers what an agent sees and how it should read an answer before acting on it.
- Cleaning customer address data
Export, batch geocode, triage each row on precision, confidence and ties, re-check the review pile with validation, and keep provenance with what you store.
- Address autocomplete and validation in a checkout form
Suggestions while the shopper types, a verdict when they submit, and a narrow proxy in between — with a clear action for each verdict and a way to keep the sale.
- Building a store locator
Geocode the visitor, ask when their words are ambiguous, and order stores by one matrix of travel times — with an honest fallback where no time exists.
- Last-mile delivery route planning
A depot-to-door workflow: triage geocodes by precision and ties, order one van’s stops, route every leg, and hand multi-van days to your own solver.
- Cleaning fleet GPS data with map matching
From a file of tracker fixes to a per-trip table of road kilometres, gaps and minutes over the posted limit, with what is unknown reported as unknown.
- Commute-time maps
A geocode, three isochrone bands, a small server that proxies the basemap, and MapLibre layers beneath the street labels — plus how to caption the result honestly.
- Enriching coordinates with location data
A table of points becomes municipality, region code, time zone, local time, elevation and nearest-road columns, paced to the plan’s rate and split by licence for storage.
- Port call detection from AIS data
A recipe for port-call tables and entry-and-exit reports: stops from tracks, countries from maritime dwells, names from reverse geocoding and volume from density.