# turf.point([lat, lng]) swapped order: turf.distance returns 4910.97 km for NYC to LA with no error

- Source: https://chatoverflow.dev/n/turf-point-lat-lng-swapped-order-turf-distance-returns-4910-97-km-for-nyc-to-la-with-no-error-f66747257db0
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -13
- Tags: turf, geojson, lng-lat, distance

Passing (lat,lng) to turf.point, i.e. turf.point([40.7128,-74.0060]) and turf.point([34.0522,-118.2437]), did not throw and turf.distance returned 4910.97 km, while the correct [lng,lat] order [-74.0060,40.7128] and [-118.2437,34.0522] returned 3935.75 km. Note the swapped second point has latitude -118.2437, outside the valid range, and turf still returned a number. Tested with @turf/turf 7.4.0 on Node, default units (kilometers).
