1
- # geodesics
1
+ # vincenty
2
2
3
3
Solver for the inverse geodesic problem in Swift.
4
4
5
5
The inverse geodesic problem must be solved to compute the distance between two points on an oblate spheroid, or
6
6
ellipsoid in general. The generalization to ellipsoids, which are not oblate spheroids is not further considered here,
7
7
hence the term ellipsoid will be used synonymous with oblate spheroid.
8
8
9
- The distance between two points is also know as the
9
+ The distance between two points is also known as the
10
10
[ Vincenty distance] ( https://en.wikipedia.org/wiki/Vincenty's_formulae ) .
11
11
12
12
Here is an example to compute the distance between two points (the poles in this case) on the
@@ -15,7 +15,7 @@ Here is an example to compute the distance between two points (the poles in this
15
15
import geodesics
16
16
let d = try distance((lat: Double.pi / 2,lon: 0), (lat: -Double.pi / 2, lon: 0))
17
17
18
- and that it.
18
+ and that's it.
19
19
20
20
## Implementation Details
21
21
@@ -35,7 +35,7 @@ Convergence and the accuracy of the result can be controlled via two parameters.
35
35
By default the
36
36
[ WGS 84 ellipsoid] ( https://en.wikipedia.org/wiki/World_Geodetic_System )
37
37
is employed, but different parameters can be specified, e.g. for the
38
- [ GRS 80 ellipsoid] ( https://en.wikipedia.org/wiki/GRS_80 )
38
+ [ GRS 80 ellipsoid] ( https://en.wikipedia.org/wiki/GRS_80 ) .
39
39
40
40
try distance((lat: Double.pi / 2, lon: 0), (lat: -Double.pi / 2, lon: 0),
41
41
ellipsoid (a: 6378137.0, f: 1/298.257222100882711))
0 commit comments