geojson-conflate

1.0.0 • Public • Published

Build Status

geojson-conflate

Custom merge of GeoJSON features.

// pseudo-code (see test.js)
conflate(nearbyEvents, (accum, curr) => {
  let attendees = accum.attendees + curr.attendees
  let cluster = (accum.centroid + curr.centroid) / 2
  return accum + { attendees, cluster }
})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    1

Package Sidebar

Install

npm i geojson-conflate

Weekly Downloads

1

Version

1.0.0

License

ISC

Last publish

Collaborators

  • rodowi