point-in-geohash / Exports
- isCoordInGeohash
- isPointFeatureInGeohash
- isPointGeometryInGeohash
- randomCoordInGeohash
- randomPointFeatureInGeohash
- randomPointGeometryInGeohash
▸ isCoordInGeohash(latitude
, longitude
, geohash
): boolean
Checks if a coordinate is inside a geohash
export
Name | Type | Description |
---|---|---|
latitude |
number |
Latitude |
longitude |
number |
Longitude |
geohash |
string |
The geohash to check |
boolean
modules/inside.ts:13
▸ isPointFeatureInGeohash(pointFeat
, geohash
): boolean
Checks if a GeoJSON Point Feature is inside a geohash
export
Name | Type | Description |
---|---|---|
pointFeat |
Feature <Point > |
A GeoJSON Point Feature |
geohash |
string |
The geohash to check |
boolean
modules/inside.ts:41
▸ isPointGeometryInGeohash(pointGeom
, geohash
): boolean
Checks if a Point Geometry is inside a geohash
export
Name | Type | Description |
---|---|---|
pointGeom |
Point |
A GeoJSON Point Geometry |
geohash |
string |
The geohash to check |
boolean
modules/inside.ts:27
▸ randomCoordInGeohash(geohash
): [number
, number
]
Returns a random coordinate inside a geohash
export
Name | Type | Description |
---|---|---|
geohash |
string |
Geohash to get a random position in |
[number
, number
]
[lon, lat]
modules/random.ts:24
▸ randomPointFeatureInGeohash(geohash
, properties?
): Feature
<Point
>
Returns a random GeoJSON Point Feature inside a geohash
export
Name | Type | Description |
---|---|---|
geohash |
string |
Geohash to get a random position in |
properties? |
GeoJSONProperties |
- |
A GeoJSON Point Feature with the desired embedded properties
modules/random.ts:50
▸ randomPointGeometryInGeohash(geohash
): Point
Returns a random GeoJSON Point Geometry inside a geohash
export
Name | Type | Description |
---|---|---|
geohash |
string |
Geohash to get a random position in |
A GeoJSON Point Geometry
modules/random.ts:35