Functions
- geohashToPolygonFeature(geohash, [properties]) ⇒
PolygonFeatureFromBBox
Converts geohash to polygon Feature
- geohashToPolygonGeometry(geohash) ⇒
PolygonGeometry
Converts geohash to polygon Geometry
- geohashToPointFeature(geohash) ⇒
Point
Converts geohash to point feature, for centroid coordinates
- geohashesToFeatureCollection(hashes) ⇒
FeatureCollection
Converts array of geohashes to GeoJSON FeatureCollection
- wrapAsFeatureCollection(featuresArray) ⇒
FeatureCollection
Helper function to wrap geohash features converted using geohashToPolygonFeature in a FeatureCollection
Typedefs
PolygonFeatureFromBBox
geohashToPolygonFeature(geohash, [properties]) ⇒ Converts geohash to polygon Feature
Kind: global function
Param | Type | Default | Description |
---|---|---|---|
geohash | string |
||
[properties] | object |
{} |
properties to embed to each feature |
PolygonGeometry
geohashToPolygonGeometry(geohash) ⇒ Converts geohash to polygon Geometry
Kind: global function
Param | Type |
---|---|
geohash | string |
Point
geohashToPointFeature(geohash) ⇒ Converts geohash to point feature, for centroid coordinates
Kind: global function
Param | Type |
---|---|
geohash | string |
FeatureCollection
geohashesToFeatureCollection(hashes) ⇒ Converts array of geohashes to GeoJSON FeatureCollection
Kind: global function
Param | Type |
---|---|
hashes | Array.<string> |
FeatureCollection
wrapAsFeatureCollection(featuresArray) ⇒ Helper function to wrap geohash features converted using geohashToPolygonFeature in a FeatureCollection
Kind: global function
Param | Type |
---|---|
featuresArray | PolygonFeature |
PolygonGeometry
Kind: global typedef
Properties
Name | Type |
---|---|
type | 'Polygon' |
coordinates | Array.<Array.<Array.<number>>> |