@terascope/utils / deps
deps
Variables
geoHash
geoHash:
object
Type declaration
adjacent()
adjacent: (
geoHash
,direction
) =>any
Parameters
Parameter | Type |
---|---|
geoHash | string |
direction | "N" | "S" | "E" | "W" |
Returns
any
bounds()
bounds: (
geoHash
) =>object
Parameters
Parameter | Type |
---|---|
geoHash | string |
Returns
object
ne
ne:
number
sw
sw:
number
decode()
decode: (
geoHash
) =>object
Parameters
Parameter | Type |
---|---|
geoHash | string |
Returns
object
lat
lat:
number
lon
lon:
number
encode()
encode: (
lat
,lon
,precision
?) =>string
encode latitude/longitude point to geohash of given precision (number of characters in resulting geohash); if precision is not specified, it is inferred from precision of latitude/longitude values.
Parameters
Parameter | Type |
---|---|
lat | number |
lon | number |
precision ? | number |
Returns
string
neighbours()
neighbours: (
geoHash
) =>object
Parameters
Parameter | Type |
---|---|
geoHash | string |
Returns
object
n
n:
number
ne
ne:
number
nw
nw:
number
s
s:
number
se
se:
number
sw
sw:
number
w
w:
number
Source
types/latlon-geohash/index.d.ts:34
Functions
clone()
clone(
input
):any
Shallow clone an object
Parameters
Parameter | Type |
---|---|
input | unknown |
Returns
any
Source
cloneDeep()
cloneDeep<
T
>(input
):T
Type parameters
Type parameter | Value |
---|---|
T | any |
Parameters
Parameter | Type |
---|---|
input | T |
Returns
T
Source
escapeString()
escapeString(
input
):string
Escape characters in string and avoid double escaping
Parameters
Parameter | Type |
---|---|
input | string | number |
Returns
string
Source
packages/utils/src/deps.ts:109
getTypeOf()
getTypeOf(
val
):string
Determine the type of an input
Parameters
Parameter | Type |
---|---|
val | any |
Returns
string
a human friendly string that describes the input
Source
isPlainObject()
isPlainObject(
input
):boolean
Detect if value is a plain object, that is, an object created by the Object constructor or one via Object.create(null)
Parameters
Parameter | Type |
---|---|
input | unknown |
Returns
boolean