A geocoder that says nothing instead of a wrong address
Ask a geocoder for a house number that does not exist and it answers a neighbour's. A program that reads no confidence stores that door as the address. One key of the server turns such answers into “not found”.
What goes wrong
Serbia, a number the street does not have:
$ gridpin serve rs.bin
$ curl 'http://127.0.0.1:8080/search?q=Kneza+Mihaila+999,+Beograd&format=jsonv2'
[{"display_name":"140 Kneza Mihaila, Nova Pazova, Sremski upravni okrug",
"importance":0.4, …}]
A door of the same street name in another town, 24 km from the centre of Belgrade. The low importance says so, but a Nominatim client rarely reads it.
The same request, refused
$ gridpin serve rs.bin --no-weak
$ curl 'http://127.0.0.1:8080/search?q=Kneza+Mihaila+999,+Beograd&format=jsonv2'
[]
$ curl 'http://127.0.0.1:8080/search?q=Kneza+Mihaila+10,+Beograd&format=jsonv2'
[{"display_name":"10 Kneza Mihaila, Stari Grad, Grad Beograd","importance":0.94, …}]
The client changes nothing: an empty list is what Nominatim answers for an address it does not know. The same holds on the Photon, Pelias, BAN, Census, Google and Mapbox paths and in a batch.
What is refused
- A weak answer: only the town was found, the confidence is low, or the street was corrected.
- The nearest door: the number in the answer is a neighbour's.
- A house, a number interpolated between two houses and a street asked without a number are answered as before.
What it costs
Some refused answers were right. On 1,800 United States addresses 54 of 270 weak answers and 33 of 85 nearest doors lay within 150 m of the truth. Engine 0.10.0, 24 November 2026.
New in 0.11.0. The function: documentation; all keys of the server: command reference; the confidence itself: does the address exist.
More
- An alternative to self-hosting Nominatim
- A local geocoding server, Nominatim-compatible
- Offline geocoding in Docker
- Your own geocoding server on the internet
- Offline maps in one compose file: base map, search and routing
- Self-host a geocoder without 128 GB of RAM
- All guides and countries
- Documentation