Options
All
  • Public
  • Public/Protected
  • All
Menu

External module scripts/ss/geo

Handle interaction the Google maps geocode API

Index

Interfaces

Variables

Functions

Object literals

Variables

Const _GEOCODE_API

_GEOCODE_API: "http://maps.googleapis.com/maps/api/geocode/json" = "http://maps.googleapis.com/maps/api/geocode/json"

Path to Google's geocode api

Functions

_addToCache

  • _addToCache(point: string, location: string): void

_cleanPoint

  • _cleanPoint(point: string): string
  • Make sure point is in fixed point notation

    Parameters

    • point: string

      'lat lng' may have exponential notation

    Returns string

    'lat,lng' fixed point notation

_getFromCache

  • _getFromCache(point: string): undefined | ILocation

get

  • get(point: string): Promise<string>
  • Get the location string

    Parameters

    • point: string

      'lat,long'

    Returns Promise<string>

    geolocation as string

Object literals

Const _LOC_CACHE

_LOC_CACHE: object

Location cache

entries

entries: never[] = []

maxSize

maxSize: number = 100

Generated using TypeDoc