Skip to content

Commit

Permalink
Convert CLLocationCoordinate2D to Coordinate3D
Browse files Browse the repository at this point in the history
  • Loading branch information
trasch committed Sep 16, 2023
1 parent ec3a10e commit 03a4a1d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Sources/GISTools/GeoJson/Coordinate3D.swift
Original file line number Diff line number Diff line change
Expand Up @@ -470,4 +470,12 @@ extension CLLocation {

}

extension CLLocationCoordinate2D {

/// The receiver as a ``Coordinate3D``.
public var coordinate3D: Coordinate3D {
Coordinate3D(self)
}

}
#endif

0 comments on commit 03a4a1d

Please sign in to comment.