New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

forecastio-googlemaps

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

forecastio-googlemaps

An app that runs in the command line gathering data from Google Maps Geocoding API and feeds it into Forecast.io API to get weather information on a city.

latest
npmnpm
Version
1.0.2
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

##Forecast.io / Google Maps Geocoding API

forecastio-googlemaps is an API to forecast.io and Google Maps API.

###Usage

var forecast = require("./forecastgooglemaps");

/*
To get your forecast.io API key, go to
http://developer.forecast.io
and sign up. You get 1000 free requests per day, which should be more than enough.
*/
var forecastAPIKey = "YOUR_FORECAST_IO_API_KEY";

/*
To get your Google Maps API key, go to
https://developers.google.com/maps/documentation/geocoding/get-api-key
and sign up. You get 2500 free requests per day.
*/
var googleMapsAPIKey = "YOUR_GOOGLE_MAPS_API_KEY";

// Gets the city name from the command line "node index.js CITY NAME"
var city = process.argv.slice(2);

/*
Usage
On the command line
"node index.js CITY NAME"
Example
"node index.js Los Angeles"
*/
forecast.getTemperature(city, googleMapsAPIKey, forecastAPIKey);


FAQs

Package last updated on 24 Feb 2016

Did you know?

Socket

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.

Install

Related posts