Skip to content
This repository has been archived by the owner on Aug 19, 2019. It is now read-only.

milesgranger/altitudo

Repository files navigation

Altitudo

Python package to find the elevation / altitude at a given geo coordinate.

Dependabot Status

PLEASE NOTE:

This package is backed by a service which offers free elevations for 1 kilometer, but also higher resolution (90m & 30m) for paid members. This package uses the free service, 1 kilometer resolutions.


Usage:

Via Python:

>>> from altitudo import altitudo
>>> altitudo(lat=39.90974, lon=-106.17188)  # Returns meters by default
... 2624.0

>>> # Request more than a single coordinate
>>> altitudo(lat=[39.90974, 62.52417], lon=[-106.17188, 10.02487])
... [{"lat": 39.90974, "lon": -106.17188, "elevation": 2624.0},{"lat": 62.52417, "lon": 10.02487, "elevation": 1111.0}]

Via CLI

altitudo -- 39.90974 -106.17188
2624.0

Install:

pip install --upgrade altitudo

Uninstall:

pip uninstall altitudo


Package to get elevation / altitude from a given geo coordinate