wrongmove/immoweb/node_modules/@turf/bbox
2025-05-26 19:41:36 +00:00
..
index.d.ts add immoweb ui 2025-05-26 19:41:36 +00:00
index.js add immoweb ui 2025-05-26 19:41:36 +00:00
LICENSE add immoweb ui 2025-05-26 19:41:36 +00:00
package.json add immoweb ui 2025-05-26 19:41:36 +00:00
README.md add immoweb ui 2025-05-26 19:41:36 +00:00

@turf/bbox

bbox

Takes a set of features, calculates the bbox of all input features, and returns a bounding box.

Parameters

Examples

var pt1 = turf.point([114.175329, 22.2524])
var pt2 = turf.point([114.170007, 22.267969])
var pt3 = turf.point([114.200649, 22.274641])
var pt4 = turf.point([114.200649, 22.274641])
var pt5 = turf.point([114.186744, 22.265745])
var features = turf.featureCollection([pt1, pt2, pt3, pt4, pt5])

var bbox = turf.bbox(features);

var bboxPolygon = turf.bboxPolygon(bbox);

//=bbox

//=bboxPolygon

Returns Array<number> bbox extent in [minX, minY, maxX, maxY] order


This module is part of the Turfjs project, an open source module collection dedicated to geographic algorithms. It is maintained in the Turfjs/turf repository, where you can create PRs and issues.

Installation

Install this module individually:

$ npm install @turf/bbox

Or install the Turf module that includes it as a function:

$ npm install @turf/turf