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

x/mongo/src/types/geojson.ts>Position

MongoDB driver for Deno
Extremely Popular
Go to Latest
type alias Position
import { type Position } from "https://deno.land/x/mongo@v0.31.1/src/types/geojson.ts";

A Position is an array of coordinates. https://tools.ietf.org/html/rfc7946#section-3.1.1 Array should contain between two and three elements. The previous GeoJSON specification allowed more elements (e.g., which could be used to represent M values), but the current specification only allows X, Y, and (optionally) Z to be defined.

definition: number[]