geojson-length

compute the length of a geojson linestring or multilinestring

Usage no npm install needed!

<script type="module">
  import geojsonLength from 'https://cdn.skypack.dev/geojson-length';
</script>

README

geojson-length

Calculate the length of a GeoJSON LineString or MultiLineString.

usage

npm install geojson-length
var geojsonLength = require('geojson-length');

var area = geojsonLength(geometry);