Name | here-routing JSON |
Version |
1.0.1
JSON |
| download |
home_page | None |
Summary | Asynchronous Python client for the HERE Routing V8 API |
upload_time | 2024-06-30 18:29:26 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.10 |
license | None |
keywords |
aiohttp
asyncio
here
here-api
routing
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# here_routing
Asynchronous Python client for the HERE Routing V8 API
[](https://github.com/eifinger/here_routing/actions?workflow=CI)
[](https://pypi.python.org/pypi/here_routing)
[](https://github.com/eifinger/here_routing/blob/master/LICENSE)
[](https://codecov.io/gh/eifinger/here_routing)
[](https://pepy.tech/project/here_routing)
## Installation
```bash
pip install here_routing
```
## Usage
```python
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())
```
Raw data
{
"_id": null,
"home_page": null,
"name": "here-routing",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.10",
"maintainer_email": null,
"keywords": "aiohttp, asyncio, here, here-api, routing",
"author": null,
"author_email": "Kevin Stillhammer <kevin.stillhammer@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/45/19/1c0d5af187a5a4424aa7d215023815f88b0d4e42ef5933565a657b3ffc34/here_routing-1.0.1.tar.gz",
"platform": null,
"description": "# here_routing\n\nAsynchronous Python client for the HERE Routing V8 API\n\n[](https://github.com/eifinger/here_routing/actions?workflow=CI)\n[](https://pypi.python.org/pypi/here_routing)\n[](https://github.com/eifinger/here_routing/blob/master/LICENSE)\n[](https://codecov.io/gh/eifinger/here_routing)\n[](https://pepy.tech/project/here_routing)\n\n## Installation\n\n```bash\npip install here_routing\n```\n\n## Usage\n\n```python\nimport asyncio\n\nfrom here_routing import HERERoutingApi, Place, Return, TransportMode\n\nAPI_KEY = \"<YOUR_API_KEY>\"\n\n\nasync def main() -> None:\n \"\"\"Show example how to get duration of your route.\"\"\"\n async with HERERoutingApi(api_key=API_KEY) as here_routing:\n response = await here_routing.route(\n transport_mode=TransportMode.CAR,\n origin=Place(latitude=50.12778680095556, longitude=8.582081794738771),\n destination=Place(latitude=50.060940891421765, longitude=8.336477279663088),\n return_values=[Return.SUMMARY],\n )\n print(\n f\"Duration is: {response['routes'][0]['sections'][0]['summary']['duration']}\"\n )\n\n\nif __name__ == \"__main__\":\n asyncio.run(main())\n```\n",
"bugtrack_url": null,
"license": null,
"summary": "Asynchronous Python client for the HERE Routing V8 API",
"version": "1.0.1",
"project_urls": null,
"split_keywords": [
"aiohttp",
" asyncio",
" here",
" here-api",
" routing"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "3950ebe4b61b7ceeb39809e0692ce022627b224f1332ec3edd8851028dcfe0df",
"md5": "4ac5e1a0b38013d9f02563702cf2880e",
"sha256": "03d144cfd004e938aa2ae70da9e850f17516bd15ce36e7d3544e9da537d7b708"
},
"downloads": -1,
"filename": "here_routing-1.0.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4ac5e1a0b38013d9f02563702cf2880e",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10",
"size": 6724,
"upload_time": "2024-06-30T18:29:24",
"upload_time_iso_8601": "2024-06-30T18:29:24.894071Z",
"url": "https://files.pythonhosted.org/packages/39/50/ebe4b61b7ceeb39809e0692ce022627b224f1332ec3edd8851028dcfe0df/here_routing-1.0.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "45191c0d5af187a5a4424aa7d215023815f88b0d4e42ef5933565a657b3ffc34",
"md5": "7ae50e383833b64321bfc264a61eb050",
"sha256": "49cca91416aa33bf4e4d8ba1d66dc0fdef248ac8b22968fe53edcc2377ccb6d3"
},
"downloads": -1,
"filename": "here_routing-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "7ae50e383833b64321bfc264a61eb050",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10",
"size": 76551,
"upload_time": "2024-06-30T18:29:26",
"upload_time_iso_8601": "2024-06-30T18:29:26.282104Z",
"url": "https://files.pythonhosted.org/packages/45/19/1c0d5af187a5a4424aa7d215023815f88b0d4e42ef5933565a657b3ffc34/here_routing-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-30 18:29:26",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "here-routing"
}