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

No results if 'country' is specified in the query #4918

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

No results if 'country' is specified in the query #4918

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

Comments

@openstreetmap-trac
Copy link

Reporter: zeenix[at]gmail.com
[Submitted to the original trac issue database at 4.33pm, Thursday, 25th July 2013]

The following query returns empty results:

http://nominatim.openstreetmap.org/search?street=Old+Palace+Road&postalcode=GU2+7UP&country=United+Kingdom&format=json

However if you remove 'country=United+Kingdom&' part from it, it correctly returns 1 result:

http://nominatim.openstreetmap.org/search?street=Old+Palace+Road&postalcode=GU2+7UP&format=json

@openstreetmap-trac
Copy link
Author

Author: twain
[Added to the original trac issue at 1.44am, Friday, 26th July 2013]

Please see the documentation:

q=
Query string to search for.

Alternatively can be entered as:
street=
city=
county=
state=
country=
postalcode=
(experimental) Alternative query string format for structured requests. Structured requests are faster and require less server resources. DO NOT COMBINE WITH q= PARAMETER.

If you want to use country with q= the only option is countrycode=

@openstreetmap-trac
Copy link
Author

Author: zeenix[at]gmail.com
[Added to the original trac issue at 1.58am, Friday, 26th July 2013]

Actually, you want to read the query again. I'm not using 'q' option at all here.

@openstreetmap-trac
Copy link
Author

Author: zeenix[at]gmail.com
[Added to the original trac issue at 1.59am, Friday, 26th July 2013]

FWIW, I had a chat with lonvia about this on IRC and she told me that its a bug so I filed it here.

@openstreetmap-trac
Copy link
Author

Author: twain
[Added to the original trac issue at 3.32am, Friday, 26th July 2013]

Sorry - no idea how I missread it so badly!

@openstreetmap-trac
Copy link
Author

Author: zeenix[at]gmail.com
[Added to the original trac issue at 12.47pm, Friday, 26th July 2013]

No worries, I make such mistakes all the time. :)

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 6.19pm, Tuesday, 17th September 2013]

Fixed in [https://github.com/twain47/Nominatim/commit/008407c2f7fa03f234fea0b2d2dae7867fba3948 008407c2f7].

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