UNPKG

@turf/nearest-point

Version:

Finds the nearest point from a FeatureCollection of Features with Point geometries to a given point.

78 lines (77 loc) 2 kB
{ "name": "@turf/nearest-point", "version": "7.3.0", "description": "Finds the nearest point from a FeatureCollection of Features with Point geometries to a given point.", "author": "Turf Authors", "license": "MIT", "bugs": { "url": "https://github.com/Turfjs/turf/issues" }, "homepage": "https://github.com/Turfjs/turf", "repository": { "type": "git", "url": "git://github.com/Turfjs/turf.git" }, "funding": "https://opencollective.com/turf", "publishConfig": { "access": "public" }, "keywords": [ "turf", "geojson", "gis", "near", "nearest", "point" ], "type": "module", "main": "dist/cjs/index.cjs", "module": "dist/esm/index.js", "types": "dist/esm/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { "types": "./dist/esm/index.d.ts", "default": "./dist/esm/index.js" }, "require": { "types": "./dist/cjs/index.d.cts", "default": "./dist/cjs/index.cjs" } } }, "sideEffects": false, "files": [ "dist" ], "scripts": { "bench": "tsx bench.ts", "build": "tsup --config ../../tsup.config.ts", "docs": "tsx ../../scripts/generate-readmes.ts", "test": "npm-run-all --npm-path npm test:*", "test:tape": "tsx test.ts", "test:types": "tsc --esModuleInterop --module node16 --moduleResolution node16 --noEmit --strict types.ts" }, "devDependencies": { "@types/benchmark": "^2.1.5", "@types/tape": "^5.8.1", "benchmark": "^2.1.4", "load-json-file": "^7.0.1", "npm-run-all": "^4.1.5", "tape": "^5.9.0", "tsup": "^8.4.0", "tsx": "^4.19.4", "typescript": "^5.8.3", "write-json-file": "^6.0.0" }, "dependencies": { "@turf/clone": "7.3.0", "@turf/distance": "7.3.0", "@turf/helpers": "7.3.0", "@turf/meta": "7.3.0", "@types/geojson": "^7946.0.10", "tslib": "^2.8.1" }, "gitHead": "9f58a103e8f9a587ab640307ed03ba5233913ddd" }