geomove

Moves points on earth's surface towards a given bearing by a given distance.


License
MIT
Install
pip install geomove==0.0.4

Documentation

geomove

pypi_versionbuild

Moves points on earth's surface towards a given bearing by a given distance.

Introductory example

These points were created by moving a reference point (R) by 10 km in all base directions of a compass rose:

compass_rose

Find the plot here.

Installation

pip install geomove

Usage

Move a (lat, lon) point west by 10 km:

from geomove import move, Bearing

# Define point
point = (51.9624, 7.6256)

# Move 
moved_point = move(point, Bearing.WEST, 10)

Move a point towards 357° by 5 km:

from geomove import move

# Define point
point = (51.9624, 7.6256)

# Move
moved_point = move(point, 357, 5)