Skip to content

Commit

Permalink
Fix for greater circle readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-catignani committed Apr 25, 2020
1 parent b830207 commit 114daf3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions packages/turf-great-circle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Calculate great circles routes as [LineString][1]

**Parameters**
### Parameters

- `start` **[Coord][2]** source point feature
- `end` **[Coord][2]** destination point feature
Expand All @@ -16,13 +16,13 @@ Calculate great circles routes as [LineString][1]
- `options.offset` **[number][4]** offset controls the likelyhood that lines will
be split which cross the dateline. The higher the number the more likely. (optional, default `10`)

**Examples**
### Examples

```javascript
var start = turf.point([-122, 48]);
var end = turf.point([-77, 39]);

var greatCircle = turf.greatCircle(start, end, {'name': 'Seattle to DC'});
var greatCircle = turf.greatCircle(start, end, {properties: {name: 'Seattle to DC'}});

//addToMap
var addToMap = [start, end, greatCircle]
Expand Down
2 changes: 1 addition & 1 deletion packages/turf-great-circle/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import { GreatCircle } from './lib/arc';
* var start = turf.point([-122, 48]);
* var end = turf.point([-77, 39]);
*
* var greatCircle = turf.greatCircle(start, end, {'name': 'Seattle to DC'});
* var greatCircle = turf.greatCircle(start, end, {properties: {name: 'Seattle to DC'}});
*
* //addToMap
* var addToMap = [start, end, greatCircle]
Expand Down

0 comments on commit 114daf3

Please sign in to comment.