Skip to main content

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

Project description

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)

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.4.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

geomove-0.0.4-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page