Comparing version 3.0.10 to 3.0.12
{ | ||
"name": "turf-flip", | ||
"version": "3.0.10", | ||
"version": "3.0.12", | ||
"description": "turf flip module", | ||
@@ -28,7 +28,7 @@ "main": "index.js", | ||
"tape": "^3.5.0", | ||
"turf-helpers": "^3.0.10" | ||
"turf-helpers": "^3.0.12" | ||
}, | ||
"dependencies": { | ||
"turf-meta": "^3.0.10" | ||
"turf-meta": "^3.0.12" | ||
} | ||
} |
# turf-flip | ||
[![build status](https://secure.travis-ci.org/Turfjs/turf-flip.png)](http://travis-ci.org/Turfjs/turf-flip) | ||
# flip | ||
turf flip module | ||
### `turf.flip(input)` | ||
Takes input features and flips all of their coordinates | ||
from `[x, y]` to `[y, x]`. | ||
**Parameters** | ||
### Parameters | ||
- `input` **(Feature | FeatureCollection)** input features | ||
| parameter | type | description | | ||
| --------- | -------------------------- | -------------- | | ||
| `input` | Feature\,FeatureCollection | input features | | ||
**Examples** | ||
### Example | ||
```js | ||
```javascript | ||
var serbia = { | ||
@@ -40,9 +31,15 @@ "type": "Feature", | ||
Returns **(Feature | FeatureCollection)** a feature or set of features of the same type as `input` with flipped coordinates | ||
**Returns** `Feature,FeatureCollection`, a feature or set of features of the same type as `input` with flipped coordinates | ||
--- | ||
## Installation | ||
This module is part of the [Turfjs project](http://turfjs.org/), an open source | ||
module collection dedicated to geographic algorithms. It is maintained in the | ||
[Turfjs/turf](https://github.com/Turfjs/turf) repository, where you can create | ||
PRs and issues. | ||
Requires [nodejs](http://nodejs.org/). | ||
### Installation | ||
Install this module individually: | ||
```sh | ||
@@ -52,8 +49,6 @@ $ npm install turf-flip | ||
## Tests | ||
Or install the Turf module that includes it as a function: | ||
```sh | ||
$ npm test | ||
$ npm install turf | ||
``` | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6998
53
Updatedturf-meta@^3.0.12