📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

linematch

Package Overview
Dependencies
Maintainers
226
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linematch

A fast algorithm for comparing sets of polylines (e.g. road networks).

1.1.1
latest
Source
npm
Version published
Weekly downloads
40
-24.53%
Maintainers
226
Weekly downloads
 
Created
Source

linematch

Build Status Coverage Status

A super-fast algorithm for matching two sets of polylines and showing the difference. Primarily used for comparing road networks from different datasets.

Given arrays a and b, like linematch(a, b, 0.001), linematch will return a new array that contains all segments in a that are not matched with segments in b. If the arrays match exactly, the returned value will be an empty array, [].

// given two arrays of linestrings and a threshold value,
// outputs a difference as an array of linestrings
var result = linematch(lines1, lines2, 0.0001);

Keywords

algorithm

FAQs

Package last updated on 21 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts