barometer 0.7.1 → 0.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. data/README.rdoc +8 -23
  2. data/TODO +4 -2
  3. data/VERSION.yml +1 -1
  4. data/barometer.gemspec +2 -2
  5. data/bin/barometer +2 -20
  6. data/lib/barometer.rb +0 -4
  7. data/lib/barometer/data/geo.rb +14 -11
  8. data/lib/barometer/weather_services/google.rb +1 -1
  9. data/lib/barometer/web_services/geocode.rb +4 -9
  10. data/lib/barometer/web_services/placemaker.rb +2 -0
  11. data/spec/barometer_spec.rb +0 -10
  12. data/spec/fakeweb_helper.rb +50 -30
  13. data/spec/fixtures/formats/weather_id/90210.xml +7 -1
  14. data/spec/fixtures/formats/weather_id/from_USGA0028.xml +3 -1
  15. data/spec/fixtures/formats/weather_id/ksfo.xml +1 -1
  16. data/spec/fixtures/formats/weather_id/manhattan.xml +7 -0
  17. data/spec/fixtures/formats/weather_id/new_york.xml +1 -1
  18. data/spec/fixtures/formats/weather_id/the_hills.xml +1 -0
  19. data/spec/fixtures/geocode/40_73.json +10 -142
  20. data/spec/fixtures/geocode/90210.json +9 -12
  21. data/spec/fixtures/geocode/T5B4M9.json +11 -8
  22. data/spec/fixtures/geocode/atlanta.json +1 -1
  23. data/spec/fixtures/geocode/calgary_ab.json +6 -6
  24. data/spec/fixtures/geocode/ksfo.json +14 -14
  25. data/spec/fixtures/geocode/newyork_ny.json +5 -5
  26. data/spec/fixtures/services/google/calgary_ab.xml +1 -1
  27. data/spec/fixtures/services/placemaker/w615702.xml +40 -39
  28. data/spec/fixtures/services/weather_dot_com/90210.xml +1 -1
  29. data/spec/fixtures/services/wunderground/current_calgary_ab.xml +9 -1
  30. data/spec/fixtures/services/wunderground/forecast_calgary_ab.xml +13 -1
  31. data/spec/fixtures/services/yahoo/90210.xml +3 -1
  32. data/spec/formats/coordinates_spec.rb +3 -11
  33. data/spec/formats/geocode_spec.rb +33 -41
  34. data/spec/formats/weather_id_spec.rb +0 -4
  35. data/spec/formats/woe_id_spec.rb +0 -4
  36. data/spec/query_spec.rb +4 -23
  37. data/spec/spec_helper.rb +0 -1
  38. data/spec/weather_services/weather_dot_com_spec.rb +32 -32
  39. data/spec/weather_services/wunderground_spec.rb +2 -2
  40. data/spec/weather_services/yahoo_spec.rb +10 -22
  41. data/spec/web_services/geocode_spec.rb +1 -11
  42. metadata +7 -19
  43. data/spec/fixtures/formats/weather_id/atlanta.xml +0 -1
  44. data/spec/fixtures/geocode/40_73.xml +0 -1
  45. data/spec/fixtures/geocode/90210.xml +0 -1
  46. data/spec/fixtures/geocode/T5B4M9.xml +0 -1
  47. data/spec/fixtures/geocode/atlanta.xml +0 -1
  48. data/spec/fixtures/geocode/calgary_ab.xml +0 -1
  49. data/spec/fixtures/geocode/ksfo.xml +0 -1
  50. data/spec/fixtures/geocode/newyork_ny.xml +0 -1
