NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Nominatim seems to only provide search matches when the address is a perfect match. What can be done to fallback to the road at least?

From my testing anything that includes a suite # will not return any results.

asked 20 Jun '12, 17:21

Norm1's gravatar image

accept rate: 0%

edited 31 Jan '13, 17:50

SimonPoole's gravatar image

SimonPoole ♦

Could you perhaps give an example of something that doesn't work, and what it should find?

(20 Jun '12, 17:37) SomeoneElse ♦

Yes, this works: 1870 broadway, new york city, ny

This does not: 1870 broadway Suite #123, new york city, ny

Or 1870 broadway Suite 123, new york city, ny

Or anything with Suite in the address

(20 Jun '12, 17:50) Norm1

Nominatim currently expects that all elements of your query to appear in the address. There are a number of feature requests with respect to this but they are still on the TODO list.

If you run your own instance of Nominatim, then the best quick-and-dirty fix for this problem at the moment is a wrapper script for your queries. If a query returns no results, remove part of the address and send the query again to Nominatim. Repeat until you get a result.

permanent link

answered 21 Jun '12, 09:35

lonvia's gravatar image

accept rate: 40%

Thanks for the suggestion.

I think I might just do that, in my wrapper scrub the address with some regex and remove anything with Unit, Suite, etc ...

On a side note, is there any documentation that explains the method of madness with search.php?

(22 Jun '12, 19:50) Norm1

There is no documentation for how the search works. Sorry.

(25 Jun '12, 17:04) lonvia

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 20 Jun '12, 17:21

question was seen: 4,100 times

last updated: 31 Jan '13, 17:50

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum