How Mailwoman locates an address
An address line can identify a place without identifying a building point. Mailwoman first parsesaddress parsingThe process of decomposing a free-text postal address string into structured components — house number, street name, locality, region, postcode, and country — so a geocoder can resolve them to coordinates. the line into components. A geographic resolverresolverThe component that converts parsed address components (locality, region, postcode) into coordinates by looking them up in the gazetteer. The resolver ranks candidates by name match, population, and proximity, and returns the best-matching place with its centroid or polygon. can then match those components to place records and, when suitable data exists, to an address-point or streetstreetThe named linear feature along which house numbers are ordered. Decomposes into a name plus street affixes; one of the Tier 2 fine labels. record. The returned coordinate describes the selected geographic evidence. Its position on a map doesn't by itself measure its error against the real destination.
Place-name lookup
The parser can labelcomponent tagOne of the 25 labels in Mailwoman's address schema — street, locality, region, postcode, house_number, unit, po_box, country, venue, intersection, and others. Each parsed span carries exactly one component tag. text as locality, region, or postcode without opening a geographic database. A resolverresolverThe component that converts parsed address components (locality, region, postcode) into coordinates by looking them up in the gazetteer. The resolver ranks candidates by name match, population, and proximity, and returns the best-matching place with its centroid or polygon. asks a place index which records identify those names. It can use a supplied countrycountryThe top-level address component (an ISO country). Closed-vocabulary, so it is best handled by a deterministic matcher feeding a proposal rather than a retrained model head., a postcodepostcodeThe country-specific postcode (US ZIP, French code postal, etc.). Mailwoman handles postcode parsing entirely by rule classifier — a regex problem, not an ML one., a parent place, or a caller-supplied proximity bias to scope and rank the candidates. The parsing explanation describes why the parser's optional place-name matcher is a separate signal from this lookup.
The published geocodeAddress path supplies the parsed tree and options to resolver.resolveTree. The resolverresolverThe component that converts parsed address components (locality, region, postcode) into coordinates by looking them up in the gazetteer. The resolver ranks candidates by name match, population, and proximity, and returns the best-matching place with its centroid or polygon. can attach a place identity, coordinates, alternatives, and ancestry to nodes. The geocode extractor then projects that resolved tree into one GeocodeResult. Its candidates array retains the selected place and the places each resolved spanspanA contiguous range of characters or tokens in the input string, tagged with an address component type (street, locality, postcode, etc.). Parsed addresses are represented as collections of spans, possibly nested in a tree. passed over. A candidate's ranking score compares possibilities within that answer. It isn't a measure of distance from a verified address.
The place index and the address-point layerslayerOne transformer block — attention plus a feed-forward network, with normalization and residual connections — applied to every position. Stacking layers lets the model build up richer representations; Mailwoman's encoder has 6. answer different questions. A gazetteergazetteerA geographical index that maps place names and postcodes to real-world coordinates. Mailwoman uses a custom-built Who's On First (WOF) SQLite database as its gazetteer — the 'atlas' half of the grammar/atlas architecture. record can identify a citylocalityThe city / town / settlement component of an address: a populated place sitting between region and neighborhood in the hierarchy. or administrative area and supply a representative point. An address-point row can associate a streetstreetThe named linear feature along which house numbers are ordered. Decomposes into a name plus street affixes; one of the Tier 2 fine labels. and number with its own recorded coordinate. An interpolated point uses a rule and a streetstreetThe named linear feature along which house numbers are ordered. Decomposes into a name plus street affixes; one of the Tier 2 fine labels. range to estimate a number's position. The data and locales reference identifies the published candidate, point-of-interest, French, and United States bundlesevidence bundleThe pair of retrieval-augmented input channels (street-type + locality-surface) that feed lexicon membership as soft per-token evidence alongside the text. Shipped in 6.7.0; trained natively from step 0 in the from-scratch base line. and the layerslayerOne transformer block — attention plus a feed-forward network, with normalization and residual connections — applied to every position. Stacking layers lets the model build up richer representations; Mailwoman's encoder has 6. they declare. A bundleevidence bundleThe pair of retrieval-augmented input channels (street-type + locality-surface) that feed lexicon membership as soft per-token evidence alongside the text. Shipped in 6.7.0; trained natively from step 0 in the from-scratch base line. declaration doesn't establish that the data is installed or that a particular address has a matching row.
Coordinate selection and source
The published result extractor prefers an address-point match, then an interpolated point, then a streetstreetThe named linear feature along which house numbers are ordered. Decomposes into a name plus street affixes; one of the Tier 2 fine labels. point, before falling back to a resolved administrative or postcodepostcodeThe country-specific postcode (US ZIP, French code postal, etc.). Mailwoman handles postcode parsing entirely by rule classifier — a regex problem, not an ML one. place. A matched venuevenueA named, non-address place — a business, building, park, or stadium. Mailwoman's free-text point-of-interest component, added as a Tier 2 fine label. can supply another point. resolution_tier records the mechanism that supplied the returned lat and lon. A parsed house_number can remain in the result when the coordinate comes from a postcodepostcodeThe country-specific postcode (US ZIP, French code postal, etc.). Mailwoman handles postcode parsing entirely by rule classifier — a regex problem, not an ML one. or localitylocalityThe city / town / settlement component of an address: a populated place sitting between region and neighborhood in the hierarchy..
A source point is the coordinate stored on a matched place or address record. The returned coordinate can be that recorded point, a computed interpolationinterpolationA geocoding technique that estimates a coordinate along a street segment based on the house number range. Used as the middle tier of Mailwoman's geocode cascade when exact address-point data is unavailable., a streetstreetThe named linear feature along which house numbers are ordered. Decomposes into a name plus street affixes; one of the Tier 2 fine labels. or postcodepostcodeThe country-specific postcode (US ZIP, French code postal, etc.). Mailwoman handles postcode parsing entirely by rule classifier — a regex problem, not an ML one. point, or a representative administrative point. coordinate_source can preserve a matched address row's source and release, when that row has a source stamp. The published landmark branch can also record its landmark source on a venuevenueA named, non-address place — a business, building, park, or stadium. Mailwoman's free-text point-of-interest component, added as a Tier 2 fine label. result. epistemic_status states the claim supported by the selected evidence: for example, an authority-designated row and an observed row can both answer at address_point grain while carrying different statuses. The result schema lists the fields and tiers.
An uncertainty_m value reports a radius supplied by the selected mechanism when available. The radius describes the mechanism, as opposed to an observed error for this input. A null radius means the mechanism reported none. An evaluationevalRunning the model against a held-out golden dataset and computing per-component F1, exact-match, calibration, and resolved-coordinate error. measures the selected point's accuracy, whatever the number of decimal places in lat and lon. Accuracy requires a versioned evaluationevalRunning the model against a held-out golden dataset and computing per-component F1, exact-match, calibration, and resolved-coordinate error. against independently known positions for the relevant input population and data installation.
Reverse geocoding
Forward geocodinggeocodingThe process of converting an address into geographic coordinates (latitude and longitude). Mailwoman geocodes in a multi-tier cascade: exact address-point match → street interpolation → locality centroid. Each tier is progressively coarser but more widely available. starts from text and chooses a point. Reverse geocodinggeocodingThe process of converting an address into geographic coordinates (latitude and longitude). Mailwoman geocodes in a multi-tier cascade: exact address-point match → street interpolation → locality centroid. Each tier is progressively coarser but more widely available. starts from a supplied coordinate and asks which administrative place contains it. The published WOFReverseGeocoder searches bounding boxes in a WOFWOF (Who's On First). An open-source gazetteer of places maintained by Mapzen/whosonfirst. Mailwoman builds a custom SQLite database from WOF GeoJSON repos, extended with postcode data, importance scores, and coincident-role relations. administrative database. When a polygon sidecar is available, it checks candidate polygons against the point. A bounding-box hit can include points outside a place's polygon. If no polygon confirms a place, the resolverresolverThe component that converts parsed address components (locality, region, postcode) into coordinates by looking them up in the gazetteer. The resolver ranks candidates by name match, population, and proximity, and returns the best-matching place with its centroid or polygon. can use its nearest-centroid fallback and report containment: "approximate".
The reverse result reports a place hierarchy and whether the selected containment was polygon-confirmed or approximate. That relation concerns the input point and administrative geometry. Whether a building or deliverable address exists at the point is a separate question. A finer boundary places the input coordinate as given, so an incorrect coordinate stays incorrect.
Unverified behavior in 11.0.0
The published 11.0.0 interfaces and bundleevidence bundleThe pair of retrieval-augmented input channels (street-type + locality-surface) that feed lexicon membership as soft per-token evidence alongside the text. Shipped in 6.7.0; trained natively from step 0 in the from-scratch base line. registry show which mechanisms are available. No complete forward or reverse call against 11.0.0 data was run for this page, so its place candidates, returned coordinates, containment results, and latency values are unverified. Geocode a file of addresses shows forward geocodes captured with local data builds newer than the 11.0.0 registry entries. The release status reports that exact-release coordinate-grade evidence is unknown from the available evaluationevalRunning the model against a held-out golden dataset and computing per-component F1, exact-match, calibration, and resolved-coordinate error. ledger. Confidence and ambiguity explains how to use a result's tier, source, alternatives, and unresolved state when deciding what evidence an application requires.