Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "functions/distance"

Index

Functions

Functions

distance

  • Calculates the distance, in kilometers, between two coordinates.

    Parameters

    • start: LatLngLiteral

      Starting coordinates.

    • end: LatLngLiteral

      Ending coordinates.

    • Default value unit: string = "km"

      Unit of distance returned, defaults to Km.

    Returns number

    The distance between two coordinates.

Generated using TypeDoc