@@ -1 +1,7 @@
1
- <?xml version='1.0' encoding='ISO-8859-1'?> <!-- This document is intended only for use by authorized licensees of The --> <!-- Weather Channel. Unauthorized use is prohibited. Copyright 1995-2009, --> <!-- The Weather Channel Interactive, Inc. All Rights Reserved. --> <search ver='3.0'> <loc id='USCA0090' type='1'> Beverly Hills, CA </loc> </search>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- This document is intended only for use by authorized licensees of The -->
3
+ <!-- Weather Channel. Unauthorized use is prohibited. Copyright 1995-2011, -->
4
+ <!-- The Weather Channel Interactive, Inc. All Rights Reserved. -->
5
+ <search ver="3.0">
6
+ <loc id="90210" type="4">Beverly Hills, CA (90210)</loc>
7
+ </search>
@@ -1 +1,3 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"> <channel> <title>Yahoo! Weather - Atlanta, GA</title> <link>http://us.rd.yahoo.com/dailynews/rss/weather/Atlanta__GA/*http://weather.yahoo.com/forecast/USGA0028_f.html</link> <description>Yahoo! Weather for Atlanta, GA</description> <language>en-us</language> <lastBuildDate>Mon, 04 May 2009 2:52 am EDT</lastBuildDate> <ttl>60</ttl> <yweather:location city="Atlanta" region="GA" country="US"/> <yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/> <yweather:wind chill="63" direction="230" speed="8" /> <yweather:atmosphere humidity="90" visibility="10" pressure="29.96" rising="0" /> <yweather:astronomy sunrise="6:47 am" sunset="8:23 pm"/> <image> <title>Yahoo! Weather</title> <width>142</width> <height>18</height> <link>http://weather.yahoo.com</link> <url>http://l.yimg.com/a/i/us/nws/th/main_142b.gif</url> </image> <item> <title>Conditions for Atlanta, GA at 2:52 am EDT</title> <geo:lat>33.75</geo:lat> <geo:long>-84.39</geo:long> <link>http://us.rd.yahoo.com/dailynews/rss/weather/Atlanta__GA/*http://weather.yahoo.com/forecast/USGA0028_f.html</link> <pubDate>Mon, 04 May 2009 2:52 am EDT</pubDate> <yweather:condition text="Mostly Cloudy" code="27" temp="63" date="Mon, 04 May 2009 2:52 am EDT" /> <description><![CDATA[ <img src="http://l.yimg.com/a/i/us/we/52/27.gif"/><br /> <b>Current Conditions:</b><br /> Mostly Cloudy, 63 F<BR /> <BR /><b>Forecast:</b><BR /> Mon - Strong Storms. High: 77 Low: 64<br /> Tue - Thunderstorms. High: 70 Low: 59<br /> <br /> <a href="http://us.rd.yahoo.com/dailynews/rss/weather/Atlanta__GA/*http://weather.yahoo.com/forecast/USGA0028_f.html">Full Forecast at Yahoo! Weather</a><BR/> (provided by The Weather Channel)<br/> ]]></description> <yweather:forecast day="Mon" date="4 May 2009" low="64" high="77" text="Strong Storms" code="3" /> <yweather:forecast day="Tue" date="5 May 2009" low="59" high="70" text="Thunderstorms" code="4" /> <guid isPermaLink="false">USGA0028_2009_05_04_2_52_EDT</guid> </item> </channel> </rss><!-- api4.weather.sp1.yahoo.com compressed/chunked Mon May 4 00:02:14 PDT 2009 -->
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"> <channel>
2
+
3
+ <title>Yahoo! Weather - Atlanta, GA</title> <link>http://us.rd.yahoo.com/dailynews/rss/weather/Atlanta__GA/*http://weather.yahoo.com/forecast/USGA0028_f.html</link> <description>Yahoo! Weather for Atlanta, GA</description> <language>en-us</language> <lastBuildDate>Wed, 01 Jun 2011 5:52 pm EDT</lastBuildDate> <ttl>60</ttl> <yweather:location city="Atlanta" region="GA" country="US"/> <yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/> <yweather:wind chill="95" direction="60" speed="12" /> <yweather:atmosphere humidity="33" visibility="10" pressure="30.11" rising="2" /> <yweather:astronomy sunrise="6:27 am" sunset="8:40 pm"/> <image> <title>Yahoo! Weather</title> <width>142</width> <height>18</height> <link>http://weather.yahoo.com</link> <url>http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif</url> </image> <item> <title>Conditions for Atlanta, GA at 5:52 pm EDT</title> <geo:lat>33.75</geo:lat> <geo:long>-84.39</geo:long> <link>http://us.rd.yahoo.com/dailynews/rss/weather/Atlanta__GA/*http://weather.yahoo.com/forecast/USGA0028_f.html</link> <pubDate>Wed, 01 Jun 2011 5:52 pm EDT</pubDate> <yweather:condition text="Partly Cloudy" code="30" temp="95" date="Wed, 01 Jun 2011 5:52 pm EDT" /> <description><![CDATA[ <img src="http://l.yimg.com/a/i/us/we/52/30.gif"/><br /> <b>Current Conditions:</b><br /> Partly Cloudy, 95 F<BR /> <BR /><b>Forecast:</b><BR /> Wed - Clear. High: 94 Low: 73<br /> Thu - Mostly Sunny. High: 96 Low: 69<br /> <br /> <a href="http://us.rd.yahoo.com/dailynews/rss/weather/Atlanta__GA/*http://weather.yahoo.com/forecast/USGA0028_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/> (provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/> ]]></description> <yweather:forecast day="Wed" date="1 Jun 2011" low="73" high="94" text="Clear" code="31" /> <yweather:forecast day="Thu" date="2 Jun 2011" low="69" high="96" text="Mostly Sunny" code="34" /> <guid isPermaLink="false">USGA0028_2011_06_01_17_52_EDT</guid> </item> </channel> </rss> <!-- api6.weather.ac4.yahoo.com uncompressed/chunked Wed Jun 1 15:23:52 PDT 2011 --><?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"> <channel> <title>Yahoo! Weather - Atlanta, GA</title> <link>http://us.rd.yahoo.com/dailynews/rss/weather/Atlanta__GA/*http://weather.yahoo.com/forecast/USGA0028_f.html</link> <description>Yahoo! Weather for Atlanta, GA</description> <language>en-us</language> <lastBuildDate>Mon, 04 May 2009 2:52 am EDT</lastBuildDate> <ttl>60</ttl> <yweather:location city="Atlanta" region="GA" country="US"/> <yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/> <yweather:wind chill="63" direction="230" speed="8" /> <yweather:atmosphere humidity="90" visibility="10" pressure="29.96" rising="0" /> <yweather:astronomy sunrise="6:47 am" sunset="8:23 pm"/> <image> <title>Yahoo! Weather</title> <width>142</width> <height>18</height> <link>http://weather.yahoo.com</link> <url>http://l.yimg.com/a/i/us/nws/th/main_142b.gif</url> </image> <item> <title>Conditions for Atlanta, GA at 2:52 am EDT</title> <geo:lat>33.75</geo:lat> <geo:long>-84.39</geo:long> <link>http://us.rd.yahoo.com/dailynews/rss/weather/Atlanta__GA/*http://weather.yahoo.com/forecast/USGA0028_f.html</link> <pubDate>Mon, 04 May 2009 2:52 am EDT</pubDate> <yweather:condition text="Mostly Cloudy" code="27" temp="63" date="Mon, 04 May 2009 2:52 am EDT" /> <description><![CDATA[ <img src="http://l.yimg.com/a/i/us/we/52/27.gif"/><br /> <b>Current Conditions:</b><br /> Mostly Cloudy, 63 F<BR /> <BR /><b>Forecast:</b><BR /> Mon - Strong Storms. High: 77 Low: 64<br /> Tue - Thunderstorms. High: 70 Low: 59<br /> <br /> <a href="http://us.rd.yahoo.com/dailynews/rss/weather/Atlanta__GA/*http://weather.yahoo.com/forecast/USGA0028_f.html">Full Forecast at Yahoo! Weather</a><BR/> (provided by The Weather Channel)<br/> ]]></description> <yweather:forecast day="Mon" date="4 May 2009" low="64" high="77" text="Strong Storms" code="3" /> <yweather:forecast day="Tue" date="5 May 2009" low="59" high="70" text="Thunderstorms" code="4" /> <guid isPermaLink="false">USGA0028_2009_05_04_2_52_EDT</guid> </item> </channel> </rss><!-- api4.weather.sp1.yahoo.com compressed/chunked Mon May 4 00:02:14 PDT 2009 -->
@@ -1 +1 @@
1
- <?xml version="1.0" encoding="ISO-8859-1"?> <!-- This document is intended only for use by authorized licensees of The --> <!-- Weather Channel. Unauthorized use is prohibited. Copyright 1995-2009, --> <!-- The Weather Channel Interactive, Inc. All Rights Reserved. --> <search ver="3.0"> <loc id="USCA0987" type="1">San Francisco, CA</loc> <loc id="USCA1085" type="1">South San Francisco, CA</loc> </search>
1
+ <?xml version="1.0" encoding="UTF-8"?> <!-- This document is intended only for use by authorized licensees of The --> <!-- Weather Channel. Unauthorized use is prohibited. Copyright 1995-2011, --> <!-- The Weather Channel Interactive, Inc. All Rights Reserved. --> <search ver="3.0"> <loc id="USCA0987" type="1">San Francisco, CA</loc> <loc id="USCA1085" type="1">South San Francisco, CA</loc> </search>
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!-- This document is intended only for use by authorized licensees of The -->
3
+ <!-- Weather Channel. Unauthorized use is prohibited. Copyright 1995-2011, -->
4
+ <!-- The Weather Channel Interactive, Inc. All Rights Reserved. -->
5
+ <search ver="3.0">
6
+ <loc id="USNY0996" type="1">New York, NY</loc>
7
+ </search>
@@ -1 +1 @@
1
- <?xml version='1.0' encoding='ISO-8859-1'?> <!-- This document is intended only for use by authorized licensees of The --> <!-- Weather Channel. Unauthorized use is prohibited. Copyright 1995-2009, --> <!-- The Weather Channel Interactive, Inc. All Rights Reserved. --> <search ver='3.0'> <loc id='USNY0996' type='1'> New York, NY </loc> <loc id='USNY0011' type='1'> Albany, NY </loc> <loc id='USNY0181' type='1'> Buffalo, NY </loc> <loc id='USNY1232' type='1'> Rochester, NY </loc> <loc id='USNY1434' type='1'> Syracuse, NY </loc> <loc id='USNY1010' type='1'> Niagara Falls, NY </loc> <loc id='USNY1630' type='1'> York, NY </loc> <loc id='USNY0997' type='1'> New York Mills, NY </loc> <loc id='USNY0819' type='1'> Little York, NY </loc> <loc id='USNY0998' type='1'> New York/Central Park, NY </loc> </search>
1
+ <?xml version="1.0" encoding="UTF-8"?> <!-- This document is intended only for use by authorized licensees of The --> <!-- Weather Channel. Unauthorized use is prohibited. Copyright 1995-2011, --> <!-- The Weather Channel Interactive, Inc. All Rights Reserved. --> <search ver="3.0"> <loc id="USNY0996" type="1">New York, NY</loc> <loc id="USNY0011" type="1">Albany, NY</loc> <loc id="USNY0181" type="1">Buffalo, NY</loc> <loc id="USNY1232" type="1">Rochester, NY</loc> <loc id="USNY1434" type="1">Syracuse, NY</loc> <loc id="USNY1010" type="1">Niagara Falls, NY</loc> <loc id="USNY1630" type="1">York, NY</loc> <loc id="USNY0997" type="1">New York Mills, NY</loc> <loc id="USNY0819" type="1">Little York, NY</loc> <loc id="USNY0998" type="1">New York/Central Park, NY</loc> </search>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" encoding="UTF-8"?> <!-- This document is intended only for use by authorized licensees of The --> <!-- Weather Channel. Unauthorized use is prohibited. Copyright 1995-2011, --> <!-- The Weather Channel Interactive, Inc. All Rights Reserved. --> <search ver="3.0"> <loc id="USCA0090" type="1">Beverly Hills, CA</loc> </search>
@@ -6,44 +6,20 @@
6
6
  },
