Installations
npm install geohashes-along
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>=10
Score
72
Supply Chain
96.7
Quality
74.7
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Download Statistics
Total Downloads
6,560
Last Day
35
Last Week
82
Last Month
229
Last Year
2,555
Bundle Size
23.58 kB
Minified
6.67 kB
Minified + Gzipped
Package Meta Information
Latest Version
1.0.0
Package Id
geohashes-along@1.0.0
Unpacked Size
45.24 kB
Size
7.87 kB
File Count
21
Total Downloads
Cumulative downloads
Total Downloads
6,560
Last day
1,650%
35
Compared to previous day
Last week
64%
82
Compared to previous week
Last month
5%
229
Compared to previous month
Last year
17%
2,555
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
geohashes-along
Find the geohashes of a given precision along a GeoJSON LineString or MultiLineString Geometry or Feature.
Installation
Using npm, npm i geohashes-along
.
Using yarn, yarn add geohashes-along
.
Usage
Using import
:
1import { getGeohashesAlong } from 'geohashes-along';
In a CommonJS environment:
1const { getGeohashesAlong } = require('geohashes-along');
Then:
1const lineString = { 2 type: 'LineString', 3 coordinates: [ 4 [-5.646972656250001, 36.679433365517774], 5 [-5.52103918210534, 36.67588866176514], 6 ], 7}; 8 9const geohashesAlong = getGeohashesAlong(lineString, 5); 10// geohashesAlong is ['eyebx', 'eys08', 'eys09', 'eys0d']
Table of contents
Functions
Functions
getGeohashesAlong
â–¸ getGeohashesAlong(feature
: Feature<LineString | MultiLineString> | LineString | MultiLineString, precision
: number): string[]
Get a list of geohashes along a LineString or MultiLineString GeoJSON Feature or Geometry. This is the generic method.
export
Parameters
Name | Type | Description |
---|---|---|
feature | Feature<LineString | MultiLineString> | LineString | MultiLineString | The GeoJSON Feature or Geometry |
precision | number | The precision for the geohash list |
Returns: string[]
The list of geohashes along the line
getGeohashesAlongLineString
â–¸ getGeohashesAlongLineString(lineString
: LineString, precision
: number): string[]
Get a list of geohashes along a LineString Geometry
export
Parameters
Name | Type | Description |
---|---|---|
lineString | LineString | The LineString Geometry |
precision | number | The precision for the geohash list |
Returns: string[]
The geohashes along the LineString
getGeohashesAlongMultiLineString
â–¸ getGeohashesAlongMultiLineString(multiLineString
: MultiLineString, precision
: number): string[]
Get a list of geohashes along a MultiLineString Geometry
export
Parameters
Name | Type | Description |
---|---|---|
multiLineString | MultiLineString | The MultiLineString Geometry |
precision | number | The precision for the geohash list |
Returns: string[]
The geohashes along the MultiLineString
No vulnerabilities found.
No security vulnerabilities found.