@turf/nearest
Advanced tools
Comparing version 3.0.15 to 3.0.16
{ | ||
"name": "@turf/nearest", | ||
"version": "3.0.15", | ||
"version": "3.0.16", | ||
"description": "turf nearest module", | ||
@@ -11,3 +11,3 @@ "main": "index.js", | ||
"type": "git", | ||
"url": "https://github.com/Turfjs/turf-nearest.git" | ||
"url": "git://github.com/Turfjs/turf.git" | ||
}, | ||
@@ -23,5 +23,5 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/Turfjs/turf-nearest/issues" | ||
"url": "https://github.com/Turfjs/turf/issues" | ||
}, | ||
"homepage": "https://github.com/Turfjs/turf-nearest", | ||
"homepage": "https://github.com/Turfjs/turf", | ||
"devDependencies": { | ||
@@ -32,4 +32,4 @@ "benchmark": "^1.0.0", | ||
"dependencies": { | ||
"@turf/distance": "^3.0.15" | ||
"@turf/distance": "^3.0.16" | ||
} | ||
} |
@@ -1,6 +0,6 @@ | ||
# turf-nearest | ||
# @turf/nearest | ||
# nearest | ||
Takes a reference [point](Point) and a FeatureCollection of Features | ||
Takes a reference [point](http://geojson.org/geojson-spec.html#point) and a FeatureCollection of Features | ||
with Point geometries and returns the | ||
@@ -12,4 +12,4 @@ point from the FeatureCollection closest to the reference. This calculation | ||
- `targetPoint` **Feature<Point>** the reference point | ||
- `points` **FeatureCollection<Point>** against input point set | ||
- `targetPoint` **[Feature](http://geojson.org/geojson-spec.html#feature-objects)<[Point](http://geojson.org/geojson-spec.html#point)>** the reference point | ||
- `points` **[FeatureCollection](http://geojson.org/geojson-spec.html#feature-collection-objects)<[Point](http://geojson.org/geojson-spec.html#point)>** against input point set | ||
@@ -69,3 +69,3 @@ **Examples** | ||
Returns **Feature<Point>** the closest point in the set to the reference point | ||
Returns **[Feature](http://geojson.org/geojson-spec.html#feature-objects)<[Point](http://geojson.org/geojson-spec.html#point)>** the closest point in the set to the reference point | ||
@@ -84,3 +84,3 @@ --- | ||
```sh | ||
$ npm install turf-nearest | ||
$ npm install @turf/nearest | ||
``` | ||
@@ -91,3 +91,3 @@ | ||
```sh | ||
$ npm install turf | ||
$ npm install @turf/turf | ||
``` |
8888
Updated@turf/distance@^3.0.16