7
7
  "Placemark": [ {
8
8
  "id": "p1",
9
- "address": "Times Sq - 42nd St Station, New York, NY 10036, USA",
10
- "AddressDetails": {
11
- "Accuracy" : 9,
12
- "AddressLine" : [ "Times Sq - 42nd St Station" ]
13
- },
14
- "ExtendedData": {
15
- "LatLonBox": {
16
- "north": 40.7591946,
17
- "south": 40.7528994,
18
- "east": -73.9838014,
19
- "west": -73.9900966
20
- }
21
- },
22
- "Point": {
23
- "coordinates": [ -73.9869490, 40.7560470, 0 ]
24
- }
25
- }, {
26
- "id": "p2",
27
- "address": "600-614 7th Ave, New York, NY 10036, USA",
9
+ "address": "601-699 7th Ave, Manhattan, NY 10036, USA",
28
10
  "AddressDetails": {
29
11
  "Accuracy" : 8,
30
12
  "Country" : {
31
13
  "AdministrativeArea" : {
32
14
  "AdministrativeAreaName" : "NY",
33
- "SubAdministrativeArea" : {
34
- "Locality" : {
35
- "DependentLocality" : {
36
- "DependentLocalityName" : "Manhattan",
37
- "PostalCode" : {
38
- "PostalCodeNumber" : "10036"
39
- },
40
- "Thoroughfare" : {
41
- "ThoroughfareName" : "600-614 7th Ave"
42
- }
43
- },
44
- "LocalityName" : "New York"
15
+ "DependentLocality" : {
16
+ "DependentLocalityName" : "Manhattan",
17
+ "PostalCode" : {
18
+ "PostalCodeNumber" : "10036"
45
19
  },
46
- "SubAdministrativeAreaName" : "New York"
20
+ "Thoroughfare" : {
21
+ "ThoroughfareName" : "601-699 7th Ave"
22
+ }
47
23
  }
48
24
  },
49
25
  "CountryName" : "USA",
@@ -59,115 +35,7 @@
59
35
  }
60
36
  },
61
37
  "Point": {
62
- "coordinates": [ -73.9869562, 40.7560561, 0 ]
63
- }
64
- }, {
65
- "id": "p3",
66
- "address": "Times Square-42nd Street, New York, NY 10036, USA",
67
- "AddressDetails": {
68
- "Accuracy" : 9,
69
- "AddressLine" : [ "Times Square-42nd Street" ]
70
- },
71
- "ExtendedData": {
72
- "LatLonBox": {
73
- "north": 40.7591476,
74
- "south": 40.7528524,
75
- "east": -73.9838524,
76
- "west": -73.9901476
77
- }
78
- },
79
- "Point": {
80
- "coordinates": [ -73.9870000, 40.7560000, 0 ]
81
- }
82
- }, {
83
- "id": "p4",
84
- "address": "W 42 ST at 7 AV, New York, NY 10036, USA",
85
- "AddressDetails": {
86
- "Accuracy" : 9,
87
- "AddressLine" : [ "W 42 ST at 7 AV" ]
88
- },
89
- "ExtendedData": {
90
- "LatLonBox": {
91
- "north": 40.7591446,
92
- "south": 40.7528494,
93
- "east": -73.9839964,
94
- "west": -73.9902916
95
- }
96
- },
97
- "Point": {
98
- "coordinates": [ -73.9871440, 40.7559970, 0 ]
99
- }
100
- }, {
101
- "id": "p5",
102
- "address": "W 42 ST at 7 AV, New York, NY 10036, USA",
103
- "AddressDetails": {
104
- "Accuracy" : 9,
105
- "AddressLine" : [ "W 42 ST at 7 AV" ]
106
- },
107
- "ExtendedData": {
108
- "LatLonBox": {
109
- "north": 40.7594606,
110
- "south": 40.7531654,
111
- "east": -73.9842484,
112
- "west": -73.9905436
113
- }
114
- },
115
- "Point": {
116
- "coordinates": [ -73.9873960, 40.7563130, 0 ]
117
- }
118
- }, {
119
- "id": "p6",
120
- "address": "W 42 ST at BROADWAY, New York, NY 10036, USA",
121
- "AddressDetails": {
122
- "Accuracy" : 9,
123
- "AddressLine" : [ "W 42 ST at BROADWAY" ]
124
- },
125
- "ExtendedData": {
126
- "LatLonBox": {
127
- "north": 40.7588236,
128
- "south": 40.7525284,
129
- "east": -73.9831654,
130
- "west": -73.9894606
131
- }
132
- },
133
- "Point": {
134
- "coordinates": [ -73.9863130, 40.7556760, 0 ]
135
- }
136
- }, {
137
- "id": "p7",
138
- "address": "7 AV at W 41 ST, New York, NY 10036, USA",
139
- "AddressDetails": {
140
- "Accuracy" : 9,
141
- "AddressLine" : [ "7 AV at W 41 ST" ]
142
- },
143
- "ExtendedData": {
144
- "LatLonBox": {
145
- "north": 40.7586296,
146
- "south": 40.7523344,
147
- "east": -73.9843024,
148
- "west": -73.9905976
149
- }
150
- },
151
- "Point": {
152
- "coordinates": [ -73.9874500, 40.7554820, 0 ]
153
- }
154
- }, {
155
- "id": "p8",
156
- "address": "7 AV at W 45 ST, New York, NY 10036, USA",
157
- "AddressDetails": {
158
- "Accuracy" : 9,
159
- "AddressLine" : [ "7 AV at W 45 ST" ]
160
- },
161
- "ExtendedData": {
162
- "LatLonBox": {
163
- "north": 40.7610286,
164
- "south": 40.7547334,
165
- "east": -73.9825394,
166
- "west": -73.9888346
167
- }
168
- },
169
- "Point": {
170
- "coordinates": [ -73.9856870, 40.7578810, 0 ]
38
+ "coordinates": [ -73.9869147, 40.7560395, 0 ]
171
39
  }
172
40
  } ]
173
- }
41
+ }
@@ -12,14 +12,11 @@
12
12
  "Country" : {
13
13
  "AdministrativeArea" : {
14
14
  "AdministrativeAreaName" : "CA",
15
- "SubAdministrativeArea" : {
16
- "Locality" : {
17
- "LocalityName" : "Beverly Hills",
18
- "PostalCode" : {
19
- "PostalCodeNumber" : "90210"
20
- }
21
- },
22
- "SubAdministrativeAreaName" : "Los Angeles"
15
+ "Locality" : {
16
+ "LocalityName" : "Beverly Hills",
17
+ "PostalCode" : {
18
+ "PostalCodeNumber" : "90210"
19
+ }
23
20
  }
24
21
  },
25
22
  "CountryName" : "USA",
@@ -28,10 +25,10 @@
28
25
  },
29
26
  "ExtendedData": {
30
27
  "LatLonBox": {
31
- "north": 34.1320070,
32
- "south": 34.0644090,
33
- "east": -118.3809750,
34
- "west": -118.4467140
28
+ "north": 34.1377559,
29
+ "south": 34.0642330,
30
+ "east": -118.3896720,
31
+ "west": -118.4467160
35
32
  }
36
33
  },
37
34
  "Point": {
@@ -6,14 +6,17 @@
6
6
  },
7
7
  "Placemark": [ {
8
8
  "id": "p1",
9
- "address": "Alberta T5B 4M9, Canada",
9
+ "address": "Edmonton, AB T5B 4M9, Canada",
10
10
  "AddressDetails": {
11
11
  "Accuracy" : 5,
12
12
  "Country" : {
13
13
  "AdministrativeArea" : {
14
14
  "AdministrativeAreaName" : "AB",
15
- "PostalCode" : {
16
- "PostalCodeNumber" : "T5B 4M9"
15
+ "Locality" : {
16
+ "LocalityName" : "Edmonton",
17
+ "PostalCode" : {
18
+ "PostalCodeNumber" : "T5B 4M9"
19
+ }
17
20
  }
18
21
  },
19
22
  "CountryName" : "Canada",
@@ -22,14 +25,14 @@
22
25
  },
23
26
  "ExtendedData": {
24
27
  "LatLonBox": {
25
- "north": 53.5735946,
26
- "south": 53.5672994,
27
- "east": -113.4529354,
28
- "west": -113.4592306
28
+ "north": 53.5760390,
29
+ "south": 53.5697438,
30
+ "east": -113.4528782,
31
+ "west": -113.4591735
29
32
  }
30
33
  },
31
34
  "Point": {
32
- "coordinates": [ -113.4560830, 53.5704470, 0 ]
35
+ "coordinates": [ -113.4578400, 53.5705160, 0 ]
33
36
  }
34
37
  } ]
35
38
  }
@@ -35,4 +35,4 @@
35
35
  "coordinates": [ -84.3879824, 33.7489954, 0 ]
36
36
  }
37
37
  } ]
