-
-
Notifications
You must be signed in to change notification settings - Fork 163
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: not working on custom layers #1678
Comments
Interesting, it seems that code is quite old and has a hard-coded list of layers which is causing this issue. What happens if you change your query to include one of those layers? |
All we get is the venue. I'm sorry, my description of the problem was incomplete.
Lines 41 to 45 in b3262b5
Line 8 in b3262b5
Then it works ! |
Thank you for your answers. We have made some code changes and will soon be able to submit a more complete PR than #1631 |
Describe the bug
Custom layers are incompatible with layer filters in reverse queries.
Steps to Reproduce
Pastebin/Screenshots
Pelias request :
.../v1/reverse?point.lat=43.538662&point.lon=1.460511&boundary.circle.radius=0.0001&size=10&layers=stop_area&sources=custom
CSV looks like :
Additional context
Autocomplete and search requests are fine.
We investigated and found that isCoarseReverse.js and isOnlyNonAdminLayers.js are experiencing some issues.
The list of non-coarse layers is hardcoded. Addition of our stop_area layer to the hardcoded list solved the issue.
We are novices to Pelias projects and require assistance in resolving it effectively. What is the approach to solving it in a generic manner?
The text was updated successfully, but these errors were encountered: