Skip to main content

An improved version of searoute package for calculating the shortest sea route between two points on Earth.

Project description

Sea Voyage

Sea Voyage는 지구상의 두 지점 간 최단 해상 경로를 계산하는 Python 패키지입니다. 이 패키지는 searoute 패키지를 기반으로 개선되었습니다.

원본 프로젝트

  • 원본 패키지: searoute
  • 원작자: Gent Halili
  • 라이선스: Apache License 2.0

주요 개선사항

  1. 성능 최적화
    • TODO: 경로 계산 속도 향상
  2. 기능 추가
    • 다양한 해상도의 Graph 형태 지원(5km, 10km, 25km, 50km, 100km)
    • 다양하고 쉬운 방법으로 graph에 node 및 edge 추가 가능
    • 육지를 지나거나 육지 위의 node 및 edge 제거 가능
    • TODO: 새로운 해상 경로 옵션 추가

설치 방법

pip install seavoyage

사용 예시

1. 기본 경로 생성

import seavoyage as sv

# 출발지와 목적지 좌표 설정(longitude, latitude)
origin = [0.3515625, 50.064191736659104]
destination = [117.42187500000001, 39.36827914916014]

# 경로 계산
route = sv.voyage(origin, destination)

# 거리 및 단위 출력
print("{:.1f} {}".format(route.properties['length'], route.properties['units'])) # 

2. 해상도 변경

import seavoyage as sv

# 해상도 변경
m_network = sv.get_m_network_5km()

# 경로 계산
route = sv.voyage(origin, destination, M=m_network)

# 거리 및 단위 출력
print("{:.1f} {}".format(route.properties['length'], route.properties['units']))

라이선스

이 프로젝트는 Apache License 2.0 라이선스 하에 배포됩니다.

Copyright 2024 - Gent Halili (원작자)
Copyright 2025 - Byeonggong Hwang

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

기여

버그 리포트, 기능 제안, 풀 리퀘스트는 언제나 환영합니다.

연락처

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

seavoyage-0.1.6.tar.gz (8.9 MB view details)

Uploaded Source

Built Distribution

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

seavoyage-0.1.6-py3-none-any.whl (9.1 MB view details)

Uploaded Python 3

File details

Details for the file seavoyage-0.1.6.tar.gz.

File metadata

  • Download URL: seavoyage-0.1.6.tar.gz
  • Upload date:
  • Size: 8.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for seavoyage-0.1.6.tar.gz
Algorithm Hash digest
SHA256 e0a289d889def03da8437dadbb219d7100d15778caf1f1db53295ae31f5716a4
MD5 9e2362902448a38f5e41f70031506fd9
BLAKE2b-256 610d3e2dffd73ba0864310033c23798aac7158e1c82a42e446fe0fada3f7c6cd

See more details on using hashes here.

File details

Details for the file seavoyage-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: seavoyage-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 9.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.10

File hashes

Hashes for seavoyage-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 adf3a6858c06c22bb86b977630a4463ab812f531833ba0d5182da0d57b4e5d0b
MD5 3c6f713cbad0af9d3357e2a8544d096b
BLAKE2b-256 59cedc1a7ba30eb4ab40bd3725a9969118820980fc86a1749e106a73b30cfb64

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