Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Nominatim requires UK postcode queries to have a 'space' in-between both parts of postcode. #2586

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 2 comments

Comments

@openstreetmap-trac
Copy link

Reporter: chris_debian
[Submitted to the original trac issue database at 10.18pm, Tuesday, 29th December 2009]

Hi, all.

OpenSatNav (.org) has started to use Nominatim as an optional 'search engine'. We (OSN) are finding that it works really well.

With UK postcodes, we find that look-ups require a 'space' to be used between the first and second part of the postcode. Potentially, this could make the user think that postcode searches are failing, when in-fact they are just not been queried properly.

Can you confirm whether it is possible to permit searches without a 'space', or whether we need to try to find a work-around on the front-end?

Example:

a) User searches for postcode DL7 0SN

Result: Address identified.

b) User searches for postcode DL70SN

Result: Address not recognised.

OSN it tracking this bug, here:

http://www.opensatnav.org/issues/show/81

Many thanks,

Chris

(chris_debian)

@openstreetmap-trac
Copy link
Author

Author: twain
[Added to the original trac issue at 5.23pm, Monday, 11th January 2010]

Sort of fixed.

I was able to get the fallback code (that calculated an approximate location for a postcode not present in the data) to accept a postcode without a space. But this means it is using the fallback code even when it has an exact match. The result is hopefully usable - let me know if this is fixed 'enough'?

@openstreetmap-trac
Copy link
Author

Author: chris_debian
[Added to the original trac issue at 5.37pm, Monday, 11th January 2010]

Thanks, for the rapid fix, Brian. This works well with OpenSatNav.

Happy to close.

Chris.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant