eviav — Python client
Cliente oficial de Eviav para Python. APIs geoespaciales (geocoding, ruteo, mapas, isócronas, optimización de flota, IA) para LATAM. Sync + async sobre httpx.
pip install eviav
Quickstart (sync)
from eviav import Client
client = Client(api_key="eviav_live_…")
res = client.geocode("Av. Amazonas, Quito")
print(res["results"][0]["lat"], res["results"][0]["lon"])
# Ruteo
route = client.directions([(-78.51, -0.22), (-78.48, -0.12)], steps=True)
print(route["routes"][0]["distance"], "metros")
client.close()
O como context manager:
with Client(api_key="…") as client:
res = client.geocode("Quito")
Quickstart (async)
import asyncio
from eviav import AsyncClient
async def main():
async with AsyncClient(api_key="eviav_live_…") as client:
res = await client.geocode("Quito")
print(res["results"][0]["label"])
asyncio.run(main())
Métodos
Todos disponibles en Client (sync) y AsyncClient (async, awaitables):
| Método | Endpoint |
|---|---|
geocode(q, lat=, lon=, limit=) |
GET /v1/geocode |
reverse(lat, lon) |
GET /v1/reverse |
search(text, lat=, lon=, limit=) |
GET /v1/search |
places(lat, lon, category, radius=) |
GET /v1/places |
directions(coordinates, steps=, profile=) |
GET /v1/directions |
matrix(coordinates) |
GET /v1/matrix |
optimize(coordinates, roundtrip=) |
POST /v1/optimization |
fleet(body) |
POST /v1/fleet |
match(coordinates) |
GET /v1/match |
nearest(point, number=) |
GET /v1/nearest |
isochrone(lat, lon, contours=, costing=) |
GET /v1/isochrone |
elevation(lat, lon) |
GET /v1/elevation |
timezone(lat, lon) |
GET /v1/timezone |
tilequery(lat, lon, radius=) |
GET /v1/tilequery |
list_datasets(layer=) |
GET /v1/datasets |
grounding(query, lat=, lon=) |
POST /v1/grounding |
Las coordenadas son tuplas (lon, lat) (formato GeoJSON).
Manejo de errores
from eviav import Client, EviavError
try:
client.geocode("")
except EviavError as e:
print(e.status, e.code, e.request_id)
Reintentos
Reintenta automáticamente en 429 y 5xx con backoff exponencial, honrando el header Retry-After. Configurable con max_retries=.
Licencia
MIT © Eviav
Metadata
Release files for eviav 0.1.0
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 |
|---|---|---|---|---|
| eviav-0.1.0.tar.gz | 6.1 kB | Without provenance | Details for eviav-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| eviav-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for eviav-0.1.0-py3-none-any.whl |
Total release size: 15.1 kB
Release files / eviav-0.1.0.tar.gz
| Download URL | eviav-0.1.0.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5cc9fd9d29279983dcce6e45a7cfc76b44579e8cc9229af9c110b6926a7a2c20
|
|
BLAKE2b-256 checksum How to use checksums |
3f78933a4c62b08d4b4a8cf4fdeede3f2411cb80790f70efdc0b0253e84862ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / eviav-0.1.0-py3-none-any.whl
| Download URL | eviav-0.1.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
366e5cd3d5067f8587a58c7a44cfa1f231086b5b2ad7edaafecd38d2f6abf10f
|
|
BLAKE2b-256 checksum How to use checksums |
da2eb50c12bc70f6b95a5296982089614229751b790525f910b0ac8e5f829921
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for eviav 0.1.0
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.