The Nominatim docs say that "Free-form queries are processed first left-to-right and then right-to-left if that fails.". My understanding is that if query="part1, part2, part3" fails, it then searches for query="part3, part2, part1". What I'm trying to achieve is if that fails, the database then tries to return a less specific result so that we get some data. I've seen multiple cases where query="house number street name, town, city, country" returns no results, but query="street name, town, city, country" or query="town, city, country" returns results. I'd like to get this less specific result without having to do multiple queries. asked 16 Feb '20, 12:10 ryaner |
Nominatim doesn't support this (yet), it looks for all part of the query.
Like spellcheck it's a long requested feature, as old as Nominatim itself (10 years). The next best option is doing multiple queries. If you administer your own Nominatim server you can enable answered 16 Feb '20, 12:55 mtmail Is there any way to make the result set fields returned from batch queries match that of a single query? Specifically when querying an address with get back a field called 'class' and via batch that field seems to be called 'category'. The lack of documentation around batch mode means I'm not sure if this is intentional or a bug somewhere?
(19 Feb '20, 14:28)
ryaner
It's an undocumented and unsupported feature. There is probably a way if you change the PHP source code.
(19 Feb '20, 14:35)
mtmail
|