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.
tjbot-places
Advanced tools
Readme
This library was coded to allow for simplified access into the google places api for use with the IBM TJBot through Watson Assystant dialogs, thus you might find a very small subset of the places API functionality as it is intended to be used through a natural language dialog through voice.
In order to use the library one should include it by requiring tjbot-places
. Two functions are currently available, one that searches for a place by name getPlace(searchString)
and another one that searches for places that are nearby a particular location and that respond to a particular keyword such as restaurant getPlacesNear(latitude, longitude, keyword)
.
Note: In order to use this library you need to get a Google API kye configured to use the Google Places api
const tjbot_places = require('tjbot-places');
const client = new tjbot_places('GOOGLEPLACES_APIKEY');
// Example to get a place by name and then get nearby restaurants
// in this case we will search for IBM Mexico's Offices
client.getPlace('ibm mexico').then(res =>{
// show the json for the place object
console.log(JSON.stringify(res));
console.log("========================");
var type="Restaurant";
// query restaurants near ibm mexico
client.getPlacesNear(res.latitude,res.longitude,type).then(res => {
//The result is an array of places
res.forEach(function (elem){
console.log(elem.name+' - '+elem.rating);
});
});
});
FAQs
Simplified google places component for TBBot lab
The npm package tjbot-places receives a total of 0 weekly downloads. As such, tjbot-places popularity was classified as not popular.
We found that tjbot-places 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.