Skip to content

Commit

Permalink
:octocat:
Browse files Browse the repository at this point in the history
  • Loading branch information
codemasher committed Jan 8, 2023
1 parent 35912ad commit 21bbb13
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ Profit!

## Usage

### `FeatureCollection`

```php
$featureCollection = (new FeatureCollection)->setBbox([0, 0, 1024, 1024]);

Expand Down Expand Up @@ -85,6 +87,15 @@ $json = json_encode($featureCollection);
}
```

### `PolylineSimplifyer`

```php
$polylineCoords = [[11, 12], [21, 22], [31, 32], /* ... */];

$ps = new PolylineSimplifyer($polylineCoords);
$simplified = $ps->simplify(5, true);
```

## API

### `Feature` methods
Expand Down

0 comments on commit 21bbb13

Please sign in to comment.