mapbox / mapbox/mapbox-scenekit

Combine separate latitude, longitude arguments into CLLocationCoordinate2D

Open
#12 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Swift
Stars
232
Forks
50
PR merge metrics
No merged PRs in 30d

Description

This library separates latitude and longitude into separate arguments or properties in many places. There is a strong convention on Apple platforms of using CLLocationCoordinate2D or CLLocation whenever possible to represent geographic coordinate pairs.

Some of the antipatterns below would be addressed by #7:

https://github.com/mapbox/mapbox-scenekit/blob/1969fee0de7bc314098550c67bcd32d086ec289b/MapboxSceneKit/MapboxImageAPI.swift#L100
https://github.com/mapbox/mapbox-scenekit/blob/1969fee0de7bc314098550c67bcd32d086ec289b/MapboxSceneKit/Tile%20Fetching/MapboxHTTPAPI.swift#L47
https://github.com/mapbox/mapbox-scenekit/blob/1969fee0de7bc314098550c67bcd32d086ec289b/MapboxSceneKit/TerrainNode.swift#L16-L24

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 reviewing the cited locations in MapboxImageAPI.swift, Tile Fetching/MapboxHTTPAPI.swift, and TerrainNode.swift, then compare their scope with issue #7. Identify the separate latitude and longitude arguments or properties that remain in scope. Done means applicable geographic coordinate pairs use CLLocationCoordinate2D or CLLocation consistently without duplicating work covered by #7.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile-dev
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.