api
api copied to clipboard
boundary.country doesn't include dependencies
Using the 'boundary.country' filter on dependencies, such as boundary.country=PRI currently returns no results.
eg. the record for San Juan, Puerto Rico has a dependency property but no country property, so it's always excluded when using boundary.country filtering.
https://pelias.github.io/compare/#/v1/place?ids=whosonfirst%3Alocality%3A1126038493
I think we should treat "boundary.country" as if it were "boundary.ISO" (ie. include both countries and dependencies despite the name saying it's only countries).
Introducing a new filter called boundary.dependency and expecting users to know which one to use in which case sounds messy.
Thoughts?