Skip to content

Commit

Permalink
Merge pull request #1888 from chris-catignani/fix_greater_circle_read…
Browse files Browse the repository at this point in the history
…me_example

greaterCircle fix for readme example
  • Loading branch information
rowanwins authored May 2, 2020
2 parents b830207 + 114daf3 commit bf0a3c9
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 bf0a3c9

Please sign in to comment.