Skip to main content

return new JIS meshcode that moves (x, y)

Project description

move_jismeshcode

与えられた地域メッシュコードを(x, y)動かした時のメッシュコードを返す

install

pip install move_jismeshcode

Usage

import move_jismeshcode as mj

# 与えれたメッシュコードを (5, 3) 動かした時のメッシュコードを返す
newmeshcode = mj.move(5438234312, 5, 3)
print(newmeshcode)
5438235342

# メッシュコード(5438235342) - メッシュコード(5438234312) の座標を返す
x, y = mj.sub(5438235342, 5438234312)
print(x, y)
5, 3

Todo

  • ☐ 定義外のメッシュコードのときに例外を返す

Reference

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

move_jismeshcode-0.0.4.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

move_jismeshcode-0.0.4-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: move_jismeshcode-0.0.4.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for move_jismeshcode-0.0.4.tar.gz
Algorithm Hash digest
SHA256 91b6764397ff119ccdd03e836addcf4cba6a2705467c336092ac870df68a5a4f
MD5 6d2212c69726fa775402fecd25c528a9
BLAKE2b-256 e1d524358da9094257c00670bfd8f414033e8925d47c74ef7730d2748bb77649

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: move_jismeshcode-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.6.1 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for move_jismeshcode-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 52fd17d2651e3fabc70f448a5eab3238686e989086ca668d5a4dc6ebb96e9132
MD5 a45e773141f20eea4a84c3cc51bd9f41
BLAKE2b-256 cad5e9725a625f3795edd21c14fed806f9fbaf2d5546cb3e84280b9e54bb9d80

See more details on using hashes here.

Provenance

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