Skip to content

Thicken a geoline by a certain amount of meters to make a rectangle.

License

Notifications You must be signed in to change notification settings

lacuna-tech/geoline-to-rectangle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geoline-to-rectangle

Given a line of geopoints, of the form [[longitude, latitude]], geoline-to-rectangle will thicken the line to be rectangular, with configurable width.

In Node.js

pnpm install @lacuna/geoline-to-rectangle

Simple Usage

//some typescript todo
import { geolineToRectangle } from '@lacuna/geoline-toRectangle'

const point1 = [longitude1, latitude1] //longitude first, then latitude
const point2 = [longitude2, latitude2]

const rectangleOutput = geolineToRectangle([point1, point2])

About

Thicken a geoline by a certain amount of meters to make a rectangle.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published