
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
heremap-node
Advanced tools
Set of node.js interfaces to HERE Maps REST APIs
npm install heremap-node
const heremap = require("heremap-node");
// your own credentials, to be obtained from developer.here.com
// by default, use production environemnt you may specify cit:true to use CIT
heremap.config({
app_id: "YOUR APP_ID", app_code: "YOUR APP_CODE"
});
const res = await heremap.geocode("avenue des champs elysees, Paris");
console.log(res); // return {coord, body, respTime}
const addresses = [
"avenue des champs-elysees, Paris",
"Versailles, France",
"Bordeaux,France",
];
// Array of promises from geocoder
const promises = addresses.map(addr => heremap.geocode(addr));
// wait for all geocodes to be performed
const result = await Promise.all(promises);
// get array of coords
const coords = result.map(resp => resp.coord);
const res = await heremap.reverseGeocode([48.3,2.3]);
console.log(res); // return {location, address, body, respTime}
const waypoints = [
"avenue des champs-elysees, Paris",
"Versailles, France",
"Bordeaux,France",
];
const promises = waypoints.map(addr => heremap.geocode(addr)); // Array of promises from geocoder
const result = await Promise.all(promises); // wait for all geocodes to be performed
const coords = result.map(resp => resp.coord); // extrct coords
const start = coords.shift(); // get start points and remove from list of waypoints
const resp = await heremap.route(start, coords); // compute the route
console.log(result); // return {summary, route, body, respTime
// Addresses are geocoding in parallel, and then first one is used as start point, all other as end points
const addresses = [
"8 rue Benjamin Franklin Paris",
"Perpignan, france",
"Vannes, france",
"Lyon,France",
"Marseille,France",
"Versailles,France"
];
const promises = addresses.map(addr => heremap.geocode(addr)); // array of promises
const result = await Promise.all(promises); // awaits all promises (geocodes) to be performed
const coords = result.map(resp => resp.coord); // get array of coords
const start = coords.shift(); // extract start point
const result = await heremap.matrix(start, coords); // does matrix routing
console.log(result); // return {entries, body, respTime}
FAQs
node interface to HERE maps REST API
The npm package heremap-node receives a total of 0 weekly downloads. As such, heremap-node popularity was classified as not popular.
We found that heremap-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.