Skip to content

Commit

Permalink
Merge pull request #77 from mapbox/andrewharvey-patch-1
Browse files Browse the repository at this point in the history
update example in README as toGeoJSON returns a GeoJSON Geometry not a GeoJSON Feature
  • Loading branch information
tristen authored Apr 6, 2023
2 parents 6984850 + c7fc865 commit 8ebaf17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ polyline.decode('_p~iF~ps|U_ulLnnqC_mqNvxq`@');
// returns an array of lat, lon pairs from polyline6 by passing a precision parameter
polyline.decode('cxl_cBqwvnS|Dy@ogFyxmAf`IsnA|CjFzCsHluD_k@hi@ljL', 6);

// returns a GeoJSON LineString feature
// returns a GeoJSON LineString Geometry
polyline.toGeoJSON('_p~iF~ps|U_ulLnnqC_mqNvxq`@');

// returns a string-encoded polyline (from coordinate ordered lat,lng)
Expand Down

0 comments on commit 8ebaf17

Please sign in to comment.