Skip to content

use YQL to query weather by your device's location (must allow browser to get location by HTML5 geolocation)

Notifications You must be signed in to change notification settings

chuiyi/jsYahooWeather

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsYahooWeather

==============

use YQL to query weather by your device's location (must allow browser to get location by HTML5 geolocation)

  • written by pure javascript code

implement step:

  • use geolocation(HTML5) method to get device's location
  • build a YQL query with jsonp (using geo.placefinder table)
  • next, use the result of placefinder to parse a "woeid" key, use it and query another YQL weather.forecast table
  • now you can get next 5 day's weather at your area

About

use YQL to query weather by your device's location (must allow browser to get location by HTML5 geolocation)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published