Closed mihaicosareanu-bolt closed 4 years ago
Yes I agree this is not as expected.
This is caused by the same logic which changed the "match_type" to "fallback" in the geojson you posted above.
So if you're looking for an address and we didn't find one then we fall back to the street centroid.
At that time the filter isn't being honoured correctly.
Hey team!
I was using your awesome geocoding engine when I noticed something interesting. Let me tell you more about it.
Here's what I did :innocent:
https://pelias.github.io/compare/#/v1/search%3Ftext=Aleea%20Ilia%2057&layers=venue,address&focus.point.lat=44.4378&focus.point.lon=26.0245
Here's what I got :scream_cat:
Notice the "layer":"street" in the properties, although in the request I filtered only "venue" and "address" layers.
Here's what I was expecting :sparkles:
I was expecting am empty
features
array, or an array that doesn't contain entries with "layer":"street"Here's what I think could be improved :trophy:
Figure if there's a bug in filtering the results by layers.