Python client for OSRM api
Project description
py-osrm-client
Simple Python client for OSRM api.
Usage
Async client:
from osrm import OsrmAsyncClient
async def example():
async with OsrmAsyncClient() as osrm:
coordinates = [(0.1, 0.2), (0.3, 0.4)]
trip = await osrm.trip(coordinates)
Sync client:
from osrm import OsrmAsyncClient
async def example():
with OsrmClient() as osrm:
coordinates = [(0.1, 0.2), (0.3, 0.4)]
trip = osrm.trip(coordinates)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py-osrm-client-1.0.0.tar.gz
(12.9 kB
view hashes)
Built Distribution
Close
Hashes for py_osrm_client-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cad5680286e452c9cb78e71fdc66b2903df04ba0d56f51be33cb15bfd37ea233 |
|
MD5 | ae8258f6b2ebb7bb7b55e3347565e1fc |
|
BLAKE2b-256 | c4aac7ddbd8c9ba518f0672f582f44512c86bd923323af000e0ea172966683e8 |