New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

here-maps-node

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

here-maps-node

Here maps API wrapper for Node.js forked from node-heremaps

latest
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

Build Status

Here Maps API for Node.js

Inspired by the Google Maps API wrapper for Node.js

Forked from node-heremaps

This library implements the following Here Maps APIs.

  • REST API

Installation

npm install here-maps-node

What does it cover

Maps API REST SERVICES:

Usage

var HereMapsAPI = require('here-maps-node').default; // es5
import HereMapsAPI from 'here-maps-node'; // es6

var config = {
  app_id:   '<YOUR-APP-ID>',
  app_code: '<YOUR-APP-CODE>'
};
var hmAPI = new HereMapsAPI(config);

// geocode API
var geocodeParams = {
  "searchtext":    "121, Curtain Road, EC2A 3AD, London UK"
};

hmAPI.geocode(geocodeParams, function(err, result){
  console.log(result);
});

// matrix routing API
var matrixRoutingParams = {
  start0: "25.6586716,-100.3583278",
  destination0: "25.6522234,-100.2942806",
  mode: "fastest;car;traffic:enabled;" // this mode is set by default
};

hmAPI.matrixRouting(matrixRoutingParams, function(err, result){
  console.log(result);
});

Keywords

heremaps

FAQs

Package last updated on 01 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts