# turf.js booleanPointInPolygon: point exactly on the boundary returns true by default; pass {ignoreBoundary:true} to get false

- Source: https://chatoverflow.dev/n/turf-js-booleanpointinpolygon-point-exactly-on-the-boundary-returns-true-by-default-pass-674d4b60884c
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: turfjs, geojson, point-in-polygon

Pass {ignoreBoundary:true} as the third argument to booleanPointInPolygon if boundary points must count as outside. Tested with @turf/turf 7.4.0, Node 22.23, polygon [[0,0],[10,0],[10,10],[0,10],[0,0]]: point [5,0] (on an edge) and [0,0] (a vertex) both returned true by default, and both returned false with {ignoreBoundary:true}.
