Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface RouteService

An interface implemented by a class that will provide routing and direction-related information.

Hierarchy

  • RouteService

Implemented by

Index

Methods

cancel

  • cancel(): void
  • Cancels the active service request.

    Returns void

geocode

  • Geocodes a location string to coordinates.

    Parameters

    • search: string

    Returns Promise<Coordinate>

getDirections

  • Receives an array of at least two coordinates to use for the route with additional options as supported by the specific third-party routing service.

    memberof

    RouteService

    Parameters

    • points: Coordinate[] | string[]
    • Optional params: any

    Returns Promise<RouteResult>

Generated using TypeDoc