point
Description
Creates a Point Feature from a Position.
Parameters
Name | Type | Description |
---|---|---|
coordinates | Position | longitude, latitude position (each in decimal degrees) |
properties? | GeoJsonProperties | an Object of key-value pairs to add as properties (default {}) |
options? | Object | Optional Parameters (default {}) |
options.bbox? | BBox | Bounding Box Array [west, south, east, north] associated with the Feature |
options.id? | Id | Identifier 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(...);