python-geojson-elevation
GeoJSON proxy to popular elevation web services.
Currently only Google Elevation API is implemented.
New backends or improvements very welcome!
Install stable version from pypi
Install via pip:
pip install geojson_elevation
Install development version
Install tarball:
pip install https://github.com/ninuxorg/python-geojson-elevation/tarball/master
Alternatively you can install via pip using git:
pip install -e git+git://github.com/ninuxorg/python-geojson-elevation#egg=geojson-elevation
If you want to contribute, install your cloned fork:
git clone git@github.com:<your_fork>/python-geojson-elevation.git
cd python-geojson-elevation
python setup.py develop
Basic Usage Example
from geojson_elevation.google import elevation
# 1 point
elevation('41.889040454306752,12.525333445447737')
# path
elevation('41.889040454306752,12.525333445447737|41.889050454306752,12.525335445447737')
Running tests
Install your forked repo:
git clone git://github.com/<your_fork>/python-geojson-elevation
cd python-geojson-elevation/
python setup.py develop
Install test requirements:
pip install -r requirements-test.txt
Run tests with:
./runtests.py
Alternatively, you can use the nose command (which has a ton of available options):
nosetests
nosetests tests.google_tests # run only google elevation API tests
See test coverage with:
coverage run --source=geojson_elevation runtests.py && coverage report
Contribute
Join the mailing list
Fork this repo and install it
Write code
Write tests for your code
Ensure all tests pass
Ensure test coverage is not under 90%
Document your changes
Send pull request
Metadata
Release files for geojson_elevation 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| geojson_elevation-0.1.tar.gz | 5.6 kB | Without provenance | Details for geojson_elevation-0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| geojson_elevation-0.1-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for geojson_elevation-0.1-py2.py3-none-any.whl |
Total release size: 12.1 kB
Release files / geojson_elevation-0.1.tar.gz
| Download URL | geojson_elevation-0.1.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d93786764271e3424c00663affdd61b13231734edb3ce080c85c3436a19354f
|
|
BLAKE2b-256 checksum How to use checksums |
37b68cd355d59c6b1f4a13ac76edeed38a2c2eceac266dd5346f943f6c6db361
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / geojson_elevation-0.1-py2.py3-none-any.whl
| Download URL | geojson_elevation-0.1-py2.py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
60c1cef3ea270bef2708fd493e9a87eb469ff12de0c788a2a75886db1dfc60e8
|
|
BLAKE2b-256 checksum How to use checksums |
93989b7e8235251b9d40202ce7c21bd4706714b8e38db867e14c5e523bf22c04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for geojson_elevation 0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.