sextant-calculator calculates the geographic position (latitude, longitude) on the Earth’s surface using a sextant measurement.
GPS jamming is a special form of radio jamming, i.e. the intentional interference with GPS signals. GPS jamming is commonly used by the military to prevent GPS-guided missiles to find their target. Consequently, it can be observed in conflict zones, as shown by the GPS jamming maps by gpsjam.org and flightradar24.com. Examples include GPS blocking in Israel, in North Korea and in the Baltic Sea. Especially in the Baltic Sea, GPS disruptions are a problem for airlines, causing them to stop flying to certain destinations as well as for navigation on (sailing) ships.
Since GPS jamming is threat to the safe operation of many widely-used services, a robust backup solution is needed. One approach is celestial navigation, i.e. using a sextant. The idea was proposed by John Hadley, Thomas Godfrey and Isaac Newton around the year 1731, so it can be called a battle-tested technology. With the help of a sextant, the angle of the sun relative to the horizon (or to a artificial horizon, a fluid-filled tube with bubble) is measured at culmination, i.e. at the time of the highest point of the sun, which is around noon. Together with the time of culmination from a sufficiently precise clock (a challenge back in the time), the position (latitude, longitude) can be calculated (see Calculation for details). This library aims to implement these tedious and error-prone calculations.
The accuracy of a position calculated by a sextant measurement can vary from a few kilometers/miles to a several dozen kilometers/miles, depending on the accuracy of the measurement. Therefore, sextant navigation is not suitable for close navigation (e.g. inside a city), but rather for long-distance navigation (e.g. on the open sea). A project aiming to improve the resilience of GPS in the baltic sea is the R-Mode Baltic project terrestrial positioning system, which "allows positioning even in times when the Global Navigation Satellite Systems (GNSS) fail."