uber / uber/h3-java

[Feature Req] Polyfill for multi level inclusion/exclusion

Open
#35 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
333
Forks
68
PR merge metrics
No merged PRs in 30d

Description

Curious if there is any plan to add polyfill support for more complex geofences that have inclusions within 'holes'

For instance in s2, inclusion/exclusion is determined by the number of geofences a point is contained by and therefore doesn't require an explicit 'holes' input in the api.

Snippet from s2 java comments:
/*

  • An S2Polygon is an S2Region object that represents a polygon. A polygon
  • consists of zero or more {@link S2Loop loops} representing "shells" and
  • "holes". All loops should be oriented CCW, i.e. the shell or hole is on the
  • left side of the loop. Loops may be specified in any order. A point is
  • defined to be inside the polygon if it is contained by an odd number of
  • loops.
    */

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No implementation file, test, or entry point is named. Start by reviewing the existing polyfill API and the S2Polygon inclusion rule described in the issue; done should mean that nested inclusions and exclusions are supported without requiring explicit holes.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend-api-design
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.