npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

heligeo

v1.1.5

Published

A libraray for Isochrone, Routing & geoprocessing GeoJson Data

Downloads

43

Readme

heligeo

A library for Isochrone (Time-Distance) Analysis, Routing and Geoprocessing like Union, Intersection, Point Buffer, Line Buffer, Point with in Polygon(return points with in polygon sepratly), line aliasing(get multiple line parallel to linestring at certain distances).

  • Isochrone
  • Route
  • Union
  • Intersection
  • PointBuffer
  • LineBuffer
  • PointWithInPolygon
  • AliasLinestring

About Heliware

Heliware is a Web-GL Powered Geo-Spatial Analytics Platform for developer ,analytics & data Scientist that provides GIS, Web Mapping, and spatial data science tools which help companies to get InSite in just few click using AI, Data Science & Advance Geo-Processing.For advance library requirements please contact [email protected] .

Installation

Node Module

npm install heligeo

CDN

<script src="https://unpkg.com/[email protected]/dist/heligeo.js"></script>

Usage

Importing Module


import { Isochrone, Route, Union, Intersection, PointBuffer, LineBuffer, PointWithInPolygon, AliasLinestring } from heligeo

new Isochrone(params).loaded().then(res=>{
    console.log(res); // get your data here
})
OR

import * as Heligeo from 'heligeo'

new Heligeo.Isochrone(params).loaded().then(res=>{
    console.log(res); // get your data here
})

Cdn User


<script src="https://unpkg.com/[email protected]/dist/heligeo.js"></script>

<script>
new Heligeo.Isochrone(params).loaded().then((d) => {
      console.log(d); // get your data here
    });
</script>

Direction

  • For using this libraray you need Api-Key, You can simply get it by signing up Heliware here.

  • Please use the following table for params deatils of different analysis :

| Analysis Type | params | Example | |---------------|----------|---------| | Isochrone | (apikey,lat,long,mode) | ('your-api-key',28.456,78.45567,'drive') | | Route | (apikey,lnglats,mode) | new Route('your-api-key',[[88.3639, 22.5726],[72.8777, 19.076],...]) | | Union | (apikey,polygons) | ('your-api-key',[poly_1,poly_2,...]) | | Intersection | (apikey,polygons) | ('your-api-key',[poly_1,poly_2,...]) | | PointBuffer | (apikey,lnglats,radious) | ('your-api-key',[[88.3639, 22.5726],[72.8777, 19.076],...],20) | | LineBuffer | (apikey,linesCoordinates,radious) | ('your-api-key',[[[88.3639, 22.5726],[88.4143, 22.5797],...],[[88.2636, 22.5958],[88.4789, 22.7248],...],...],20) | | PointWithInPolygon | (apikey,points,polygons) | ('your-api-key',Point_GeoJson,[poly_1,poly_2,...]) | | AliasLinestring | (apikey,line,distance,number) | ('your-api-key',line_GeoJson,30,100) |

  • For Isochrone & Route heligeo have mode param ie. transport-mode, You can selectet between 4 below mentined modes.

    • drive
    • walk
    • bike
    • cycling
  • For Union, Intersection & PointWithInPolygon polygons param is Array of FeatureCollection/Geojson Object thats contain a single Polygon Feature.


poly_1 = {
            type: "FeatureCollection",
            features: [
              {
                type: "Feature",
                geometry: {
                  type: "Polygon",
                  coordinates: [
                    [
                      [77.4029103817493, 28.36918941103731, 0.0],
                      [77.40184896262588, 28.3722403721131, 0.0],
                      [77.39922678901301, 28.37081966588294, 0.0], 
                      [77.40030856003351, 28.36816909494472, 0.0],
                      [74029103817493, 28.36918941103731, 0.0],
                    ],
                  ],
                },
              },
            ]
        }
  • For PointBuffer & LineBuffer radious param denotes distance for buffer in 'meter'.

  • For PointWithInPolygon points param is a FeatureCollection/Geojson Object thats contains multiple Point Feature.


Point_GeoJson = {
            type: "FeatureCollection",
            features: [
                {"type":"Feature","geometry":{"type":"Point","coordinates":[76.95513342,28.46301607]}},
                {"type":"Feature","geometry":{"type":"Point","coordinates":[76.58813342,28.64701607]}},
                {"type":"Feature","geometry":{"type":"Point","coordinates":[76.12413342,28.98601607]}},
            ]
        }
  • For AliasLinestring line param is a FeatureCollection/Geojson Object thats contains Single LineString Feature with two position coordinates only ie. a straight line. distance param is the distance in 'meter' by which every line will be seprated. number param is number of linestring you want in parallel to line.

line_GeoJson = {
            "type": "FeatureCollection",
            "features":[
                {
                    "type": "Feature",
                    "geometry":{
                        "type":"LineString",
                        "coordinates": [[88.3639,22.5726],[88.4143,22.5797]]
                    }
                }
                ]
        }