api icon indicating copy to clipboard operation
api copied to clipboard

boundary.country doesn't include dependencies

Open missinglink opened this issue 4 years ago • 1 comments

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.

image https://pelias.github.io/compare/#/v1/place?ids=whosonfirst%3Alocality%3A1126038493

missinglink avatar Mar 04 '21 03:03 missinglink

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?

missinglink avatar Mar 04 '21 04:03 missinglink