Handles communication with the OSRM backend, building the request and parsing the response. Implements IRouter. Note that this class supports the OSRM HTTP API v1, that is included with OSRM version 5 and up. OSRM 4 used another API that is not supported by this class. See OSRM HTTP API for the specification this implementation is built on.

Hierarchy

Implements

Constructors

Properties

Methods

Constructors

Properties

options: OSRMv1Options

Methods

  • Returns the URL to calculate the route between the given waypoints; typically used for downloading the route in some other file format

    Parameters

    Returns string

  • Indicates whether a route would become incomplete because some waypoints are out of bounds due to zoom. If true, triggers a reroute

    Parameters

    Returns boolean

Generated using TypeDoc