Skip to main content

VRt.Routing [RT]

Project description

vrt_lss_routing

Description

The main purpose of VRt.Routing is building a travel path between points and computing distance and time matrices.

Capabilities

  • Obtaining the distance and time between two points taking traffic into account
  • Building a path along the given points
  • Building a distance and time matrix

Entity diagram

erd

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 7.38.3336
  • Package version: 7.38.3336
  • Generator version: 7.17.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen

Requirements.

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import vrt_lss_routing

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import vrt_lss_routing

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import vrt_lss_routing
from vrt_lss_routing.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.edge7.veeroute.cloud
# See configuration.py for a list of all supported configuration parameters.
configuration = vrt_lss_routing.Configuration(
    host = "https://api.edge7.veeroute.cloud"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (JWT): ApiKeyAuth
configuration = vrt_lss_routing.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


# Enter a context with an instance of the API client
with vrt_lss_routing.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = vrt_lss_routing.MatrixApi(api_client)
    matrix_task = vrt_lss_routing.MatrixTask() # MatrixTask | New request for matrix calculation.

    try:
        # Time-distance matrix
        api_response = api_instance.run_matrix_calculation(matrix_task)
        print("The response of MatrixApi->run_matrix_calculation:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling MatrixApi->run_matrix_calculation: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.edge7.veeroute.cloud

Class Method HTTP request Description
MatrixApi run_matrix_calculation POST /routing/matrix/calculation Time-distance matrix
RouteApi run_route_calculation POST /routing/route/calculation Route between points
SystemApi check GET /routing/system/check Checking the availability
SystemApi file GET /routing/file/{filename} Getting the documentation
SystemApi version GET /routing/system/version Getting the service version

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

ApiKeyAuth

  • Type: Bearer authentication (JWT)

Author

support@veeroute.com

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vrt_lss_routing-7.38.3336-py3-none-any.whl (80.8 kB view details)

Uploaded Python 3

File details

Details for the file vrt_lss_routing-7.38.3336-py3-none-any.whl.

File metadata

File hashes

Hashes for vrt_lss_routing-7.38.3336-py3-none-any.whl
Algorithm Hash digest
SHA256 b57b8cc4eeff269741ff3d61cc2ba3e329da6f8b0fbeb87b54f02cb7c107a26d
MD5 520a12135fdbf4c333d1b58afec2373d
BLAKE2b-256 158497219cf4ead6c938cc620777f144c987ea3300f994feca55ddd82b828194

See more details on using hashes here.

Supported by

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