Skip to main content
Module

x/soda/mod.ts>Where.withinBox

SODA (Socrata) Client for Deno/Node
Latest
method Where.withinBox
import { Where } from "https://deno.land/x/soda@0.4.5/mod.ts";

This function is used on fields of type Location to find records within a given box. This takes the form of a rectangle, with the northwest corner and southeast corner specified by latitude and longitude.

Parameters

field: string | FieldObject<DataType.Location>

The field to search

latNW: number

The latitude of the northwest corner of the box

lonNW: number

The longitude of the northwest corner of the box

latSE: number

The latitude of the southeast corner of the box

lonSE: number

The longitude of the southeast corner of the box