mapbox / mapbox/turf-swift

RBush Swift port

Open
#171 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Core feature improvement jira-sync-complete performance
Dominant language
Swift
Stars
271
Forks
65
PR merge metrics
No merged PRs in 30d

Description

For Performance purposes, we need to perform a quick search for geometries with given attributes. For example it is useful for LineString.intersections implementation. Spatial indexing would provide a performant option to do that.
We cannot rely on Apple's implementations because that won't work for non-apple platforms. So the easiest option so far is to provide swift port of existing Javascript implementation RBush.

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

Start by reading the LineString.intersections implementation discussion in pull request 167 and the referenced JavaScript RBush implementation. Determine the cross-platform Swift API and integration points needed for spatial indexing and attribute-based geometry searches. Done means a working Swift port that supports the requested performant queries across non-Apple platforms.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, swift
Domain
performance, search
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.