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
@@ -199,8 +199,8 @@ describe "Wunderground" do
199
199
  # build current
200
200
  #@measurement.current.sun.rise.should == sun_rise
201
201
  #@measurement.current.sun.set.should == sun_set
202
- @measurement.current.sun.rise.to_s.should == "06:23 am"
203
- @measurement.current.sun.set.to_s.should == "08:45 pm"
202
+ @measurement.current.sun.rise.to_s.should == "05:26 am"
203
+ @measurement.current.sun.set.to_s.should == "09:41 pm"
204
204
  end
205
205
 
206
206
  end
@@ -139,8 +139,8 @@ describe "Yahoo" do
139
139
  # build current
140
140
  #@measurement.current.sun.rise.should == sun_rise
141
141
  #@measurement.current.sun.set.should == sun_set
142
- @measurement.current.sun.rise.to_s.should == "06:09 am"
143
- @measurement.current.sun.set.to_s.should == "07:34 pm"
142
+ @measurement.current.sun.rise.to_s.should == "05:42 am"
143
+ @measurement.current.sun.set.to_s.should == "07:57 pm"
144
144
 
145
145
  # builds location
146
146
  @measurement.location.city.should == "Beverly Hills"
@@ -148,29 +148,17 @@ describe "Yahoo" do
148
148
  # builds forecasts
149
149
  @measurement.forecast.size.should == 2
150
150
 
151
- @measurement.forecast[0].condition.should == "Mostly Sunny"
152
- @measurement.forecast[0].icon.should == "34"
153
- @measurement.forecast[0].sun.rise.should == "06:09 am"
154
- @measurement.forecast[0].sun.set.should == "07:34 pm"
151
+ @measurement.forecast[0].condition.should == "Clear"
152
+ @measurement.forecast[0].icon.should == "31"
153
+ @measurement.forecast[0].sun.rise.should == "05:42 am"
154
+ @measurement.forecast[0].sun.set.should == "07:57 pm"
155
155
 
156
- @measurement.forecast[1].condition.should == "Cloudy"
157
- @measurement.forecast[1].icon.should == "26"
158
- @measurement.forecast[1].sun.rise.should == "06:09 am"
159
- @measurement.forecast[1].sun.set.should == "07:34 pm"
156
+ @measurement.forecast[1].condition.should == "Mostly Sunny"
157
+ @measurement.forecast[1].icon.should == "34"
158
+ @measurement.forecast[1].sun.rise.should == "05:42 am"
159
+ @measurement.forecast[1].sun.set.should == "07:57 pm"
160
160
 
161
161
  end
162
- # <yweather:location city="Beverly Hills" region="CA" country="US"/>
163
- # <yweather:units temperature="C" distance="km" pressure="mb" speed="kph"/>
164
- # <yweather:wind chill="17" direction="0" speed="4.83" />
165
- # <yweather:atmosphere humidity="50" visibility="16.09" pressure="1017" rising="0" />
166
- # <item>
167
- # <geo:lat>34.08</geo:lat>
168
- # <geo:long>-118.4</geo:long>
169
- # <pubDate>Sun, 26 Apr 2009 10:51 am PDT</pubDate>
170
- # <yweather:condition text="Partly Cloudy" code="30" temp="17" date="Sun, 26 Apr 2009 10:51 am PDT" />
171
- # <yweather:forecast day="Sun" date="26 Apr 2009" low="11" high="19"
172
- # <yweather:forecast day="Mon" date="27 Apr 2009" low="11" high="18"
173
- # </item>
174
162
 
175
163
  end
176
164
 
@@ -18,11 +18,8 @@ describe "Query::Geocode" do
18
18
  lambda { Barometer::WebService::Geocode.fetch(query) }.should_not raise_error(ArgumentError)
19
19
  end
20
20
 
21
- it "detects the key" do
21
+ it "queries (key no longer required)" do
22
22
  query = Barometer::Query.new(@zipcode)
23
- Barometer.google_geocode_key = nil
24
- Barometer::WebService::Geocode.fetch(query).should be_nil
25
- Barometer.google_geocode_key = KEY
26
23
  Barometer::WebService::Geocode.fetch(query).should_not be_nil
27
24
  end
28
25
 
@@ -33,13 +30,6 @@ describe "Query::Geocode" do
33
30
 
34
31
  end
35
32
 
36
- it "detects the Google Geocode Key" do
37
- Barometer.google_geocode_key = nil
38
- Barometer::WebService::Geocode.send("_has_geocode_key?").should be_false
39
- Barometer.google_geocode_key = KEY
40
- Barometer::WebService::Geocode.send("_has_geocode_key?").should be_true
41
- end
42
-
43
33
  end
