Options
All
  • Public
  • Public/Protected
  • All
Menu

Module geo

Index

Variables

origin

origin: any

Functions

DegreesToRadians

  • DegreesToRadians(degrees: number): number
  • Parameters

    • degrees: number

    Returns number

GetGeneratedCircleBounds

  • GetGeneratedCircleBounds(coordinates: any): object
  • Parameters

    • coordinates: any

    Returns object

    • nw: object
      • lat: null
      • lng: null
    • se: object
      • lat: null
      • lng: null

Mod

  • Mod(dividend: any, divisor: any): any
  • Parameters

    • dividend: any
    • divisor: any

    Returns any

PointOnCircle

  • PointOnCircle(start: LatLng, headingInDegrees: number, distanceInMeters: number): LatLng
  • Finds points along a circle

    Parameters

    • start: LatLng
    • headingInDegrees: number
    • distanceInMeters: number

    Returns LatLng

PointsInCircle

  • PointsInCircle(centerLat: any, centerLng: any, radius: any): Array<LatLng>
  • Parameters

    • centerLat: any
    • centerLng: any
    • radius: any

    Returns Array<LatLng>

RadiansToDegrees

  • RadiansToDegrees(radians: number): number
  • Parameters

    • radians: number

    Returns number

cartToLL

  • cartToLL(cart: any, r?: number): object
  • Parameters

    • cart: any
    • Optional r: number

    Returns object

    • lat: number
    • lng: number

center

  • Parameters

    Returns object

    • lat: number
    • lng: number

geographicMidpoint

  • geographicMidpoint(pts: any): object
  • Parameters

    • pts: any

    Returns object

    • lat: number
    • lng: number

getIsCircleData

  • getIsCircleData(pts: any): object
  • Parameters

    • pts: any

    Returns object

    • cX: number
    • cY: number
    • cZ: number
    • cartArr: Array<any>

getLatLngCenter

  • getLatLngCenter(latLngInDegr: number[]): Array<number>
  • Parameters

    • latLngInDegr: number[]

    Returns Array<number>

    array with the center latitude longtitude pairs in degrees.

isCircle

  • isCircle(pts: any): boolean
  • Parameters

    • pts: any

    Returns boolean

llToCart

  • llToCart(ll: any, r?: number): object
  • Parameters

    • ll: any
    • Optional r: number

    Returns object

    • x: number
    • y: number
    • z: number

tileXToLon

  • tileXToLon(x: number, zoom: number): number
  • Parameters

    • x: number
    • zoom: number

    Returns number

tileYToLat

  • tileYToLat(y: number, zoom: number): number
  • Parameters

    • y: number
    • zoom: number

    Returns number

Generated using TypeDoc