Skip to main content

An openrouteservice client

Project description

ORS

Simple openrouteservice client.

Installation

pip install ors

Usage

>>> import ors

>>> ctx = ors.context(auth="API-KEY")
>>> client = ors.client(ctx)

>>> client(
...     ors.isochrones(locations=[(8.681495,49.41461)], range_=[300])
... )
{'type': 'FeatureCollection', 'bbox': [8.664521, 49.402801, 8.700767, 49.428668], 'features': [{'type': 'Feature', 'properties': {'group_index': 0, 'value': 300.0, 'center': [8.681494991825476, 49.41459939191395]}, 'geometry': {'coordinates': [[[8.66455, 49.418885], [8.665519, 49.410051], [8.66545, 49.409698], [8.670824, 49.405706], [8.678161, 49.402824], [8.678288, 49.402801], [8.685186, 49.407663], [8.691985, 49.410694], [8.700348, 49.413689], [8.700767, 49.413778], [8.700693, 49.41413], [8.694411, 49.418176], [8.693387, 49.420158], [8.693259, 49.4204], [8.692927, 49.420864], [8.692914, 49.42088], [8.687973, 49.424483], [8.68401, 49.428168], [8.683386, 49.428588], [8.683218, 49.428548], [8.67748, 49.42736], [8.672785, 49.428668], [8.671039, 49.427832], [8.670745, 49.427625], [8.667844, 49.42021], [8.664951, 49.419278], [8.664736, 49.419261], [8.664521, 49.419244], [8.66455, 49.418885]]], 'type': 'Polygon'}}], 'metadata': {'attribution': 'openrouteservice.org | OpenStreetMap contributors', 'service': 'isochrones', 'timestamp': 1730136926865, 'query': {'profile': 'driving-car', 'locations': [[8.681495, 49.41461]], 'range': [300.0]}, 'engine': {'version': '8.2.0', 'build_date': '2024-10-09T09:23:42Z', 'graph_date': '2024-09-23T14:39:49Z'}}}

Supported services

  • Isochrones
  • Directions
  • Export
  • Matrix
  • Snapping
  • Geocode
  • Elevation
  • Optimization

Next steps

  • Support for more services
  • Tests
  • Data validation
  • Fail fast
  • Docs
  • Refactor API
  • CLI interface

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

ors-0.1.9.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

ors-0.1.9-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file ors-0.1.9.tar.gz.

File metadata

  • Download URL: ors-0.1.9.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.21

File hashes

Hashes for ors-0.1.9.tar.gz
Algorithm Hash digest
SHA256 650f3749febcaa107e12737875711675aeec8067cdb64206c3424ea355832e82
MD5 da15e232d98eae17d67ff582e8f49c70
BLAKE2b-256 1b3e155111c9bf9f745a04d4e59c8dfe39a2c29c9fa6c020ceeb661bd0c1b6ec

See more details on using hashes here.

File details

Details for the file ors-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: ors-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.21

File hashes

Hashes for ors-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 c97d82704a2f6c3cf414dd0e8005e4559c0a029811c6410f1c643cc80124dd01
MD5 148f18b03bcfee8a1ed2de2687f9f146
BLAKE2b-256 2dd9b75ecf30d14c3bd5f1512138bf215c813ffbefd57ad65b9237f058b2bead

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page