Skip to main content

No project description provided

Project description

Утилиты для работы с географическими координатами.

pip install my-geo-utils

## Использование

from my_geo_utils import haversine_distance, validate_coordinates, format_coordinates

# Расстояние между Москвой и Санкт-Петербургом
distance = haversine_distance(55.7558, 37.6173, 59.9343, 30.3351)
print(f"Расстояние: {distance:.2f} км")

# Проверка координат
print(validate_coordinates(55.7558, 37.6173))  # True

# Форматирование
print(format_coordinates(55.7558, 37.6173))  # 55.7558° N, 37.6173° E

## Функции

- `haversine_distance(lat1, lon1, lat2, lon2)`  расстояние между точками в км
- `validate_coordinates(lat, lon)`  проверка корректности координат
- `format_coordinates(lat, lon)`  форматирование координат

## Лицензия

MIT

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

my_geo_utils-0.1.1.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

my_geo_utils-0.1.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file my_geo_utils-0.1.1.tar.gz.

File metadata

  • Download URL: my_geo_utils-0.1.1.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.11.9 Windows/10

File hashes

Hashes for my_geo_utils-0.1.1.tar.gz
Algorithm Hash digest
SHA256 37834d5766c36450396e5dab33858e481b0c6f00f0719a37e8dfce1e33fddd2e
MD5 30bb3c00b6023b4a452b6955bc1c7d29
BLAKE2b-256 dd417b7807f8f1e839e5a3be662f1bf5be1ee915dcd21de493ff6a54044a1240

See more details on using hashes here.

File details

Details for the file my_geo_utils-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: my_geo_utils-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.3 CPython/3.11.9 Windows/10

File hashes

Hashes for my_geo_utils-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0595ea089e4beaf09ef74c7f3f56ce9923d46a59ba479d1caf31f57af548cc95
MD5 5302be6e127e2869c2c83bb74bb9ab24
BLAKE2b-256 17401acdfb8e8556a67d6f6b8742f08cc48452ffacf8c0c8a88948b5d56fce97

See more details on using hashes here.

Supported by

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