barometer 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +1 -1
- data/VERSION.yml +1 -1
- data/barometer.gemspec +1 -1
- data/bin/barometer +2 -2
- data/lib/barometer.rb +7 -0
- data/lib/barometer/data/geo.rb +28 -41
- data/lib/barometer/weather_services/weather_bug.rb +1 -1
- data/lib/barometer/web_services/geocode.rb +16 -9
- data/spec/barometer_spec.rb +12 -0
- data/spec/fakeweb_helper.rb +40 -39
- data/spec/fixtures/geocode/40_73_v3.json +497 -0
- data/spec/fixtures/geocode/90210_v3.json +63 -0
- data/spec/fixtures/geocode/T5B4M9_v3.json +68 -0
- data/spec/fixtures/geocode/atlanta_v3.json +58 -0
- data/spec/fixtures/geocode/calgary_ab_v3.json +58 -0
- data/spec/fixtures/geocode/ksfo_v3.json +73 -0
- data/spec/fixtures/geocode/newyork_ny_v3.json +58 -0
- data/spec/fixtures/services/weather_bug/90210_current.xml +93 -1
- data/spec/fixtures/services/weather_bug/90210_forecast.xml +76 -1
- data/spec/formats/coordinates_spec.rb +1 -1
- data/spec/formats/geocode_spec.rb +5 -5
- data/spec/query_spec.rb +4 -4
- data/spec/weather_services/weather_bug_spec.rb +24 -24
- metadata +16 -16
- data/spec/fixtures/geocode/40_73.json +0 -41
- data/spec/fixtures/geocode/90210.json +0 -38
- data/spec/fixtures/geocode/T5B4M9.json +0 -38
- data/spec/fixtures/geocode/atlanta.json +0 -38
- data/spec/fixtures/geocode/calgary_ab.json +0 -38
- data/spec/fixtures/geocode/ksfo.json +0 -42
- data/spec/fixtures/geocode/newyork_ny.json +0 -38
@@ -1,42 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "KSFO",
|
3
|
-
"Status": {
|
4
|
-
"code": 200,
|
5
|
-
"request": "geocode"
|
6
|
-
},
|
7
|
-
"Placemark": [ {
|
8
|
-
"id": "p1",
|
9
|
-
"address": "San Francisco International Airport, San Francisco, CA 94128, USA",
|
10
|
-
"AddressDetails": {
|
11
|
-
"Accuracy" : 9,
|
12
|
-
"Country" : {
|
13
|
-
"AdministrativeArea" : {
|
14
|
-
"AdministrativeAreaName" : "CA",
|
15
|
-
"Locality" : {
|
16
|
-
"AddressLine" : [ "San Francisco International Airport" ],
|
17
|
-
"LocalityName" : "San Francisco",
|
18
|
-
"PostalCode" : {
|
19
|
-
"PostalCodeNumber" : "94128"
|
20
|
-
},
|
21
|
-
"Thoroughfare" : {
|
22
|
-
"ThoroughfareName" : "San Francisco International Airport"
|
23
|
-
}
|
24
|
-
}
|
25
|
-
},
|
26
|
-
"CountryName" : "USA",
|
27
|
-
"CountryNameCode" : "US"
|
28
|
-
}
|
29
|
-
},
|
30
|
-
"ExtendedData": {
|
31
|
-
"LatLonBox": {
|
32
|
-
"north": 37.6328980,
|
33
|
-
"south": 37.5975438,
|
34
|
-
"east": -122.3579642,
|
35
|
-
"west": -122.4219938
|
36
|
-
}
|
37
|
-
},
|
38
|
-
"Point": {
|
39
|
-
"coordinates": [ -122.3899790, 37.6152230, 0 ]
|
40
|
-
}
|
41
|
-
} ]
|
42
|
-
}
|
@@ -1,38 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"name": "New York, NY",
|
3
|
-
"Status": {
|
4
|
-
"code": 200,
|
5
|
-
"request": "geocode"
|
6
|
-
},
|
7
|
-
"Placemark": [ {
|
8
|
-
"id": "p1",
|
9
|
-
"address": "New York, NY, USA",
|
10
|
-
"AddressDetails": {
|
11
|
-
"Accuracy" : 4,
|
12
|
-
"Country" : {
|
13
|
-
"AdministrativeArea" : {
|
14
|
-
"AdministrativeAreaName" : "NY",
|
15
|
-
"SubAdministrativeArea" : {
|
16
|
-
"Locality" : {
|
17
|
-
"LocalityName" : "New York"
|
18
|
-
},
|
19
|
-
"SubAdministrativeAreaName" : "New York"
|
20
|
-
}
|
21
|
-
},
|
22
|
-
"CountryName" : "USA",
|
23
|
-
"CountryNameCode" : "US"
|
24
|
-
}
|
25
|
-
},
|
26
|
-
"ExtendedData": {
|
27
|
-
"LatLonBox": {
|
28
|
-
"north": 40.8495342,
|
29
|
-
"south": 40.5788964,
|
30
|
-
"east": -73.7498543,
|
31
|
-
"west": -74.2620919
|
32
|
-
}
|
33
|
-
},
|
34
|
-
"Point": {
|
35
|
-
"coordinates": [ -74.0059731, 40.7143528, 0 ]
|
36
|
-
}
|
37
|
-
} ]
|
38
|
-
}
|