File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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"
8686print (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
You can’t perform that action at this time.
0 commit comments