Turfjs / turf

A modular geospatial engine written in JavaScript and TypeScript
https://turfjs.org/
MIT License
9.3k stars 941 forks source link

New module proposal - Rhumb line #714

Closed DenisCarriere closed 7 years ago

DenisCarriere commented 7 years ago

New module proposal - Rhumb Line

Variations of Rhumb Line implementations.

image

@turf/rhumb-destination

Similar to @turf/destination, however instead of using the Haversine formula it uses the Rhumb Line path. Can be implemented using rhumbDestinationPoint from geodesy.

@turf/rhumb-bearing

Similar to @turf/bearing, however instead of using the Haversine formula it uses the Rhumb Line path. Can be implemented using rhumbBearingTo from geodesy.

@turf/rhumb-distance

Similar to @turf/distance, however instead of using the Haversine formula it uses the Rhumb Line path. Can be implemented using rhumbDistanceTo from geodesy.

image

CC: @stebogit Ref: https://github.com/Turfjs/turf/issues/681 https://github.com/Turfjs/turf/issues/684

stebogit commented 7 years ago

@DenisCarriere I'm gonna work on this. Should I create a branch for each module, or just one is ok?

DenisCarriere commented 7 years ago

They seem pretty easy to implement, one branch should be good enough.

stebogit commented 7 years ago

Implemented with PR #728