Nonsense Placement Mandatory
Wondering what’s next for npm?Check out our public roadmap! »

geohash-to-geojsonTypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

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

PolygonGeometry

geohashToPolygonFeature(geohash, [properties]) ⇒ PolygonFeatureFromBBox

Converts geohash to polygon Feature

Kind: global function

Param Type Default Description
geohash string
[properties] object {} properties to embed to each feature

geohashToPolygonGeometry(geohash) ⇒ PolygonGeometry

Converts geohash to polygon Geometry

Kind: global function

Param Type
geohash string

geohashToPointFeature(geohash) ⇒ Point

Converts geohash to point feature, for centroid coordinates

Kind: global function

Param Type
geohash string

geohashesToFeatureCollection(hashes) ⇒ FeatureCollection

Converts array of geohashes to GeoJSON FeatureCollection

Kind: global function

Param Type
hashes Array.<string>

wrapAsFeatureCollection(featuresArray) ⇒ FeatureCollection

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>>>

Install

npm i geohash-to-geojson

DownloadsWeekly Downloads

32

Version

2.0.2

License

MIT

Unpacked Size

23.2 kB

Total Files

13

Last publish

Collaborators

  • avatar