[go: nahoru, domu]

Skip to content

Simplify a LineString using JOSM's SimplifyWay algorithm

License

Notifications You must be signed in to change notification settings

alantgeo/simplify-way

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

simplify-way

Simplify a LineString using JOSM's SimplifyWay algorithm.

API

const simplify = require('simplify-way')

const coordinates = [
  [151.297447, -33.799392],
  [151.297506, -33.799359],
  [151.297571, -33.799330],
  [151.297611, -33.799341],
  [151.297681, -33.799356],
  [151.297729, -33.799390]
]
const tolerance = 5 // tolerance in meters

const simplifiedCoordinates = simplify(coordinates, tolerance)

About

Simplify a LineString using JOSM's SimplifyWay algorithm

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published