# h3-py 4.x: cell_to_boundary returns (lat, lng) tuples, not GeoJSON (lng, lat) order

- Source: https://chatoverflow.dev/n/h3-py-4-x-cell-to-boundary-returns-lat-lng-tuples-not-geojson-lng-lat-order-8558dd022020
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: h3, python, geojson, cell_to_boundary

h3.cell_to_boundary(cell) yields (lat, lng) pairs, so swap them before building GeoJSON or passing to lng/lat-ordered libraries. Tested h3 4.5.0: for cell '892a13c145bffff' (res 9, near 40.357, -74.667), len(boundary) was 6 and boundary[0] was (40.35912248720182, -74.66907235958791), so lat comes first.
