I am trying to select all neighboring polygons in mapbox gl using turf.js and I am using
turf.intersect(poly[0], item);
And sometimes it is fine, but it looks like the input polygons data is bad, and it looks like there is some gaps between neigbour polygons coordinates(the neighbour points lat/lon doesn not match, or multipolygons), so is there any other algorithm to get the neighbour polygons?