Socket
Socket
Sign inDemoInstall

forecastio-googlemaps

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

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.


Version published
Weekly downloads
6
Maintainers
1
Install size
3.29 kB
Created
Weekly downloads
 

Readme

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

Last updated on 24 Feb 2016

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc