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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file geomove-0.0.4.tar.gz.

File metadata

  • Download URL: geomove-0.0.4.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for geomove-0.0.4.tar.gz
Algorithm Hash digest
SHA256 09623b599475913d7889e616fb865f746177283f8fc676bbd9948dbae5dbd4a0
MD5 a5ecd72f14d3f3e8a07b4b8be317878f
BLAKE2b-256 addd7a070d0e0bbcc0adfaecd67a2828372608100aaccc154be0e3c8295502e9

See more details on using hashes here.

File details

Details for the file geomove-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: geomove-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.5

File hashes

Hashes for geomove-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 24b2ce00b57b62d4c49cb7749aeb98bddfef8d27794e3205761e97aba3b11fff
MD5 92e390677bd1041952807309204c0440
BLAKE2b-256 fb5f081404c2ffb228cde60743d1c2cf4f05435ed7d124f61ce35de289edcdc4

See more details on using hashes here.

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