Skip to content

Commit b10721f

Browse files
Update README.md
1 parent 9feda79 commit b10721f

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
## Features
1010

1111
- Encode `CLLocationCoordinate2D` values into geohash strings
12-
- Get adjacent geohashes in the four cardinal directions
13-
- Fetch all 8 neighboring geohashes
12+
- Get adjacent geohashes in the four cardinal directions, including boundary wraparound
13+
- Fetch all 8 neighboring geohashes, including boundary wraparound
1414
- Generate the geohashes that cover a map region
1515
- Use strongly typed fixed-length geohashes for common lengths
1616
- Use the same coordinate API on Linux without depending on `CoreLocation`
@@ -86,6 +86,16 @@ print(neighbors.southWest) // "u4pruydqquu"
8686
print(neighbors.allNeighbors)
8787
```
8888

89+
Boundary adjacent cells wrap deterministically instead of failing:
90+
91+
```swift
92+
Geohash.adjacent(hash: "zzzzzz", direction: .east)
93+
// "bpbpbp"
94+
95+
Geohash.adjacent(hash: "000000", direction: .west)
96+
// "pbpbpb"
97+
```
98+
8999
### Cover a region with geohashes
90100

91101
```swift

0 commit comments

Comments
 (0)