Skip to content

Commit f35b518

Browse files
committed
fix: docs
1 parent 2ad2164 commit f35b518

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ LOAD a5;
3737
### Basic Usage
3838

3939
```sql
40-
-- Get the A5 cell for a specific location (latitude, longitude, resolution)
40+
-- Get the A5 cell for a specific location (longitude, latitude, resolution)
4141
SELECT a5_lonlat_to_cell(-74.0060, 40.7128, 15) as nyc_cell; -- Times Square
4242
┌─────────────────────┐
4343
│ nyc_cell │
@@ -144,14 +144,14 @@ Visualizing that A5 cell shows:
144144

145145
### Core Functions
146146

147-
#### `a5_lonlat_to_cell(latitude, longitude, resolution) -> UBIGINT`
147+
#### `a5_lonlat_to_cell(longitude, latitude, resolution) -> UBIGINT`
148148

149149
Returns the A5 cell ID for given coordinates and resolution level.
150150

151151
**Parameters:**
152152

153-
- `latitude` (DOUBLE): Latitude in decimal degrees (-90 to 90)
154153
- `longitude` (DOUBLE): Longitude in decimal degrees (-180 to 180)
154+
- `latitude` (DOUBLE): Latitude in decimal degrees (-90 to 90)
155155
- `resolution` (INTEGER): Resolution level (0-30, where 0 is coarsest)
156156

157157
**Example:**
@@ -249,7 +249,7 @@ SELECT a5_cell_to_lonlat(207618739568) as center;
249249

250250
#### `a5_cell_to_boundary(cell_id, [closed_ring, [segments]]) -> DOUBLE[2][]`
251251

252-
Returns the boundary vertices of a cell as an array of [latitude, longitude] pairs.
252+
Returns the boundary vertices of a cell as an array of [longitude, latitude] pairs.
253253

254254
**Parameters:**
255255

0 commit comments

Comments
 (0)