JSPM

node-heremaps

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 55
  • Score
    100M100P100Q62868F
  • License MIT

Here maps API wrapper for Node.js

Package Exports

  • node-heremaps

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (node-heremaps) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Build Status

Here Maps API for Node.js

Inspired by the Google Maps API wrapper for Node.js

This library implements the following Here Maps APIs.

Installation

npm install node-heremaps

What does it cover

Maps API REST SERVICES:

Usage

var config = {
  app_id:   '<YOUR-APP-ID>', // to use Google Maps for Work
  app_code: '<YOUR-APP-CODE>', // to use Google Maps for Work
};
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);
});

Future Features & Roadmap

I'm planning on covering most of the Here Maps REST API any help is appreciated!