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

Reverse Geocode To Nearest Road #406

Closed
T-T-P opened this issue Apr 12, 2019 · 3 comments
Closed

Reverse Geocode To Nearest Road #406

T-T-P opened this issue Apr 12, 2019 · 3 comments

Comments

@T-T-P
Copy link

T-T-P commented Apr 12, 2019

Is there a way of excluding certain results from a reverse geocode request. For example could I remove buildings so that Photon only returns the nearest road to the latitude / longitude? If this isn't possible could I request as a new feature please.

@simonpoole
Copy link
Contributor

There currently isn't a documented way to do this (but potentially an undocumented way that I would need to test first to see if it actually works).

In any case while filtering would clearly be possible, reverse coding to ways will suffer from the issue mentioned in #357

@T-T-P
Copy link
Author

T-T-P commented Apr 23, 2019

@simonpoole Thank you for your response, would it be possible for you to share the undocumented method please? I would be happy to run some tests on the Photon instance I have set up to see if I can get something working?

In terms of the issue mentioned in #357 is "Multi Location Per Document" something that any contributors are looking into at present?

@lonvia
Copy link
Collaborator

lonvia commented May 17, 2020

This works these days with the mildy obscure parameter query_string_filter=osm_key:highway. The parameter allows you to set a filter, which we here restrict to OSM objects of type highway. You'd still get footways with that but no more buildings or addresses. For example:

http://photon.komoot.de/reverse?lat=52.9112327&lon=-1.4786067&query_string_filter=osm_key:highway

Issue #357 still applies.

@lonvia lonvia closed this as completed May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants