Skip to main content

ranking geo locations based on OpenStreetMap views

Project description

OSMViews Python Client

Python client for OSMViews, a world-wide ranking of geographic locations based on OpenStreetMap tile logs. Please see the main repository for background.

Usage

# pip install osmviews
import osmviews
osmviews.download('/tmp/osmviews.tiff')
with osmviews.open('/tmp/osmviews.tiff') as o:
    print(f'Tokyo, Shibuya:      {o.rank( 35.658514, 139.701330):>9.2f}')
    print(f'Tokyo, Sumida:       {o.rank( 35.710719, 139.801547):>9.2f}')
    print(f'Zürich, Altstetten:  {o.rank( 47.391485,   8.488945):>9.2f}')
    print(f'Zürich, Witikon:     {o.rank( 47.358651,   8.590251):>9.2f}')
    print(f'Ushuaia, Costa Este: {o.rank(-54.794395, -68.251958):>9.2f}')
    print(f'Ushuaia, Las Reinas: {o.rank(-54.769225, -68.279174):>9.2f}')

Tokyo, Shibuya:      227437.98
Tokyo, Sumida:        60537.62
Zürich, Altstetten:   37883.31
Zürich, Witikon:      11711.94
Ushuaia, Costa Este:   2697.14
Ushuaia, Las Reinas:    257.89

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

osmviews-0.0.5.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

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

osmviews-0.0.5-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file osmviews-0.0.5.tar.gz.

File metadata

  • Download URL: osmviews-0.0.5.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for osmviews-0.0.5.tar.gz
Algorithm Hash digest
SHA256 1e03b74e7a0ba14fccd6639a757eab1adf953cda8381b1a290b6eb9e85118d90
MD5 c46df2653fdf772e357c841a624212a7
BLAKE2b-256 164184d577e96d370dd1ddccadc294513481f9bfa4f69095ecfc931130f35078

See more details on using hashes here.

File details

Details for the file osmviews-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: osmviews-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for osmviews-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fc57e88c15dc323477dc873cbef8fb5b5fe3b9e5348389c5505494d2703a9be0
MD5 21db47d910df0c1879599cfc05f7444d
BLAKE2b-256 bc6ff4bce4b7530da7854ae7eeb9ef3d059437822acc61b1460f72fb39505150

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