Usage

Distance

  • It gets the total distance in km of LineString and MultiLineString features that there are in a GeoJSON file.

Return:

Number - total length in kilometers.

Command line:

docker run --rm -v ${PWD}:/mnt/data developmentseed/geokit:node.latest geokit \
    distance input.geojson

Use case:

  • Get total highways length in kilometers.

image