Skip to content

Commit 3d8eea3

Browse files
Merge pull request #3 from michael-groble/fix-location-access
Fix property access
2 parents 3ca391a + 99eeb1e commit 3d8eea3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Sources/Geohash/GeohashBits.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ public enum GeohashError : Error {
1414
}
1515

1616
public struct GeohashBits {
17-
let bits : UInt64
18-
let precision : UInt8
17+
public let bits : UInt64
18+
public let precision : UInt8
1919
let fromString : Bool
2020

2121
init(bits: UInt64, precision: UInt8, fromString: Bool) throws {

Sources/Geohash/Location.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ public class Location {
1111
static let radiansPerDegree = Double.pi / 180.0
1212
static let earthDiameterMeters = 2.0 * 6_371_000.0
1313

14-
let longitude: Double
15-
let latitude: Double
14+
public let longitude: Double
15+
public let latitude: Double
1616

1717
public init(longitude lon: Double, latitude lat: Double) {
1818
self.longitude = lon

0 commit comments

Comments
 (0)