Skip to main content
Version: 7.0.0

pt

Description

Translate Properties to final Point, priorities:

  1. options.properties
  2. inherent Point properties
  3. dist custom properties created by NearestPointToLine

Parameters

NameTypeDescription

Returns

Installation

$ npm install @turf/nearest-point-to-line

import { pt } from "@turf/nearest-point-to-line";
const result = pt(...);
$ npm install @turf/turf

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