38
- }
38
+ }
@@ -25,14 +25,14 @@
25
25
  },
26
26
  "ExtendedData": {
27
27
  "LatLonBox": {
28
- "north": 51.1672307,
29
- "south": 50.9427954,
30
- "east": -113.8063192,
31
- "west": -114.3185568
28
+ "north": 51.1571063,
29
+ "south": 50.9326218,
30
+ "east": -113.8011034,
31
+ "west": -114.3133410
32
32
  }
33
33
  },
34
34
  "Point": {
35
- "coordinates": [ -114.0624380, 51.0551490, 0 ]
35
+ "coordinates": [ -114.0572222, 51.0450000, 0 ]
36
36
  }
37
37
  } ]
38
- }
38
+ }
@@ -6,21 +6,21 @@
6
6
  },
7
7
  "Placemark": [ {
8
8
  "id": "p1",
9
- "address": "San Francisco International Airport, Millbrae, CA 94030, USA",
9
+ "address": "San Francisco International Airport, San Francisco, CA 94128, USA",
10
10
  "AddressDetails": {
11
11
  "Accuracy" : 9,
12
12
  "Country" : {
13
13
  "AdministrativeArea" : {
14
14
  "AdministrativeAreaName" : "CA",
15
- "SubAdministrativeArea" : {
16
- "Locality" : {
17
- "AddressLine" : [ "San Francisco International Airport" ],
18
- "LocalityName" : "Millbrae",
19
- "PostalCode" : {
20
- "PostalCodeNumber" : "94030"
21
- }
15
+ "Locality" : {
16
+ "AddressLine" : [ "San Francisco International Airport" ],
17
+ "LocalityName" : "San Francisco",
18
+ "PostalCode" : {
19
+ "PostalCodeNumber" : "94128"
22
20
  },
23
- "SubAdministrativeAreaName" : "San Mateo"
21
+ "Thoroughfare" : {
22
+ "ThoroughfareName" : "San Francisco International Airport"
23
+ }
24
24
  }
25
25
  },
26
26
  "CountryName" : "USA",
@@ -29,14 +29,14 @@
29
29
  },
30
30
  "ExtendedData": {
31
31
  "LatLonBox": {
32
- "north": 37.6392104,
33
- "south": 37.6043769,
34
- "east": -122.3549471,
35
- "west": -122.4014108
32
+ "north": 37.6328980,
33
+ "south": 37.5975438,
34
+ "east": -122.3579642,
35
+ "west": -122.4219938
36
36
  }
37
37
  },
38
38
  "Point": {
39
39
  "coordinates": [ -122.3899790, 37.6152230, 0 ]
40
40
  }
41
41
  } ]
42
- }
42
+ }
@@ -25,14 +25,14 @@
25
25
  },
