Skip to main content

GeoJSON compatible elevation proxy

Project description

https://travis-ci.org/ninuxorg/python-geojson-elevation.png https://coveralls.io/repos/ninuxorg/python-geojson-elevation/badge.png Code Health Requirements Status https://badge.fury.io/py/python-geojson-elevation.png https://img.shields.io/pypi/dm/python-geojson-elevation.svg

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

  1. Join the mailing list

  2. Fork this repo and install it

  3. Follow PEP8, Style Guide for Python Code

  4. Write code

  5. Write tests for your code

  6. Ensure all tests pass

  7. Ensure test coverage is not under 90%

  8. Document your changes

  9. Send pull request

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geojson_elevation-0.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

geojson_elevation-0.1-py2.py3-none-any.whl (6.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file geojson_elevation-0.1.tar.gz.

File metadata

File hashes

Hashes for geojson_elevation-0.1.tar.gz
Algorithm Hash digest
SHA256 1d93786764271e3424c00663affdd61b13231734edb3ce080c85c3436a19354f
MD5 bf3b84d7ed586a5f7575dc3136fd215c
BLAKE2b-256 37b68cd355d59c6b1f4a13ac76edeed38a2c2eceac266dd5346f943f6c6db361

See more details on using hashes here.

File details

Details for the file geojson_elevation-0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for geojson_elevation-0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 60c1cef3ea270bef2708fd493e9a87eb469ff12de0c788a2a75886db1dfc60e8
MD5 c4ddb36c59e252297917907452350c5b
BLAKE2b-256 93989b7e8235251b9d40202ce7c21bd4706714b8e38db867e14c5e523bf22c04

See more details on using hashes here.

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