NOTICE: help.openstreetmap.org 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

Norm1
126458
accept rate: 0%

edited 31 Jan '13, 17:50

SimonPoole's gravatar image

SimonPoole ♦
44.7k13326701

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

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

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

lonvia
6.2k25789
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
1

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×689
×193
×1

question asked: 20 Jun '12, 17:21

question was seen: 4,008 times

last updated: 31 Jan '13, 17:50

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