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.1.tar.gz
(12.9 kB
view hashes)
Built Distribution
Close
Hashes for py_osrm_client-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1f7d4d19373badfb98ea9377e27933739e0dc1c2333bf7ab5db2a1d2f10cded |
|
MD5 | 24368dce8d26ccd82aea34e44ca4927a |
|
BLAKE2b-256 | f09cfe44e2a9ef993b8f688d82061bbcc1786441a9f43936c1b290397ab9fc57 |