Analysis updated 2026-07-17 · repo last pushed 2024-12-17
Correct compass readings in an iOS hiking or outdoor navigation app.
Build a marine or aviation navigation tool that converts magnetic north to true north.
Research or model geomagnetic field variations for a specific location and date.
| serhii-londar/geomagnetism | altuzar/sonicflow | collinkite/steamcontrollerkit | |
|---|---|---|---|
| Stars | 1 | 1 | 1 |
| Language | Swift | Swift | Swift |
| Last pushed | 2024-12-17 | — | — |
| Maintenance | Stale | — | — |
| Setup difficulty | easy | easy | moderate |
| Complexity | 2/5 | 2/5 | 3/5 |
| Audience | developer | general | developer |
Figures from each repo's GitHub metadata at analysis time.
Can be added as a Swift Package or by dropping a single source file into your project with no external dependencies.
Geomagnetism is a Swift toolkit that tells you the magnetic field characteristics for any spot on Earth. If you're building an iOS app and need to know things like magnetic declination (the difference between true north and magnetic north), field strength, or inclination at a given location, this library gives you those numbers. You create an object with a longitude and latitude, and optionally an altitude and date, then read off properties like declination. The idea is that compass needles don't point to true north everywhere, the gap varies depending on where you are and shifts slowly over time. This library models those variations so your app can correct for them. The main use case is navigation or mapping apps. If you're displaying a compass, routing hikers, or working on any feature where a user's phone compass needs to align with real-world directions, you need magnetic declination to convert between what the phone's magnetometer sees and actual geographic north. A pilot app, a hiking tracker, or a marine navigation tool would all need this kind of correction. Researchers or hobbyists working with geomagnetic data might also find it useful. The README doesn't go into detail about the underlying model, accuracy, or which magnetic model it uses (such as WMM or IGRF), so you'd need to check the source to understand how precise the calculations are and whether they'll stay valid over time. Installation is straightforward: you can pull it in as a Swift package or just drop the single source file into your project. It's a small, focused tool that does one thing, give you geomagnetic values for a coordinate, without any extra dependencies.
A Swift toolkit that calculates Earth's magnetic field values, like the difference between true north and magnetic north, for any location, date, and altitude, so apps can correct compass readings.
Mainly Swift. The stack also includes Swift.
Stale — no commits in 1-2 years (last push 2024-12-17).
The explanation does not mention a license, so the usage rights for this code are unknown, check the repository for license details before using it.
Setup difficulty is rated easy, with roughly 5min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.