
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
search-google-geocode
Advanced tools
Public search geographical location or address using Google Geocoding API: [reverse] geocoding.
##search-google-geocoder
Node.js module for geocoding and reverse geocoding.
Uses service Google geocoding API.
Geocoding is the process of matching address with geographic coordinates.
Reverse Geocoding is the process of matching geographic coordinates with address.
Address geocoding Provide an address or location and receive potential Google geocodes.
Reverse geocoding Provide latitude and longitude coordinates and receive the known address information for that location.
npm install search-google-geocode [-S]
// initialize geocoder instance
var geocoder = require('search-google-geocode');
// request parameters
const ADDRESS = 'Kyiv, Khreshchatyk';
const LATITUDE = '50.45';
const LONGITUDE = '30.523';
const LANGUAGE = 'en';
// you can use Google options to manage result format
var options = {
language: LANGUAGE
};
// use callback to return result from geocoding process
function callback (error, result) {
if (error) console.log(error); // on error
else console.log(result); // on success
}
// address geocoding
geocoder.geocode(ADDRESS, callback, options);
// reverse geocoding
geocoder.reverseGeocode(LATITUDE, LONGITUDE, callback, options);
FAQs
Public search geographical location or address using Google Geocoding API: [reverse] geocoding.
The npm package search-google-geocode receives a total of 12 weekly downloads. As such, search-google-geocode popularity was classified as not popular.
We found that search-google-geocode 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
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.