Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "geo/index"

Index

Variables

Const geodist

geodist: any = require('geodist')

Const polyline

polyline: any = require('@mapbox/polyline')

Functions

addressToGeoCoordinates

calcDistance

  • calcDistance(lat1: number, lon1: number, lat2: number, lon2: number, unit?: string): number
  • Calculates the distance between 2 geo points.

    Parameters

    • lat1: number

      The latitude of the first point.

    • lon1: number

      The longitude of the first point.

    • lat2: number

      The latitude of the second point.

    • lon2: number

      The longitude of the second point.

    • Default value unit: string = "meters"

    Returns number

    The distance in meters.

calcRoute

Generated using TypeDoc