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
with osmviews.OSMViews('path/to/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.4.tar.gz
(6.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file osmviews-0.0.4.tar.gz.
File metadata
- Download URL: osmviews-0.0.4.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79fc57080de865e8df721f448f36cc197267fb1b49bc59aff52137c9deae6e15
|
|
| MD5 |
8f84d6fff29a4d9a033a67e3f1c1e1a6
|
|
| BLAKE2b-256 |
7ef0b3288e241c67dfc39a534b8e1a6a48eb6fd4d7d0ba202dd6e9579401068e
|
File details
Details for the file osmviews-0.0.4-py3-none-any.whl.
File metadata
- Download URL: osmviews-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b0ab7eeb6714746c0394b6abd950bb2120134db84fd0f83b1b3f9b6d055d6d9
|
|
| MD5 |
79e0790541cf330fa694840e12e8c3ec
|
|
| BLAKE2b-256 |
f48e512e8504fd15b720a4539eb93c8b30e0caf743bd00a2ab01813c3d4f3e1c
|