
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
mapbox-geocoding
Advanced tools
Simple node.js wrapper module for querying the geocoding api of mapbox v4.
npm install mapbox-geocoding --save
The mapbox-geocoding module exposes three methods, one for setting the mapbox public access token setAccessToken and two for querying the mapbox geocoding API geocode & reverseGeocode.
var geo = require('mapbox-geocoding');
geo.setAccessToken('YOUR MAPBOX PUBLIC TOKEN');
// Geocode an address to coordinates
geo.geocode('mapbox.places', 'Dam Square, Amsterdam', function (err, geoData) {
console.log(geoData);
});
// Reverse geocode coordinates to address.
geo.reverseGeocode('mapbox.places', '4.8936580', '52.3731720', function (err, geoData) {
console.log(geoData);
});
To run the tests execute:
npm test
The tests have a configuration dependency, which is git ignored. To run the tests you will need config.js file under the config directory and of the following structure:
/**
* Module configuration.
*
* Contains the mapbox public access token for the tests.
*
* config/config.js
*/
module.exports = {
access_token: 'PLACE YOUR MAPBOX API ACCESS TOKEN HERE'
};
FAQs
A node module for querying the mapbox geocoding api.
The npm package mapbox-geocoding receives a total of 60 weekly downloads. As such, mapbox-geocoding popularity was classified as not popular.
We found that mapbox-geocoding 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.