Skip to main content
Module

x/soda/mod.ts>Where.intersects

SODA (Socrata) Client for Deno/Node
Latest
method Where.intersects
import { Where } from "https://deno.land/x/soda@0.4.5/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