Skip to main content
Version: Next

point

Description

Creates a Point Feature from a Position.

Parameters

NameTypeDescription
coordinatesPositionlongitude, latitude position (each in decimal degrees)
properties?GeoJsonPropertiesan Object of key-value pairs to add as properties (default {})
options?ObjectOptional Parameters (default {})
options.bbox?BBoxBounding Box Array [west, south, east, north] associated with the Feature
options.id?IdIdentifier associated with the Feature

Returns

Feature<Point, GeoJsonProperties> a Point feature

Examples

var point = turf.point([-75.343, 39.984]);

//=point

Installation

$ npm install @turf/helpers

import { point } from "@turf/helpers";
const result = point(...);
$ npm install @turf/turf

import * as turf from "@turf/turf";
const result = turf.point(...);