Skip to content

Commit

Permalink
Merge pull request #5 from michael-groble/public-bit-initializer
Browse files Browse the repository at this point in the history
add public bit initializer
  • Loading branch information
michael-groble authored Jan 9, 2017
2 parents ac0b2e1 + a1907aa commit f221f32
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/Geohash/GeohashBits.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ public struct GeohashBits {
self.fromString = fromString
}

public init(bits: UInt64, precision: UInt8) throws {
try self.init(bits: bits, precision: precision, fromString: false)
}

public init(location: Location, bitPrecision: UInt8) throws {
try self.init(location: location, precision: bitPrecision, fromString: false)
}
Expand Down

0 comments on commit f221f32

Please sign in to comment.