What is logged
Every request the API answers can be written to a query log as one structured event. The log is how the service learns what people look for and cannot find, which contexts name places the data does not have, and how close each customer runs to the rate they bought. It is anonymous by construction: the event has no field for an IP address, a key, the text of a query or a precise coordinate, so nothing downstream of it can leak what was never written.
What one event holds
| Field | Holds |
|---|---|
| time | The minute, and the second within it — enough to reconstruct a per-second rate, since throughput is what is sold. |
| endpoint | Which route: geocode, route, compat/google, mcp… |
| tenant | The account the key belongs to: a customer, never a person. Not the key. |
| product | The product whose bucket the request drew on. |
| refused | For a refusal, why: product (the plan does not include it) or throughput (the bucket was empty). |
| status, latency, weight | The HTTP status, the server time in microseconds, and the request's relative cost to serve — recorded for capacity planning, never charged. |
| tokens | The query as the index read it, with every token that contains a digit replaced by #. See below. |
| context | The text after the query's last comma, normalised. |
| cells | The request's point and the top result's position, each as the level-12 cell it falls in — about 2 km, a neighbourhood, never a building. |
| outcome | How many results; the match mode; whether the top rank was tied; whether the context named something known, and whether the answer fell back without it; the top result's confidence; which routing engine answered. |
Routes that describe their answer — geocoding, autocomplete, reverse, nearby, postcodes, routes, matrices, isochrones, stops, departures, locate, and the compatibility shapes — fill in what applies to them. Every other request is recorded as a bare event: route, tenant, product, status and time.
How a query becomes tokens
The text before the last comma is normalised the way the index reads it — lower case, accents folded, punctuation dropped, abbreviations expanded — and split into tokens. Every token that contains a digit is then replaced by#, whatever it was: a house number, a phone number, a licence plate, a flat number. For a geocode ofAv. Insurgentes Sur 1602, 03940 the event holds:
"tokens": ["avenida", "insurgentes", "sur", "#"],
"context": "03940"The context is normalised but not masked. A postcode, city or region sent after the last comma is recorded as sent — as the example shows — because contexts that resolve to nothing are exactly how the service finds the gaps in its data. The street number is gone; the postcode is not. If you would rather a postcode were not kept, the only way is not to send it — at a cost in accuracy, asgetting better accuracy measures.
Feedback: the one event you choose to send
The log has no click data: it never learns which result a user picked. POST /v1/feedback is how a caller who wants the ranking to learn from its users says so, one selection at a time. Nothing is recorded unless you send it, and what it records goes into the same anonymous log as every other event, written the same way:
| You send | The log keeps |
|---|---|
q, the text that produced the list | Its tokens, every token with a digit replaced by #; the text after its last comma, normalised, as the context. |
selected_rank | The 1-based rank the user chose. |
results | How many results the list showed. |
at, the chosen result's position | Its level-12 cell, about 2 km. |
Plus the tenant, the product and the time, as on any event. So a selection ofAvenida Insurgentes Sur 1602, 03940 is kept as avenida insurgentes sur #, the context03940, a rank and a neighbourhood. As with every query, a postcode sent as context is kept: leaveq out if you would rather not send it. Where the operator runs no query log, the answer is the same{"recorded": true} and nothing is written. See feedback and accuracy bands.
What is never recorded
- IP addresses. The event has no field for one.
- Keys. Not the key, not its prefix: the tenant — your account — is what usage is attributed to.
- The text of a query. Only the tokens above, digits masked.
- A precise position. Points are kept only as the level-12 cell they fall in, about 2 km.
- Request bodies, other than a feedback selection, recorded as above. The Wi-Fi and cell ids a device saw are not recorded — a locate is kept as the cell of its fix and the number of beacons used. A map-matching trace, a batch file's rows and a postcode lookup's code are not in the log either.
- What an agent asked. An MCP request is one bare event for the endpoint
mcp, without the tool's name or arguments.
What analytics can show
The log is read in aggregate: requests, errors and latency per route; the capacity each customer used and the busiest second each reached, per product; the most searched token strings and how often they found nothing; the contexts that resolved to nothing; and where demand is, by level-8 cell, about 40 km.
Anything seen from fewer than five distinct accounts is left out — a token string, a context or a cell that only one or two customers sent never appears in an analysis, however often they sent it. Five is the default threshold, k, of the analysis itself.
It never slows a request
Recording cannot block or fail a request. Events go into a bounded queue that one writer drains; when the queue is full, the event is dropped and counted rather than making a request wait. /v1/healthreports query_log_dropped and query_log_flush_failures, so a gap in the log is visible rather than silent.
What else is stored
- API keys are stored only as a SHA-256 of the whole key, with the visible prefix (
sk_live_8Kx2Qm1F) kept so you can tell keys apart. The secret itself is not stored anywhere, which is why it is shown once. See authentication. - Batch jobs keep the file you uploaded, in full, and every part of its results — a job has to be able to resume on another pod, and its results have to be collectable. They are kept until you
DELETEthe job; there is no expiry. Deleting removes the input and every result part, and the job's record — id, state, counts, times — stays in your list. See batch jobs. - Operator feeds — traffic and GTFS-Realtime — live only in the memory of the pod that received them, until a
DELETE, a newer feed or that pod restarting. Seeoperator feeds.
curl -X DELETE -H "Authorization: Bearer $GEO_API_KEY" \
"https://api.oslew.com/v1/batch/$JOB_ID"