Feedback and accuracy bands
Two small routes on the address product. One sends a signal in: which result a user actually picked. The other sends one out: how accurate the service measured itself to be, on addresses it had never seen.
Telling the service which result was picked
The query log never records what a user clicked, by design. POST /v1/feedback is how a caller opts in: after a user picks a row from a geocode or autocomplete list, send its rank. It is the label the reranker can learn from, once there is enough of it.
curl -X POST "https://api.oslew.com/v1/feedback" \
-H "Authorization: Bearer $GEO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"q":"museo soumaya","selected_rank":1,"results":3,"at":"19.4406,-99.2047"}'from oslew import Client
# The key is read from GEO_API_KEY.
client = Client(base_url="https://api.oslew.com")
answer = client.feedback(
{
"q": "museo soumaya",
"selected_rank": 1,
"results": 3,
"at": "19.4406,-99.2047",
},
)import { Client } from "@oslew/client";
// The key is read from GEO_API_KEY.
const client = new Client({ baseUrl: "https://api.oslew.com" });
const answer = await client.feedback({
q: "museo soumaya",
selected_rank: 1,
results: 3,
at: "19.4406,-99.2047",
});HTTP/1.1 200 OK
content-type: application/json
ratelimit-limit: 100
ratelimit-remaining: 293
ratelimit-reset: 1
{
"recorded": true
}A real response, captured from the service at commit b8f4bde-dirty. Timing fields such as took_us differ on every call.
| Field | Is |
|---|---|
selected_rank | Required. The 1-based position of the row the user picked. 0 is refused with 400. |
q | The text that produced the list. Text after the last comma is read as context, as in a geocode. |
context | Context sent separately, when your form had it in its own field. |
results | How many rows the list showed. |
at | lat,lon of the picked result. |
What is kept
- The query's words with every digit redacted, so a house number or a phone number is not kept.
- The picked position as a level-12 cell, about 2 km across, never the coordinates you sent.
- The rank, the number of rows shown, and the key's tenant, as on every query-log entry.
It goes into the same query log as every other request, under the same retention, and only where the deployment keeps a query log at all. The answer is {"recorded": true} either way, because the request was accepted. What the query log holds, and for how long: what is logged.
from oslew import Client
client = Client(base_url="https://api.oslew.com")
answer = client.geocode(q, limit=5)
picked = 2 # the row the user chose, 1-based
row = answer["results"][picked - 1]
client.feedback({"q": q, "selected_rank": picked, "results": len(answer["results"]),
"at": f'{row["lat"]},{row["lon"]}'})import { Client } from "@oslew/client";
const client = new Client({ baseUrl: "https://api.oslew.com" });
const answer = await client.geocode(q, { limit: 5 });
const picked = 2; // the row the user chose, 1-based
const row = answer.results[picked - 1];
await client.feedback({ q, selected_rank: picked, results: answer.results.length, at: `${row.lat},${row.lon}` });The accuracy bands
GET /v1/sla publishes how far the service's answers landed from the truth on hold-out sets: real addresses and places withheld from what it searched. They are measurements of this release, not a promise about yours.
curl "https://api.oslew.com/v1/sla" \
-H "Authorization: Bearer $GEO_API_KEY"from oslew import Client
# The key is read from GEO_API_KEY.
client = Client(base_url="https://api.oslew.com")
answer = client.sla()import { Client } from "@oslew/client";
// The key is read from GEO_API_KEY.
const client = new Client({ baseUrl: "https://api.oslew.com" });
const answer = await client.sla();HTTP/1.1 200 OK
content-type: application/json
ratelimit-limit: 100
ratelimit-remaining: 292
ratelimit-reset: 1
{
"epoch": 30,
"release": "2026-08-19.0",
"address_correct_m": 250,
"holdout": [
{
"context": "city",
"within_10_m": 0.035,
"within_250_m": 0.395,
"median_m": 673,
"note": "numbered address hold-out, city context"
},
{
"context": "postcode",
"within_10_m": 0.061,
"within_250_m": 0.732,
"median_m": 93,
"note": "numbered address hold-out, postcode context"
}
],
"places_holdout": [
{
"context": "unique+context",
"within_10_m": 0.99,
"within_250_m": 0.99,
"median_m": 0,
"note": "places TABLE All/full/exact/context — Laplace ~0.992"
},
{
"context": "fuzzy+context",
"within_10_m": 0.99,
"within_250_m": 0.99,
"median_m": 0,
"note": "places TABLE Fuzzy/full/exact/context — Laplace ~0.995"
},
{
"context": "partial+context",
"within_10_m": 0.8,
"within_250_m": 0.8,
"median_m": 0,
"note": "places TABLE Partial — Laplace ~0.80; agents should ask"
}
],
"places_scoreboard": {
"unique_top1": 1,
"typo_top1": 0.956,
"alternate_lang_top1": 0.943,
"note": "upper bound: probes spelled as the corpus spells them"
},
"recalibrate": "cargo run -p geo-bench --bin calibrate_addresses -- <holdout.csv>",
"fit_rerank": "cargo run -p geo-bench --bin fit_rerank -- <holdout.csv>",
"fit_feedback": "cargo run -p geo-bench --bin fit_feedback -- <query-log.ndjson>",
"models": {
"segmenter": "geo_text::segment — peel house#/postcode/country before the FST; exposed as geocode.parse",
"rerank_weights": "geo_index::rerank_active_weights — priors, or GEO_RERANK_WEIGHTS=… at serve time",
"margin": "decision::MARGIN = 0.12 — act / ask / refuse",
"category_intent": "geo_text::category_intent — nearby?q= → category token",
"conflation": "geo_build::conflate::match_score — Jaccard + trigram + distance at build",
"note": "Models sit around the FST (parse, refuse, learn from commits), not replace it."
}
}A real response, captured from the service at commit b8f4bde-dirty. Timing fields such as took_us differ on every call.
holdout: numbered addresses, once with a city as context and once with a postcode. The share within 10 m and within 250 m, and the median error. A postcode takes the median from 673 m to 93 m, which is why every guide asks for one.places_holdoutandplaces_scoreboard: how often a place is found at the top, spelled exactly, misspelt, or in another language. The scoreboard probes are spelled as the data spells them, so these are upper bounds.address_correct_m: the distance under which an address answer is counted correct, 250 m.
The hold-outs are Mexico City addresses, because that is where the address data is (seecoverage). How to read them, and how to measure on your own addresses:getting better accuracy.
Endpoints
/v1/feedbackaddressRecord that a caller selected a geocode or autocomplete result. The anonymous query log has no click labels; this is the opt-in signal for traffic-learning the reranker. Digits in q are redacted; at is stored as a ~2 km cell.
/v1/slaaddressPublished hold-out accuracy bands and places scoreboard headlines: how far answers land from the truth, measured, not promised.