Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
google-elevation-api
Advanced tools
Readme
This module will help reading the Google Maps Elevation API.
var elevationApi = require('google-elevation-api');
elevationApi({
key: 'GOOGLE MAPS API KEY',
locations: [
[43.669662, -79.282848],
[62.794543, 22.827826]
]
}, function(err, locations) {
if(err) {
console.log(err);
return;
}
console.log(locations);
});
require('google-elevation-api')(options, callback)
;This module exports a function you pass options
and a callback
to. options
should have your Google Maps API key in a variable called key
. And an array of locations
.
For example:
{
key: 'some google maps api key',
locations: [
[43.669662, -79.282848],
[62.794543, 22.827826]
]
}
locations
are formed are [lay, lng]
arrays.
The callback
should be a node style callback and returns an Error
or null
as the first argument and an Array
of elevation/location info as the second argument.
Each item in the Array
of returned locations contains the following:
{
elevation: 74.84200286865234, // in meters
location: [
43.66966, // lat
-79.28285 // lng
],
resolution: 152.7032318115234 // resolution of the sample
// for more info on resolution checkout
// https://developers.google.com/maps/documentation/elevation/
}
MIT, see LICENSE.md for details.
FAQs
This module will help reading the Google Maps Elevation API
The npm package google-elevation-api receives a total of 2 weekly downloads. As such, google-elevation-api popularity was classified as not popular.
We found that google-elevation-api 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.