0.1.2 • Published 3 months ago

join-lines v0.1.2

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

join-lines

Join GeoJSON LineStrings together.

Usage

import joinLines from 'join-lines'

Given an array of GeoJSON LineString's, will find all that touch at endpoints and join them together.

Parameters

  • input Array An array of GeoJSON LineString coordinates
  • options Object?
    • options.preserveDirections Object If true then no line will be flipped in the other direction, if false then this may happen. (optional, default false)
    • options.tolerance Object Tolerance allowed to still join endpoints which are close but not exactly touching. (optional, default 0)

Returns Array An array of joined LineString coordinates.

0.1.2

3 months ago

0.1.1

3 months ago

0.1.0

5 years ago