26
26
  "ExtendedData": {
27
27
  "LatLonBox": {
28
- "north": 40.8494506,
29
- "south": 40.5788125,
30
- "east": -73.7498541,
31
- "west": -74.2620917
28
+ "north": 40.8495342,
29
+ "south": 40.5788964,
30
+ "east": -73.7498543,
31
+ "west": -74.2620919
32
32
  }
33
33
  },
34
34
  "Point": {
35
- "coordinates": [ -74.0059729, 40.7142691, 0 ]
35
+ "coordinates": [ -74.0059731, 40.7143528, 0 ]
36
36
  }
37
37
  } ]
38
38
  }
@@ -1 +1 @@
1
- <?xml version="1.0"?><xml_api_reply version="1"><weather module_id="0" tab_id="0" mobile_row="0" mobile_zipped="1" row="0" section="0" ><forecast_information><city data="Calgary, AB"/><postal_code data="Calgary,AB"/><latitude_e6 data=""/><longitude_e6 data=""/><forecast_date data="2009-04-26"/><current_date_time data="2009-04-26 15:14:15 +0000"/><unit_system data="US"/></forecast_information><current_conditions><condition data="Cloudy"/><temp_f data="32"/><temp_c data="0"/><humidity data="Humidity: 64%"/><icon data="/images/weather/cloudy.gif"/><wind_condition data="Wind: NW at 5 mph"/></current_conditions><forecast_conditions><day_of_week data="Sun"/><low data="24"/><high data="42"/><icon data="/images/weather/rain.gif"/><condition data="Sleet"/></forecast_conditions><forecast_conditions><day_of_week data="Mon"/><low data="22"/><high data="37"/><icon data="/images/weather/rain.gif"/><condition data="Sleet"/></forecast_conditions><forecast_conditions><day_of_week data="Tue"/><low data="24"/><high data="40"/><icon data="/images/weather/rain.gif"/><condition data="Sleet"/></forecast_conditions><forecast_conditions><day_of_week data="Wed"/><low data="21"/><high data="43"/><icon data="/images/weather/mostly_cloudy.gif"/><condition data="Mostly Cloudy"/></forecast_conditions></weather></xml_api_reply>
1
+ <?xml version="1.0"?><xml_api_reply version="1"><weather module_id="0" tab_id="0" mobile_row="0" mobile_zipped="1" row="0" section="0" ><forecast_information><city data="Calgary, AB"/><postal_code data="Calgary,AB"/><latitude_e6 data=""/><longitude_e6 data=""/><forecast_date data="2011-06-01"/><current_date_time data="2011-06-01 21:51:53 +0000"/><unit_system data="SI"/></forecast_information><current_conditions><condition data="Mostly Cloudy"/><temp_f data="63"/><temp_c data="17"/><humidity data="Humidity: 52%"/><icon data="http://g0.gstatic.com/images/icons/onebox/weather_mostlycloudy-40.gif"/><wind_condition data="Wind: SE at 16 km/h"/></current_conditions><forecast_conditions><day_of_week data="Wed"/><low data="5"/><high data="15"/><icon data="http://g0.gstatic.com/images/icons/onebox/weather_scatteredthunderstorms-40.gif"/><condition data="Scattered Thunderstorms"/></forecast_conditions><forecast_conditions><day_of_week data="Thu"/><low data="7"/><high data="18"/><icon data="http://g0.gstatic.com/images/icons/onebox/weather_thunderstorms-40.gif"/><condition data="Isolated Thunderstorms"/></forecast_conditions><forecast_conditions><day_of_week data="Fri"/><low data="5"/><high data="18"/><icon data="http://g0.gstatic.com/images/icons/onebox/weather_scatteredthunderstorms-40.gif"/><condition data="Scattered Thunderstorms"/></forecast_conditions><forecast_conditions><day_of_week data="Sat"/><low data="7"/><high data="18"/><icon data="http://g0.gstatic.com/images/icons/onebox/weather_scatteredshowers-40.gif"/><condition data="Scattered Showers"/></forecast_conditions></weather></xml_api_reply>
@@ -1,46 +1,47 @@
1
- <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
- <rss xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" version="2.0">
3
- <channel>
4
- <title>Yahoo! Weather - Paris, FR</title>
5
- <link>http://us.rd.yahoo.com/dailynews/rss/weather/Paris__FR/*http://weather.yahoo.com/forecast/FRXX0076_f.html</link>
6
- <description>Yahoo! Weather for Paris, FR</description>
7
- <language>en-us</language>
8
- <lastBuildDate>Wed, 17 Feb 2010 9:00 am CET</lastBuildDate>
9
- <ttl>60</ttl>
10
- <yweather:location city="Paris" region="" country="France"/>
11
- <yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/>
12
- <yweather:wind chill="34" direction="0" speed="3"/>
13
- <yweather:atmosphere humidity="93" visibility="2.17" pressure="29.23" rising="0"/>
14
- <yweather:astronomy sunrise="7:55 am" sunset="6:14 pm"/>
15
- <image>
16
- <title>Yahoo! Weather</title>
17
- <width>142</width>
18
- <height>18</height>
19
- <link>http://weather.yahoo.com</link>
20
- <url>http://l.yimg.com/a/i/us/nws/th/main_142b.gif</url>
21
- </image>
22
- <item>
23
- <title>Conditions for Paris, FR at 9:00 am CET</title>
24
- <geo:lat>48.86</geo:lat>
25
- <geo:long>2.34</geo:long>
26
- <link>http://us.rd.yahoo.com/dailynews/rss/weather/Paris__FR/*http://weather.yahoo.com/forecast/FRXX0076_f.html</link>
27
- <pubDate>Wed, 17 Feb 2010 9:00 am CET</pubDate>
28
- <yweather:condition text="Light Rain" code="11" temp="34" date="Wed, 17 Feb 2010 9:00 am CET"/>
29
- <description><![CDATA[
30
- <img src="http://l.yimg.com/a/i/us/we/52/11.gif"/><br />
1
+ <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
2
+ <rss version="2.0" xmlns:yweather="http://xml.weather.yahoo.com/ns/rss/1.0" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#">
3
+ <channel>
4
+
5
+ <title>Yahoo! Weather - Paris, FR</title>
6
+ <link>http://us.rd.yahoo.com/dailynews/rss/weather/Paris__FR/*http://weather.yahoo.com/forecast/FRXX0076_f.html</link>
7
+ <description>Yahoo! Weather for Paris, FR</description>
8
+ <language>en-us</language>
9
+ <lastBuildDate>Thu, 02 Jun 2011 4:00 am CEST</lastBuildDate>
10
+ <ttl>60</ttl>
11
+ <yweather:location city="Paris" region="" country="France"/>
12
+ <yweather:units temperature="F" distance="mi" pressure="in" speed="mph"/>
13
+ <yweather:wind chill="54" direction="30" speed="10" />
14
+ <yweather:atmosphere humidity="62" visibility="6.21" pressure="30.39" rising="0" />
15
+ <yweather:astronomy sunrise="5:50 am" sunset="9:44 pm"/>
16
+ <image>
17
+ <title>Yahoo! Weather</title>
18
+ <width>142</width>
19
+ <height>18</height>
20
+ <link>http://weather.yahoo.com</link>
21
+ <url>http://l.yimg.com/a/i/brand/purplelogo//uh/us/news-wea.gif</url>
22
+ </image>
23
+ <item>
24
+ <title>Conditions for Paris, FR at 4:00 am CEST</title>
25
+ <geo:lat>48.86</geo:lat>
26
+ <geo:long>2.34</geo:long>
27
+ <link>http://us.rd.yahoo.com/dailynews/rss/weather/Paris__FR/*http://weather.yahoo.com/forecast/FRXX0076_f.html</link>
28
+ <pubDate>Thu, 02 Jun 2011 4:00 am CEST</pubDate>
29
+ <yweather:condition text="Fair" code="33" temp="54" date="Thu, 02 Jun 2011 4:00 am CEST" />
30
+ <description><![CDATA[
31
+ <img src="http://l.yimg.com/a/i/us/we/52/33.gif"/><br />
31
32
  <b>Current Conditions:</b><br />
32
- Light Rain, 34 F<BR />
33
+ Fair, 54 F<BR />
33
34
  <BR /><b>Forecast:</b><BR />
34
- Wed - Rain/Snow. High: 39 Low: 35<br />
35
- Thu - AM Fog/PM Clouds. High: 43 Low: 36<br />
35
+ Thu - Sunny. High: 75 Low: 56<br />
36
+ Fri - Sunny. High: 82 Low: 68<br />
36
37
  <br />
37
38
  <a href="http://us.rd.yahoo.com/dailynews/rss/weather/Paris__FR/*http://weather.yahoo.com/forecast/FRXX0076_f.html">Full Forecast at Yahoo! Weather</a><BR/><BR/>
38
39
  (provided by <a href="http://www.weather.com" >The Weather Channel</a>)<br/>
39
40
  ]]></description>
40
- <yweather:forecast day="Wed" date="17 Feb 2010" low="35" high="39" text="Rain/Snow" code="5"/>
41
- <yweather:forecast day="Thu" date="18 Feb 2010" low="36" high="43" text="AM Fog/PM Clouds" code="20"/>
42
- <guid isPermaLink="false">FRXX0076_2010_02_17_9_00_CET</guid>
43
- </item>
44
- </channel>
41
+ <yweather:forecast day="Thu" date="2 Jun 2011" low="56" high="75" text="Sunny" code="32" />
42
+ <yweather:forecast day="Fri" date="3 Jun 2011" low="68" high="82" text="Sunny" code="32" />
43
+ <guid isPermaLink="false">FRXX0076_2011_06_02_4_00_CEST</guid>
44
+ </item>
45
+ </channel>
45
46
  </rss>
46
- <!-- api4.weather.ac4.yahoo.com uncompressed/chunked Wed Feb 17 00:36:01 PST 2010 -->
47
+ <!-- api5.weather.ac4.yahoo.com uncompressed/chunked Wed Jun 1 19:22:00 PDT 2011 -->