44
34
 
45
35
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 1
9
- version: 0.7.1
8
+ - 2
9
+ version: 0.7.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Mark G
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-06-01 00:00:00 -04:00
17
+ date: 2011-06-02 00:00:00 -04:00
18
18
  default_executable: barometer
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -178,24 +178,18 @@ files:
178
178
  - spec/data/zone_spec.rb
179
179
  - spec/fakeweb_helper.rb
180
180
  - spec/fixtures/formats/weather_id/90210.xml
181
- - spec/fixtures/formats/weather_id/atlanta.xml
182
181
  - spec/fixtures/formats/weather_id/from_USGA0028.xml
183
182
  - spec/fixtures/formats/weather_id/ksfo.xml
183
+ - spec/fixtures/formats/weather_id/manhattan.xml
184
184
  - spec/fixtures/formats/weather_id/new_york.xml
185
+ - spec/fixtures/formats/weather_id/the_hills.xml
185
186
  - spec/fixtures/geocode/40_73.json
186
- - spec/fixtures/geocode/40_73.xml
187
187
  - spec/fixtures/geocode/90210.json
188
- - spec/fixtures/geocode/90210.xml
189
188
  - spec/fixtures/geocode/T5B4M9.json
190
- - spec/fixtures/geocode/T5B4M9.xml
191
189
  - spec/fixtures/geocode/atlanta.json
192
- - spec/fixtures/geocode/atlanta.xml
193
190
  - spec/fixtures/geocode/calgary_ab.json
194
- - spec/fixtures/geocode/calgary_ab.xml
195
191
  - spec/fixtures/geocode/ksfo.json
196
- - spec/fixtures/geocode/ksfo.xml
197
192
  - spec/fixtures/geocode/newyork_ny.json
198
- - spec/fixtures/geocode/newyork_ny.xml
199
193
  - spec/fixtures/services/google/calgary_ab.xml
200
194
  - spec/fixtures/services/placemaker/T5B4M9.xml
201
195
  - spec/fixtures/services/placemaker/atlanta.xml
@@ -281,24 +275,18 @@ test_files:
281
275
  - spec/data/zone_spec.rb
282
276
  - spec/fakeweb_helper.rb
283
277
  - spec/fixtures/formats/weather_id/90210.xml
284
- - spec/fixtures/formats/weather_id/atlanta.xml
285
278
  - spec/fixtures/formats/weather_id/from_USGA0028.xml
286
279
  - spec/fixtures/formats/weather_id/ksfo.xml
280
+ - spec/fixtures/formats/weather_id/manhattan.xml
287
281
  - spec/fixtures/formats/weather_id/new_york.xml
282
+ - spec/fixtures/formats/weather_id/the_hills.xml
288
283
  - spec/fixtures/geocode/40_73.json
289
- - spec/fixtures/geocode/40_73.xml
290
284
  - spec/fixtures/geocode/90210.json
291
- - spec/fixtures/geocode/90210.xml
292
285
  - spec/fixtures/geocode/T5B4M9.json
293
- - spec/fixtures/geocode/T5B4M9.xml
294
286
  - spec/fixtures/geocode/atlanta.json
295
- - spec/fixtures/geocode/atlanta.xml
296
287
  - spec/fixtures/geocode/calgary_ab.json
297
- - spec/fixtures/geocode/calgary_ab.xml
298
288
  - spec/fixtures/geocode/ksfo.json
299
- - spec/fixtures/geocode/ksfo.xml
300
289
  - spec/fixtures/geocode/newyork_ny.json
301
- - spec/fixtures/geocode/newyork_ny.xml
302
290
  - spec/fixtures/services/google/calgary_ab.xml
303
291
  - spec/fixtures/services/placemaker/T5B4M9.xml
304
292
  - spec/fixtures/services/placemaker/atlanta.xml
