Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rdw_data/src/providers/mod.ts>Where.intersects

Get data from RDW using Deno/Node
Latest
method Where.intersects
import { Where } from "https://deno.land/x/rdw_data@0.7.0/src/providers/mod.ts";

Allows you to compare two geospatial types to see if they intersect or overlap each other

Note: This function is only available on the 2.1 endpoint

Parameters

field:
| string
| FieldObject<DataType.Point>
| FieldObject<DataType.Polygon>
| FieldObject<DataType.Line>
| FieldObject<DataType.MultiPoint>
| FieldObject<DataType.MultiLine>
| FieldObject<DataType.MultiPolygon>

The field to search

value: string

The value to search for. This should be of format 'POINT (...)' or 'POLYGON (...)'. See the link above for more details