linematch

    1.1.1 • Public • Published

    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);

    Install

    npm i linematch

    DownloadsWeekly Downloads

    41

    Version

    1.1.1

    License

    ISC

    Unpacked Size

    8.1 kB

    Total Files

    4

    Last publish

    Collaborators

    • mapbox-npm-ci
    • mapbox-npm-advanced-actions
    • mapbox-npm-09
    • mapbox-npm-08
    • mapbox-npm-07
    • mapbox-npm-06
    • mapbox-npm-05
    • mapbox-npm-04
    • mapbox-npm-03
    • mapbox-npm-02
    • mapbox-npm-01
    • mapbox-npm
    • mapbox-admin
    • lxbarth
    • miccolis
    • mourner
    • mcwhittemore
    • davidtheclark
    • springmeyer
    • ianshward
    • gretacb
    • ansis
    • kkaefer
    • morganherlocker
    • jfirebaugh
    • samanbb
    • nickidlugash
    • ian29
    • amyleew
    • dnomadb
    • lbud
    • bsudekum
    • sgillies
    • rclark
    • tristen
    • willwhite
    • lukasmartinelli
    • karenzshea
    • jacquestardie
    • anandthakker
    • ingalls
    • lyzidiamond
    • jrpruit1
    • freenerd
    • tcql
    • themarex
    • sbma44
    • yhahn
    • emilymcafee
    • planemad
    • mapsam
    • bhousel
    • apendleton
    • geohacker
    • alulsh
    • zmully
    • arunasank
    • aarthykc
    • mollymerp
    • bkowshik
    • maning
    • jothirnadh
    • oini
    • nammala
    • pratikyadav
    • srividyacb
    • chetangowda
    • nikhilprabhakar
    • rumc
    • emilymdubois
    • danpat
    • isiyu
    • kaidalgleish
    • mattficke
    • kaibot3000
    • mapbox-machine-user
    • kepta
    • lily-chai
    • ghoshkaj
    • danieljh
    • laurier
    • brendanmcfarland
    • ajithranka
    • katydecorah
    • camillacaros
    • alinapaz
    • k-mahoney
    • amishas157
    • saikia.abhishek
    • danswick
    • ryan-baumann
    • msirenko
    • pdgoodman
    • enf
    • benjamintd
    • nickcordella
    • natslaughter
    • colleenmcginnis
    • perrygeo
    • virginiayung
    • aliceykuo
    • l-r
    • tony-cj
    • vincents
    • oxidase
    • chaupow
    • miles-dev
    • captainbarbosa
    • fa7c0n
    • dasulit
    • bsrinivasa
    • aparlato
    • manoharuss
    • boblannon
    • chrisloer
    • lndsay
    • allierowan
    • samely
    • oliikit
    • upendrayadav
    • rasagy