Asynchronous Python client for the HERE Routing V8 API
Project description
here_routing
Asynchronous Python client for the HERE Routing V8 API
Installation
uv add install here_routing
Usage
import asyncio
from here_routing import HERERoutingApi, Place, Return, TransportMode
API_KEY = "<YOUR_API_KEY>"
async def main() -> None:
"""Show example how to get duration of your route."""
async with HERERoutingApi(api_key=API_KEY) as here_routing:
response = await here_routing.route(
transport_mode=TransportMode.CAR,
origin=Place(latitude=50.12778680095556, longitude=8.582081794738771),
destination=Place(latitude=50.060940891421765, longitude=8.336477279663088),
return_values=[Return.SUMMARY],
)
print(
f"Duration is: {response['routes'][0]['sections'][0]['summary']['duration']}"
)
if __name__ == "__main__":
asyncio.run(main())
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
here_routing-1.1.3.tar.gz
(202.5 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 here_routing-1.1.3.tar.gz.
File metadata
- Download URL: here_routing-1.1.3.tar.gz
- Upload date:
- Size: 202.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cd832d2e30930ab1bdc0d36dfeb27e0f4439d4aa51c48462de88fee68c2b9393
|
|
| MD5 |
9202b4abac92740adea65c27300c89e3
|
|
| BLAKE2b-256 |
6327d7af7aa644809785319309522024f4dcd5a13109f7d1d1e91a85e702d0cb
|
File details
Details for the file here_routing-1.1.3-py3-none-any.whl.
File metadata
- Download URL: here_routing-1.1.3-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.7.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
851d2c15154e671242a9b1483e9f0c2e7cfe3b2836293913d88ac5fd38a2c93b
|
|
| MD5 |
1296ab1988fe3fd606a66eb3a8e71ce7
|
|
| BLAKE2b-256 |
5b815a47a522c76fa5cda3f35d1db717222f761b0f8b19de390b811d96de7a86
|