Moves points on earth's surface towards a given bearing by a given distance.
Project description
geomove
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:
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)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
geomove-0.0.1.tar.gz
(2.8 kB
view hashes)