turf
turf copied to clipboard
Detect whether two polygons intersect or just share a border
I am using turf intersect to detect whether polygons are overlapping.
How to determine whether they just share a border as on this image

Or they are intersecting

Would really appreciate your suggestions.
@victoriaunizhona take a look here, where it describe the spatial relationship you want to determine (touch). Doesn't look like Turf has a specific module for that, but I guess you can use a combination of some "boolean" ones.