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

Uploaded Source

Built Distribution

move_jismeshcode-0.0.5-py3-none-any.whl (5.6 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