@@ -1 +0,0 @@
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='USGA0028' type='1'> Atlanta, GA </loc> <loc id='USGA0029' type='1'> Atlanta/Fulton County Arpt, GA </loc> </search>
@@ -1 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" ?> <kml xmlns="http://earth.google.com/kml/2.0"><Response> <name>40.756054,-73.986951</name> <Status> <code>200</code> <request>geocode</request> </Status> <Placemark id="p1"> <address>1475 Broadway, New York, NY 10036, USA</address> <AddressDetails Accuracy="8" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName><AdministrativeArea><AdministrativeAreaName>NY</AdministrativeAreaName><Locality><LocalityName>New York</LocalityName><Thoroughfare><ThoroughfareName>1475 Broadway</ThoroughfareName></Thoroughfare><PostalCode><PostalCodeNumber>10036</PostalCodeNumber></PostalCode></Locality></AdministrativeArea></Country></AddressDetails> <ExtendedData> <LatLonBox north="40.7593486" south="40.7530534" east="-73.9833654" west="-73.9896606" /> </ExtendedData> <Point><coordinates>-73.9865130,40.7562010,0</coordinates></Point> </Placemark> <Placemark id="p2"> <address>Theater District - Times Square, New York, NY, USA</address> <AddressDetails Accuracy="4" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName><AdministrativeArea><AdministrativeAreaName>NY</AdministrativeAreaName><Locality><LocalityName>New York</LocalityName><AddressLine>Theater District - Times Square</AddressLine></Locality></AdministrativeArea></Country></AddressDetails> <ExtendedData> <LatLonBox north="40.7641790" south="40.7537300" east="-73.9790780" west="-73.9908821" /> </ExtendedData> <Point><coordinates>-73.9844722,40.7590110,0</coordinates></Point> </Placemark> <Placemark id="p3"> <address>New York 10036, USA</address> <AddressDetails Accuracy="5" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName><AdministrativeArea><AdministrativeAreaName>NY</AdministrativeAreaName><PostalCode><PostalCodeNumber>10036</PostalCodeNumber></PostalCode></AdministrativeArea></Country></AddressDetails> <ExtendedData> <LatLonBox north="40.7654810" south="40.7534830" east="-73.9781150" west="-74.0016340" /> </ExtendedData> <Point><coordinates>-73.9903489,40.7598450,0</coordinates></Point> </Placemark> <Placemark id="p4"> <address>Midtown, New York, NY, USA</address> <AddressDetails Accuracy="4" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName><AdministrativeArea><AdministrativeAreaName>NY</AdministrativeAreaName><Locality><LocalityName>New York</LocalityName><AddressLine>Midtown</AddressLine></Locality></AdministrativeArea></Country></AddressDetails> <ExtendedData> <LatLonBox north="40.8060980" south="40.7273300" east="-73.9422169" west="-74.0088202" /> </ExtendedData> <Point><coordinates>-73.9771260,40.7690810,0</coordinates></Point> </Placemark> <Placemark id="p5"> <address>Manhattan, New York, USA</address> <AddressDetails Accuracy="4" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName><AdministrativeArea><AdministrativeAreaName>NY</AdministrativeAreaName><AddressLine>Manhattan</AddressLine></AdministrativeArea></Country></AddressDetails> <ExtendedData> <LatLonBox north="40.8820000" south="40.6795170" east="-73.9072000" west="-74.0472500" /> </ExtendedData> <Point><coordinates>-73.9712488,40.7830603,0</coordinates></Point> </Placemark> <Placemark id="p6"> <address>New York, New York, USA</address> <AddressDetails Accuracy="3" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName><AdministrativeArea><AdministrativeAreaName>NY</AdministrativeAreaName><AddressLine>New York</AddressLine></AdministrativeArea></Country></AddressDetails> <ExtendedData> <LatLonBox north="40.8820000" south="40.6795170" east="-73.9072000" west="-74.0472500" /> </ExtendedData> <Point><coordinates>-73.9712488,40.7830603,0</coordinates></Point> </Placemark> <Placemark id="p7"> <address>New York, NY, USA</address> <AddressDetails Accuracy="4" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName><AdministrativeArea><AdministrativeAreaName>NY</AdministrativeAreaName><Locality><LocalityName>New York</LocalityName></Locality></AdministrativeArea></Country></AddressDetails> <ExtendedData> <LatLonBox north="40.9174990" south="40.4773830" east="-73.6997930" west="-74.2590900" /> </ExtendedData> <Point><coordinates>-73.9869510,40.7560540,0</coordinates></Point> </Placemark> <Placemark id="p8"> <address>New York, USA</address> <AddressDetails Accuracy="2" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName><AdministrativeArea><AdministrativeAreaName>NY</AdministrativeAreaName></AdministrativeArea></Country></AddressDetails> <ExtendedData> <LatLonBox north="45.0158510" south="40.4773830" east="-71.7774920" west="-79.7625900" /> </ExtendedData> <Point><coordinates>-74.2179326,43.2994285,0</coordinates></Point> </Placemark> <Placemark id="p9"> <address>United States</address> <AddressDetails Accuracy="1" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName></Country></AddressDetails> <ExtendedData> <LatLonBox north="71.4343570" south="17.8315100" east="-65.1685040" west="172.3478480" /> </ExtendedData> <Point><coordinates>-95.7128910,37.0902400,0</coordinates></Point> </Placemark> </Response></kml>
@@ -1 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" ?> <kml xmlns="http://earth.google.com/kml/2.0"><Response> <name>90210</name> <Status> <code>200</code> <request>geocode</request> </Status> <Placemark id="p1"> <address>Beverly Hills, CA 90210, USA</address> <AddressDetails Accuracy="5" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName><AdministrativeArea><AdministrativeAreaName>CA</AdministrativeAreaName><Locality><LocalityName>Beverly Hills</LocalityName><PostalCode><PostalCodeNumber>90210</PostalCodeNumber></PostalCode></Locality></AdministrativeArea></Country></AddressDetails> <ExtendedData> <LatLonBox north="34.1391900" south="34.0670180" east="-118.3897100" west="-118.4427960" /> </ExtendedData> <Point><coordinates>-118.4104684,34.1030032,0</coordinates></Point> </Placemark> </Response></kml>
@@ -1 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" ?> <kml xmlns="http://earth.google.com/kml/2.0"><Response> <name>T5B 4M9</name> <Status> <code>200</code> <request>geocode</request> </Status> <Placemark id="p1"> <address>Alberta T5B 4M9, Canada</address> <AddressDetails Accuracy="5" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>CA</CountryNameCode><CountryName>Canada</CountryName><AdministrativeArea><AdministrativeAreaName>AB</AdministrativeAreaName><PostalCode><PostalCodeNumber>T5B 4M9</PostalCodeNumber></PostalCode></AdministrativeArea></Country></AddressDetails> <ExtendedData> <LatLonBox north="53.5735946" south="53.5672994" east="-113.4529354" west="-113.4592306" /> </ExtendedData> <Point><coordinates>-113.4560830,53.5704470,0</coordinates></Point> </Placemark> </Response></kml>
@@ -1 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" ?> <kml xmlns="http://earth.google.com/kml/2.0"><Response> <name>Atlanta, GA, US</name> <Status> <code>200</code> <request>geocode</request> </Status> <Placemark id="p1"> <address>Atlanta, GA, USA</address> <AddressDetails Accuracy="4" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName><AdministrativeArea><AdministrativeAreaName>GA</AdministrativeAreaName><Locality><LocalityName>Atlanta</LocalityName></Locality></AdministrativeArea></Country></AddressDetails> <ExtendedData> <LatLonBox north="33.8869080" south="33.6478380" east="-84.2894180" west="-84.5466630" /> </ExtendedData> <Point><coordinates>-84.3896630,33.7544870,0</coordinates></Point> </Placemark> </Response></kml>
@@ -1 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" ?> <kml xmlns="http://earth.google.com/kml/2.0"><Response> <name>Calgary,AB</name> <Status> <code>200</code> <request>geocode</request> </Status> <Placemark id="p1"> <address>Calgary, AB, Canada</address> <AddressDetails Accuracy="4" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>CA</CountryNameCode><CountryName>Canada</CountryName><AdministrativeArea><AdministrativeAreaName>AB</AdministrativeAreaName><Locality><LocalityName>Calgary</LocalityName></Locality></AdministrativeArea></Country></AddressDetails> <ExtendedData> <LatLonBox north="51.1838270" south="50.8417840" east="-113.9057040" west="-114.2713780" /> </ExtendedData> <Point><coordinates>-114.0624380,51.0551490,0</coordinates></Point> </Placemark> </Response></kml>
@@ -1 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" ?> <kml xmlns="http://earth.google.com/kml/2.0"><Response> <name>KSFO</name> <Status> <code>200</code> <request>geocode</request> </Status> <Placemark id="p1"> <address>San Francisco Airport, United States</address> <AddressDetails Accuracy="9" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName><AddressLine>San Francisco Airport</AddressLine></Country></AddressDetails> <ExtendedData> <LatLonBox north="37.6401700" south="37.6041790" east="-122.3548940" west="-122.4015610" /> </ExtendedData> <Point><coordinates>-122.3899790,37.6152230,0</coordinates></Point> </Placemark> </Response></kml>
@@ -1 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8" ?> <kml xmlns="http://earth.google.com/kml/2.0"><Response> <name>New York, NY</name> <Status> <code>200</code> <request>geocode</request> </Status> <Placemark id="p1"> <address>New York, NY, USA</address> <AddressDetails Accuracy="4" xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</CountryName><AdministrativeArea><AdministrativeAreaName>NY</AdministrativeAreaName><Locality><LocalityName>New York</LocalityName></Locality></AdministrativeArea></Country></AddressDetails> <ExtendedData> <LatLonBox north="40.9174990" south="40.4773830" east="-73.6997930" west="-74.2590900" /> </ExtendedData> <Point><coordinates>-73.9869510,40.7560540,0</coordinates></Point> </Placemark> </Response></kml>