Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow returning Geonames results from /reverse #1045

Merged
merged 2 commits into from
Oct 24, 2017

Conversation

orangejulius
Copy link
Member

@orangejulius orangejulius commented Oct 23, 2017

While the eventual goal for our /reverse endpoint is to only allow returning administrative results and addresses, the /nearby endpoint that would compliment it and allow users to see venues near a given coordinate is not yet production ready.

Until it is we want to be able to return Geonames venues, especially since we still can return OSM venues. However, we were returning an incorrect error message that prevented this.

This PR makes that error message only appear when a user tries to return coarse Geonames results from /reverse, which is no longer possible since there aren't really many geometries in Geonames at all.

It also points users who do see the error to our new Geonames removal issue for more context.

Fixes #930
Connects pelias/acceptance-tests#447

This error message is updated to mention the coarse-reverse only nature
of Geonames support removal. It also links to the
[tracking ticket](pelias/acceptance-tests#447)
for Geonames removal which should help provide more context to users.
@orangejulius orangejulius self-assigned this Oct 23, 2017
@ghost ghost added the in progress label Oct 23, 2017
Copy link
Contributor

@dianashk dianashk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Nice tests.

@orangejulius orangejulius merged commit 761a04e into master Oct 24, 2017
@ghost ghost removed the in progress label Oct 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants