geocodio 2.0.1 → 2.0.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.
- checksums.yaml +4 -4
- data/lib/geocodio/address.rb +2 -1
- data/lib/geocodio/version.rb +1 -1
- data/spec/address_spec.rb +8 -4
- data/spec/congressional_district_spec.rb +2 -2
- data/spec/school_district_spec.rb +1 -1
- data/spec/vcr_cassettes/batch_geocode.yml +36 -29
- data/spec/vcr_cassettes/batch_geocode_with_bad_address.yml +11 -11
- data/spec/vcr_cassettes/batch_geocode_with_fields.yml +49 -42
- data/spec/vcr_cassettes/batch_reverse.yml +40 -25
- data/spec/vcr_cassettes/batch_reverse_with_fields.yml +72 -61
- data/spec/vcr_cassettes/geocode.yml +19 -16
- data/spec/vcr_cassettes/geocode_bad_address.yml +4 -6
- data/spec/vcr_cassettes/geocode_with_fields.yml +21 -20
- data/spec/vcr_cassettes/invalid_key.yml +11 -13
- data/spec/vcr_cassettes/parse.yml +13 -14
- data/spec/vcr_cassettes/reverse.yml +21 -18
- data/spec/vcr_cassettes/reverse_with_fields.yml +27 -25
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2d1f89d4c1ab8ee23caad6c1685584da9e8d2a75
|
|
4
|
+
data.tar.gz: 9c386a5f48939073696b3da37f0894cdd4095dbf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 47e4610788b957b4126650e97973fab8dd59ef370728742377127b44a542b515d5aa2294f39bf0c92e53e5553e635b89bf650c31d04d28648b1983f02db8cbb4
|
|
7
|
+
data.tar.gz: 0e8edbcac6e4fe31be1b01fb456a3f288764a6799817bbe8121cec2f3e2791a4e55243a06c9ce20c97ac807d3ff84bf71396fd9ac0a4ea07fe1d9d3d1219aa2a
|
data/lib/geocodio/address.rb
CHANGED
|
@@ -5,7 +5,7 @@ require 'geocodio/timezone'
|
|
|
5
5
|
|
|
6
6
|
module Geocodio
|
|
7
7
|
class Address
|
|
8
|
-
attr_reader :number, :predirectional, :street, :suffix, :city, :state, :zip
|
|
8
|
+
attr_reader :number, :predirectional, :street, :suffix, :city, :state, :zip, :county
|
|
9
9
|
|
|
10
10
|
attr_reader :latitude, :longitude
|
|
11
11
|
alias :lat :latitude
|
|
@@ -48,6 +48,7 @@ module Geocodio
|
|
|
48
48
|
@city = attributes['city']
|
|
49
49
|
@state = attributes['state']
|
|
50
50
|
@zip = attributes['zip']
|
|
51
|
+
@county = attributes['county']
|
|
51
52
|
end
|
|
52
53
|
|
|
53
54
|
def set_coordinates(coordinates)
|
data/lib/geocodio/version.rb
CHANGED
data/spec/address_spec.rb
CHANGED
|
@@ -80,6 +80,10 @@ describe Geocodio::Address do
|
|
|
80
80
|
expect(address.city).to eq('Pasadena')
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
+
it 'has a county' do
|
|
84
|
+
expect(address.county).to eq('Los Angeles County')
|
|
85
|
+
end
|
|
86
|
+
|
|
83
87
|
it 'has a state' do
|
|
84
88
|
expect(address.state).to eq('CA')
|
|
85
89
|
end
|
|
@@ -89,13 +93,13 @@ describe Geocodio::Address do
|
|
|
89
93
|
end
|
|
90
94
|
|
|
91
95
|
it 'has a latitude' do
|
|
92
|
-
expect(address.latitude).to eq(34.
|
|
93
|
-
expect(address.lat).to eq(34.
|
|
96
|
+
expect(address.latitude).to eq(34.145764409091)
|
|
97
|
+
expect(address.lat).to eq(34.145764409091)
|
|
94
98
|
end
|
|
95
99
|
|
|
96
100
|
it 'has a longitude' do
|
|
97
|
-
expect(address.longitude).to eq(-118.
|
|
98
|
-
expect(address.lng).to eq(-118.
|
|
101
|
+
expect(address.longitude).to eq(-118.15159636364)
|
|
102
|
+
expect(address.lng).to eq(-118.15159636364)
|
|
99
103
|
end
|
|
100
104
|
|
|
101
105
|
it 'has an accuracy' do
|
|
@@ -18,11 +18,11 @@ describe Geocodio::CongressionalDistrict do
|
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
it 'has a congress_number' do
|
|
21
|
-
expect(district.congress_number).to eq(
|
|
21
|
+
expect(district.congress_number).to eq(114)
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
it 'has a congress_years' do
|
|
25
|
-
expect(district.congress_years).to eq(
|
|
25
|
+
expect(district.congress_years).to eq(2015..2017)
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
end
|
|
@@ -5,8 +5,8 @@ http_interactions:
|
|
|
5
5
|
uri: http://api.geocod.io/v1/geocode?api_key=secret_api_key
|
|
6
6
|
body:
|
|
7
7
|
encoding: UTF-8
|
|
8
|
-
string:
|
|
9
|
-
|
|
8
|
+
string: '["1 Infinite Loop Cupertino CA 95014","54 West Colorado Boulevard Pasadena
|
|
9
|
+
CA 91105","826 Howard Street San Francisco CA 94103"]'
|
|
10
10
|
headers:
|
|
11
11
|
Accept:
|
|
12
12
|
- application/json
|
|
@@ -21,37 +21,44 @@ http_interactions:
|
|
|
21
21
|
code: 200
|
|
22
22
|
message: OK
|
|
23
23
|
headers:
|
|
24
|
-
Date:
|
|
25
|
-
- Tue, 21 Jan 2014 20:08:06 GMT
|
|
26
24
|
Server:
|
|
27
|
-
-
|
|
28
|
-
|
|
29
|
-
-
|
|
25
|
+
- nginx/1.2.1
|
|
26
|
+
Content-Type:
|
|
27
|
+
- application/json
|
|
28
|
+
Transfer-Encoding:
|
|
29
|
+
- chunked
|
|
30
30
|
Cache-Control:
|
|
31
31
|
- no-cache
|
|
32
|
+
Date:
|
|
33
|
+
- Wed, 22 Jul 2015 17:24:22 GMT
|
|
32
34
|
Access-Control-Allow-Origin:
|
|
33
35
|
- "*"
|
|
34
|
-
Transfer-Encoding:
|
|
35
|
-
- chunked
|
|
36
|
-
Content-Type:
|
|
37
|
-
- application/json
|
|
38
36
|
body:
|
|
39
|
-
encoding:
|
|
40
|
-
string:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
Loop,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
37
|
+
encoding: ASCII-8BIT
|
|
38
|
+
string: '{"results":[{"query":"1 Infinite Loop Cupertino CA 95014","response":{"input":{"address_components":{"number":"1","street":"Infinite","suffix":"Loop","formatted_street":"Infinite
|
|
39
|
+
Loop","city":"Cupertino","state":"CA","zip":"95014"},"formatted_address":"1
|
|
40
|
+
Infinite Loop, Cupertino, CA 95014"},"results":[{"address_components":{"number":"1","street":"Infinite","suffix":"Loop","formatted_street":"Infinite
|
|
41
|
+
Loop","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014"},"formatted_address":"1
|
|
42
|
+
Infinite Loop, Cupertino, CA 95014","location":{"lat":37.330539,"lng":-122.02912},"accuracy":1,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
|
|
43
|
+
dataset from the US Census Bureau"}]}},{"query":"54 West Colorado Boulevard
|
|
44
|
+
Pasadena CA 91105","response":{"input":{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
|
45
|
+
Colorado Blvd","city":"Pasadena","state":"CA","zip":"91105"},"formatted_address":"54
|
|
46
|
+
W Colorado Blvd, Pasadena, CA 91105"},"results":[{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
|
47
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105"},"formatted_address":"54
|
|
48
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145764409091,"lng":-118.15159636364},"accuracy":1,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
|
|
49
|
+
dataset from the US Census Bureau"},{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
|
50
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105"},"formatted_address":"54
|
|
51
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.1457615375,"lng":-118.15193275},"accuracy":0.8,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
|
|
52
|
+
dataset from the US Census Bureau"}]}},{"query":"826 Howard Street San Francisco
|
|
53
|
+
CA 94103","response":{"input":{"address_components":{"number":"826","street":"Howard","suffix":"St","formatted_street":"Howard
|
|
54
|
+
St","city":"San Francisco","state":"CA","zip":"94103"},"formatted_address":"826
|
|
55
|
+
Howard St, San Francisco, CA 94103"},"results":[{"address_components":{"number":"826","street":"Howard","suffix":"St","formatted_street":"Howard
|
|
56
|
+
St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103"},"formatted_address":"826
|
|
57
|
+
Howard St, San Francisco, CA 94103","location":{"lat":37.782831,"lng":-122.40325},"accuracy":1,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
|
|
58
|
+
dataset from the US Census Bureau"},{"address_components":{"number":"826","street":"Howard","suffix":"St","formatted_street":"Howard
|
|
59
|
+
St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103"},"formatted_address":"826
|
|
60
|
+
Howard St, San Francisco, CA 94103","location":{"lat":37.782778460526,"lng":-122.40331643421},"accuracy":0.8,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
|
|
61
|
+
dataset from the US Census Bureau"}]}}]}'
|
|
55
62
|
http_version:
|
|
56
|
-
recorded_at:
|
|
57
|
-
recorded_with: VCR 2.
|
|
63
|
+
recorded_at: Wed, 22 Jul 2015 17:24:22 GMT
|
|
64
|
+
recorded_with: VCR 2.9.3
|
|
@@ -26,21 +26,21 @@ http_interactions:
|
|
|
26
26
|
- application/json
|
|
27
27
|
Transfer-Encoding:
|
|
28
28
|
- chunked
|
|
29
|
-
Connection:
|
|
30
|
-
- keep-alive
|
|
31
29
|
Cache-Control:
|
|
32
30
|
- no-cache
|
|
33
31
|
Date:
|
|
34
|
-
-
|
|
32
|
+
- Wed, 22 Jul 2015 17:24:23 GMT
|
|
35
33
|
Access-Control-Allow-Origin:
|
|
36
34
|
- "*"
|
|
37
35
|
body:
|
|
38
|
-
encoding:
|
|
39
|
-
string: '{"results":[{"query":"1 Infinite Loop Cupertino CA 95014","response":{"input":{"address_components":{"number":"1","street":"Infinite","suffix":"Loop","
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
Loop,
|
|
43
|
-
, , ","
|
|
36
|
+
encoding: ASCII-8BIT
|
|
37
|
+
string: '{"results":[{"query":"1 Infinite Loop Cupertino CA 95014","response":{"input":{"address_components":{"number":"1","street":"Infinite","suffix":"Loop","formatted_street":"Infinite
|
|
38
|
+
Loop","city":"Cupertino","state":"CA","zip":"95014"},"formatted_address":"1
|
|
39
|
+
Infinite Loop, Cupertino, CA 95014"},"results":[{"address_components":{"number":"1","street":"Infinite","suffix":"Loop","formatted_street":"Infinite
|
|
40
|
+
Loop","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014"},"formatted_address":"1
|
|
41
|
+
Infinite Loop, Cupertino, CA 95014","location":{"lat":37.330539,"lng":-122.02912},"accuracy":1,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
|
|
42
|
+
dataset from the US Census Bureau"}]}},{"query":" , , ","response":{"error":"Could
|
|
43
|
+
not geocode address. Postal code or city required."}}]}'
|
|
44
44
|
http_version:
|
|
45
|
-
recorded_at:
|
|
46
|
-
recorded_with: VCR 2.
|
|
45
|
+
recorded_at: Wed, 22 Jul 2015 17:24:23 GMT
|
|
46
|
+
recorded_with: VCR 2.9.3
|
|
@@ -27,52 +27,59 @@ http_interactions:
|
|
|
27
27
|
- application/json
|
|
28
28
|
Transfer-Encoding:
|
|
29
29
|
- chunked
|
|
30
|
-
Connection:
|
|
31
|
-
- keep-alive
|
|
32
30
|
Cache-Control:
|
|
33
31
|
- no-cache
|
|
34
32
|
Date:
|
|
35
|
-
-
|
|
33
|
+
- Wed, 22 Jul 2015 17:24:24 GMT
|
|
36
34
|
Access-Control-Allow-Origin:
|
|
37
35
|
- "*"
|
|
38
36
|
body:
|
|
39
|
-
encoding:
|
|
40
|
-
string: '{"results":[{"query":"1 Infinite Loop Cupertino CA 95014","response":{"input":{"address_components":{"number":"1","street":"Infinite","suffix":"Loop","
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
Loop,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
Blvd
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
Francisco","county":"San Francisco County","state":"CA","zip":"94103"},"formatted_address":"826
|
|
72
|
-
Howard St, San Francisco, CA 94103","location":{"lat":37.
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
37
|
+
encoding: ASCII-8BIT
|
|
38
|
+
string: '{"results":[{"query":"1 Infinite Loop Cupertino CA 95014","response":{"input":{"address_components":{"number":"1","street":"Infinite","suffix":"Loop","formatted_street":"Infinite
|
|
39
|
+
Loop","city":"Cupertino","state":"CA","zip":"95014"},"formatted_address":"1
|
|
40
|
+
Infinite Loop, Cupertino, CA 95014"},"results":[{"address_components":{"number":"1","street":"Infinite","suffix":"Loop","formatted_street":"Infinite
|
|
41
|
+
Loop","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014"},"formatted_address":"1
|
|
42
|
+
Infinite Loop, Cupertino, CA 95014","location":{"lat":37.330539,"lng":-122.02912},"accuracy":1,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
|
|
43
|
+
dataset from the US Census Bureau","fields":{"congressional_district":{"name":"Congressional
|
|
44
|
+
District 17","district_number":17,"congress_number":"114th","congress_years":"2015-2017"},"state_legislative_districts":{"house":{"name":"Assembly
|
|
45
|
+
District 28","district_number":28},"senate":{"name":"State Senate District
|
|
46
|
+
15","district_number":15}},"school_districts":{"elementary":{"name":"Cupertino
|
|
47
|
+
Union Elementary School District","lea_code":"0610290","grade_low":"KG","grade_high":"08"},"secondary":{"name":"Fremont
|
|
48
|
+
Union High School District","lea_code":"0614430","grade_low":"09","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}}]}},{"query":"54
|
|
49
|
+
West Colorado Boulevard Pasadena CA 91105","response":{"input":{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
|
50
|
+
Colorado Blvd","city":"Pasadena","state":"CA","zip":"91105"},"formatted_address":"54
|
|
51
|
+
W Colorado Blvd, Pasadena, CA 91105"},"results":[{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
|
52
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105"},"formatted_address":"54
|
|
53
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145764409091,"lng":-118.15159636364},"accuracy":1,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
|
|
54
|
+
dataset from the US Census Bureau","fields":{"congressional_district":{"name":"Congressional
|
|
55
|
+
District 27","district_number":27,"congress_number":"114th","congress_years":"2015-2017"},"state_legislative_districts":{"house":{"name":"Assembly
|
|
56
|
+
District 41","district_number":41},"senate":{"name":"State Senate District
|
|
57
|
+
25","district_number":25}},"school_districts":{"unified":{"name":"Pasadena
|
|
58
|
+
Unified School District","lea_code":"0629940","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}},{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
|
59
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105"},"formatted_address":"54
|
|
60
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.1457615375,"lng":-118.15193275},"accuracy":0.8,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
|
|
61
|
+
dataset from the US Census Bureau","fields":{"congressional_district":{"name":"Congressional
|
|
62
|
+
District 27","district_number":27,"congress_number":"114th","congress_years":"2015-2017"},"state_legislative_districts":{"house":{"name":"Assembly
|
|
63
|
+
District 41","district_number":41},"senate":{"name":"State Senate District
|
|
64
|
+
25","district_number":25}},"school_districts":{"unified":{"name":"Pasadena
|
|
65
|
+
Unified School District","lea_code":"0629940","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}}]}},{"query":"826
|
|
66
|
+
Howard Street San Francisco CA 94103","response":{"input":{"address_components":{"number":"826","street":"Howard","suffix":"St","formatted_street":"Howard
|
|
67
|
+
St","city":"San Francisco","state":"CA","zip":"94103"},"formatted_address":"826
|
|
68
|
+
Howard St, San Francisco, CA 94103"},"results":[{"address_components":{"number":"826","street":"Howard","suffix":"St","formatted_street":"Howard
|
|
69
|
+
St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103"},"formatted_address":"826
|
|
70
|
+
Howard St, San Francisco, CA 94103","location":{"lat":37.782831,"lng":-122.40325},"accuracy":1,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
|
|
71
|
+
dataset from the US Census Bureau","fields":{"congressional_district":{"name":"Congressional
|
|
72
|
+
District 12","district_number":12,"congress_number":"114th","congress_years":"2015-2017"},"state_legislative_districts":{"house":{"name":"Assembly
|
|
73
|
+
District 17","district_number":17},"senate":{"name":"State Senate District
|
|
74
|
+
11","district_number":11}},"school_districts":{"unified":{"name":"San Francisco
|
|
75
|
+
Unified School District","lea_code":"0634410","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}},{"address_components":{"number":"826","street":"Howard","suffix":"St","formatted_street":"Howard
|
|
76
|
+
St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103"},"formatted_address":"826
|
|
77
|
+
Howard St, San Francisco, CA 94103","location":{"lat":37.782778460526,"lng":-122.40331643421},"accuracy":0.8,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
|
|
78
|
+
dataset from the US Census Bureau","fields":{"congressional_district":{"name":"Congressional
|
|
79
|
+
District 12","district_number":12,"congress_number":"114th","congress_years":"2015-2017"},"state_legislative_districts":{"house":{"name":"Assembly
|
|
80
|
+
District 17","district_number":17},"senate":{"name":"State Senate District
|
|
81
|
+
11","district_number":11}},"school_districts":{"unified":{"name":"San Francisco
|
|
82
|
+
Unified School District","lea_code":"0634410","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}}]}}]}'
|
|
76
83
|
http_version:
|
|
77
|
-
recorded_at:
|
|
78
|
-
recorded_with: VCR 2.
|
|
84
|
+
recorded_at: Wed, 22 Jul 2015 17:24:24 GMT
|
|
85
|
+
recorded_with: VCR 2.9.3
|
|
@@ -5,7 +5,7 @@ http_interactions:
|
|
|
5
5
|
uri: http://api.geocod.io/v1/reverse?api_key=secret_api_key
|
|
6
6
|
body:
|
|
7
7
|
encoding: UTF-8
|
|
8
|
-
string:
|
|
8
|
+
string: '["37.331669,-122.03074","34.145760590909,-118.15204363636","37.7815,-122.404933"]'
|
|
9
9
|
headers:
|
|
10
10
|
Accept:
|
|
11
11
|
- application/json
|
|
@@ -20,34 +20,49 @@ http_interactions:
|
|
|
20
20
|
code: 200
|
|
21
21
|
message: OK
|
|
22
22
|
headers:
|
|
23
|
-
Date:
|
|
24
|
-
- Mon, 03 Feb 2014 16:12:36 GMT
|
|
25
23
|
Server:
|
|
26
|
-
-
|
|
27
|
-
|
|
28
|
-
-
|
|
24
|
+
- nginx/1.2.1
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json
|
|
27
|
+
Transfer-Encoding:
|
|
28
|
+
- chunked
|
|
29
29
|
Cache-Control:
|
|
30
30
|
- no-cache
|
|
31
|
+
Date:
|
|
32
|
+
- Wed, 22 Jul 2015 17:24:20 GMT
|
|
31
33
|
Access-Control-Allow-Origin:
|
|
32
34
|
- "*"
|
|
33
|
-
Transfer-Encoding:
|
|
34
|
-
- chunked
|
|
35
|
-
Content-Type:
|
|
36
|
-
- application/json
|
|
37
35
|
body:
|
|
38
|
-
encoding:
|
|
39
|
-
string:
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
36
|
+
encoding: ASCII-8BIT
|
|
37
|
+
string: '{"results":[{"query":"37.331669,-122.03074","response":{"results":[{"address_components":{"number":"91","street":"Infinite","suffix":"Loop","formatted_street":"Infinite
|
|
38
|
+
Loop","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014"},"formatted_address":"91
|
|
39
|
+
Infinite Loop, Cupertino, CA 95014","location":{"lat":37.332709,"lng":-122.03071},"accuracy":1,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
40
|
+
dataset from the US Census Bureau"},{"address_components":{"number":"19118","street":"Mariani","suffix":"Ave","formatted_street":"Mariani
|
|
41
|
+
Ave","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014"},"formatted_address":"19118
|
|
42
|
+
Mariani Ave, Cupertino, CA 95014","location":{"lat":37.330489,"lng":-122.0305},"accuracy":0.28,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
43
|
+
dataset from the US Census Bureau"},{"address_components":{"number":"19116","street":"Mariani","suffix":"Ave","formatted_street":"Mariani
|
|
44
|
+
Ave","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014"},"formatted_address":"19116
|
|
45
|
+
Mariani Ave, Cupertino, CA 95014","location":{"lat":37.330407,"lng":-122.030873},"accuracy":0.28,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
46
|
+
dataset from the US Census Bureau"}]}},{"query":"34.145760590909,-118.15204363636","response":{"results":[{"address_components":{"number":"43","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
|
47
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105"},"formatted_address":"43
|
|
48
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145766,"lng":-118.15141},"accuracy":1,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
49
|
+
dataset from the US Census Bureau"},{"address_components":{"number":"1","predirectional":"N","street":"De
|
|
50
|
+
Lacey","suffix":"Ave","formatted_street":"N De Lacey Ave","city":"Pasadena","county":"Los
|
|
51
|
+
Angeles County","state":"CA","zip":"91103"},"formatted_address":"1 N De Lacey
|
|
52
|
+
Ave, Pasadena, CA 91103","location":{"lat":34.145759,"lng":-118.15223},"accuracy":0,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
53
|
+
dataset from the US Census Bureau"},{"address_components":{"number":"85","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
|
54
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105"},"formatted_address":"85
|
|
55
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145759,"lng":-118.15223},"accuracy":0,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
56
|
+
dataset from the US Census Bureau"}]}},{"query":"37.7815,-122.404933","response":{"results":[{"address_components":{"number":"177","street":"5th","suffix":"St","formatted_street":"5th
|
|
57
|
+
St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94102"},"formatted_address":"177
|
|
58
|
+
5th St, San Francisco, CA 94102","location":{"lat":37.781925,"lng":-122.405466},"accuracy":0,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
59
|
+
dataset from the US Census Bureau"},{"address_components":{"number":"900","street":"Howard","suffix":"St","formatted_street":"Howard
|
|
60
|
+
St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103"},"formatted_address":"900
|
|
61
|
+
Howard St, San Francisco, CA 94103","location":{"lat":37.7815,"lng":-122.404933},"accuracy":0,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
62
|
+
dataset from the US Census Bureau"},{"address_components":{"number":"861","street":"Howard","suffix":"St","formatted_street":"Howard
|
|
63
|
+
St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103"},"formatted_address":"861
|
|
64
|
+
Howard St, San Francisco, CA 94103","location":{"lat":37.782831,"lng":-122.40325},"accuracy":0,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
65
|
+
dataset from the US Census Bureau"}]}}]}'
|
|
51
66
|
http_version:
|
|
52
|
-
recorded_at:
|
|
53
|
-
recorded_with: VCR 2.
|
|
67
|
+
recorded_at: Wed, 22 Jul 2015 17:24:21 GMT
|
|
68
|
+
recorded_with: VCR 2.9.3
|
|
@@ -26,71 +26,82 @@ http_interactions:
|
|
|
26
26
|
- application/json
|
|
27
27
|
Transfer-Encoding:
|
|
28
28
|
- chunked
|
|
29
|
-
Connection:
|
|
30
|
-
- keep-alive
|
|
31
29
|
Cache-Control:
|
|
32
30
|
- no-cache
|
|
33
31
|
Date:
|
|
34
|
-
-
|
|
32
|
+
- Wed, 22 Jul 2015 17:24:21 GMT
|
|
35
33
|
Access-Control-Allow-Origin:
|
|
36
34
|
- "*"
|
|
37
35
|
body:
|
|
38
|
-
encoding:
|
|
39
|
-
string: '{"results":[{"query":"37.331669,-122.03074","response":{"results":[{"address_components":{"number":"91","street":"Infinite","suffix":"Loop","
|
|
40
|
-
Clara County","state":"CA","zip":"95014"},"formatted_address":"91
|
|
41
|
-
Loop, Cupertino, CA 95014","location":{"lat":37.332709,"lng":-122.03071},"accuracy":1,"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
Union Elementary School District","lea_code":"
|
|
47
|
-
|
|
48
|
-
Ave,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
District
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
District 27","district_number":27,"congress_number":"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
Unified School District","lea_code":"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
36
|
+
encoding: ASCII-8BIT
|
|
37
|
+
string: '{"results":[{"query":"37.331669,-122.03074","response":{"results":[{"address_components":{"number":"91","street":"Infinite","suffix":"Loop","formatted_street":"Infinite
|
|
38
|
+
Loop","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014"},"formatted_address":"91
|
|
39
|
+
Infinite Loop, Cupertino, CA 95014","location":{"lat":37.332709,"lng":-122.03071},"accuracy":1,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
40
|
+
dataset from the US Census Bureau","fields":{"congressional_district":{"name":"Congressional
|
|
41
|
+
District 17","district_number":17,"congress_number":"114th","congress_years":"2015-2017"},"state_legislative_districts":{"house":{"name":"Assembly
|
|
42
|
+
District 28","district_number":28},"senate":{"name":"State Senate District
|
|
43
|
+
15","district_number":15}},"school_districts":{"elementary":{"name":"Cupertino
|
|
44
|
+
Union Elementary School District","lea_code":"0610290","grade_low":"KG","grade_high":"08"},"secondary":{"name":"Fremont
|
|
45
|
+
Union High School District","lea_code":"0614430","grade_low":"09","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}},{"address_components":{"number":"19118","street":"Mariani","suffix":"Ave","formatted_street":"Mariani
|
|
46
|
+
Ave","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014"},"formatted_address":"19118
|
|
47
|
+
Mariani Ave, Cupertino, CA 95014","location":{"lat":37.330489,"lng":-122.0305},"accuracy":0.28,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
48
|
+
dataset from the US Census Bureau","fields":{"congressional_district":{"name":"Congressional
|
|
49
|
+
District 17","district_number":17,"congress_number":"114th","congress_years":"2015-2017"},"state_legislative_districts":{"house":{"name":"Assembly
|
|
50
|
+
District 28","district_number":28},"senate":{"name":"State Senate District
|
|
51
|
+
15","district_number":15}},"school_districts":{"elementary":{"name":"Cupertino
|
|
52
|
+
Union Elementary School District","lea_code":"0610290","grade_low":"KG","grade_high":"08"},"secondary":{"name":"Fremont
|
|
53
|
+
Union High School District","lea_code":"0614430","grade_low":"09","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}},{"address_components":{"number":"19116","street":"Mariani","suffix":"Ave","formatted_street":"Mariani
|
|
54
|
+
Ave","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014"},"formatted_address":"19116
|
|
55
|
+
Mariani Ave, Cupertino, CA 95014","location":{"lat":37.330407,"lng":-122.030873},"accuracy":0.28,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
56
|
+
dataset from the US Census Bureau","fields":{"congressional_district":{"name":"Congressional
|
|
57
|
+
District 17","district_number":17,"congress_number":"114th","congress_years":"2015-2017"},"state_legislative_districts":{"house":{"name":"Assembly
|
|
58
|
+
District 28","district_number":28},"senate":{"name":"State Senate District
|
|
59
|
+
15","district_number":15}},"school_districts":{"elementary":{"name":"Cupertino
|
|
60
|
+
Union Elementary School District","lea_code":"0610290","grade_low":"KG","grade_high":"08"},"secondary":{"name":"Fremont
|
|
61
|
+
Union High School District","lea_code":"0614430","grade_low":"09","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}}]}},{"query":"34.145760590909,-118.15204363636","response":{"results":[{"address_components":{"number":"43","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
|
62
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105"},"formatted_address":"43
|
|
63
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145766,"lng":-118.15141},"accuracy":1,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
64
|
+
dataset from the US Census Bureau","fields":{"congressional_district":{"name":"Congressional
|
|
65
|
+
District 27","district_number":27,"congress_number":"114th","congress_years":"2015-2017"},"state_legislative_districts":{"house":{"name":"Assembly
|
|
66
|
+
District 41","district_number":41},"senate":{"name":"State Senate District
|
|
67
|
+
25","district_number":25}},"school_districts":{"unified":{"name":"Pasadena
|
|
68
|
+
Unified School District","lea_code":"0629940","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}},{"address_components":{"number":"1","predirectional":"N","street":"De
|
|
69
|
+
Lacey","suffix":"Ave","formatted_street":"N De Lacey Ave","city":"Pasadena","county":"Los
|
|
70
|
+
Angeles County","state":"CA","zip":"91103"},"formatted_address":"1 N De Lacey
|
|
71
|
+
Ave, Pasadena, CA 91103","location":{"lat":34.145759,"lng":-118.15223},"accuracy":0,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
72
|
+
dataset from the US Census Bureau","fields":{"congressional_district":{"name":"Congressional
|
|
73
|
+
District 27","district_number":27,"congress_number":"114th","congress_years":"2015-2017"},"state_legislative_districts":{"house":{"name":"Assembly
|
|
74
|
+
District 41","district_number":41},"senate":{"name":"State Senate District
|
|
75
|
+
25","district_number":25}},"school_districts":{"unified":{"name":"Pasadena
|
|
76
|
+
Unified School District","lea_code":"0629940","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}},{"address_components":{"number":"85","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
|
77
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105"},"formatted_address":"85
|
|
78
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145759,"lng":-118.15223},"accuracy":0,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
79
|
+
dataset from the US Census Bureau","fields":{"congressional_district":{"name":"Congressional
|
|
80
|
+
District 27","district_number":27,"congress_number":"114th","congress_years":"2015-2017"},"state_legislative_districts":{"house":{"name":"Assembly
|
|
81
|
+
District 41","district_number":41},"senate":{"name":"State Senate District
|
|
82
|
+
25","district_number":25}},"school_districts":{"unified":{"name":"Pasadena
|
|
83
|
+
Unified School District","lea_code":"0629940","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}}]}},{"query":"37.7815,-122.404933","response":{"results":[{"address_components":{"number":"177","street":"5th","suffix":"St","formatted_street":"5th
|
|
84
|
+
St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94102"},"formatted_address":"177
|
|
85
|
+
5th St, San Francisco, CA 94102","location":{"lat":37.781925,"lng":-122.405466},"accuracy":0,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
86
|
+
dataset from the US Census Bureau","fields":{"congressional_district":{"name":"Congressional
|
|
87
|
+
District 12","district_number":12,"congress_number":"114th","congress_years":"2015-2017"},"state_legislative_districts":{"house":{"name":"Assembly
|
|
88
|
+
District 17","district_number":17},"senate":{"name":"State Senate District
|
|
89
|
+
11","district_number":11}},"school_districts":{"unified":{"name":"San Francisco
|
|
90
|
+
Unified School District","lea_code":"0634410","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}},{"address_components":{"number":"900","street":"Howard","suffix":"St","formatted_street":"Howard
|
|
91
|
+
St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103"},"formatted_address":"900
|
|
92
|
+
Howard St, San Francisco, CA 94103","location":{"lat":37.7815,"lng":-122.404933},"accuracy":0,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
93
|
+
dataset from the US Census Bureau","fields":{"congressional_district":{"name":"Congressional
|
|
94
|
+
District 12","district_number":12,"congress_number":"114th","congress_years":"2015-2017"},"state_legislative_districts":{"house":{"name":"Assembly
|
|
95
|
+
District 17","district_number":17},"senate":{"name":"State Senate District
|
|
96
|
+
11","district_number":11}},"school_districts":{"unified":{"name":"San Francisco
|
|
97
|
+
Unified School District","lea_code":"0634410","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}},{"address_components":{"number":"861","street":"Howard","suffix":"St","formatted_street":"Howard
|
|
98
|
+
St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103"},"formatted_address":"861
|
|
99
|
+
Howard St, San Francisco, CA 94103","location":{"lat":37.782831,"lng":-122.40325},"accuracy":0,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
100
|
+
dataset from the US Census Bureau","fields":{"congressional_district":{"name":"Congressional
|
|
101
|
+
District 12","district_number":12,"congress_number":"114th","congress_years":"2015-2017"},"state_legislative_districts":{"house":{"name":"Assembly
|
|
102
|
+
District 17","district_number":17},"senate":{"name":"State Senate District
|
|
103
|
+
11","district_number":11}},"school_districts":{"unified":{"name":"San Francisco
|
|
104
|
+
Unified School District","lea_code":"0634410","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}}]}}]}'
|
|
94
105
|
http_version:
|
|
95
|
-
recorded_at:
|
|
96
|
-
recorded_with: VCR 2.
|
|
106
|
+
recorded_at: Wed, 22 Jul 2015 17:24:21 GMT
|
|
107
|
+
recorded_with: VCR 2.9.3
|
|
@@ -18,26 +18,29 @@ http_interactions:
|
|
|
18
18
|
code: 200
|
|
19
19
|
message: OK
|
|
20
20
|
headers:
|
|
21
|
-
Date:
|
|
22
|
-
- Mon, 03 Feb 2014 16:11:04 GMT
|
|
23
21
|
Server:
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
-
|
|
22
|
+
- nginx/1.2.1
|
|
23
|
+
Content-Type:
|
|
24
|
+
- application/json
|
|
25
|
+
Transfer-Encoding:
|
|
26
|
+
- chunked
|
|
27
27
|
Cache-Control:
|
|
28
28
|
- no-cache
|
|
29
|
+
Date:
|
|
30
|
+
- Wed, 22 Jul 2015 17:24:18 GMT
|
|
29
31
|
Access-Control-Allow-Origin:
|
|
30
32
|
- "*"
|
|
31
|
-
Transfer-Encoding:
|
|
32
|
-
- chunked
|
|
33
|
-
Content-Type:
|
|
34
|
-
- application/json
|
|
35
33
|
body:
|
|
36
|
-
encoding:
|
|
37
|
-
string:
|
|
38
|
-
|
|
39
|
-
W Colorado Blvd, Pasadena, CA 91105
|
|
40
|
-
|
|
34
|
+
encoding: ASCII-8BIT
|
|
35
|
+
string: '{"input":{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
|
36
|
+
Colorado Blvd","city":"Pasadena","state":"CA","zip":"91105"},"formatted_address":"54
|
|
37
|
+
W Colorado Blvd, Pasadena, CA 91105"},"results":[{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
|
38
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105"},"formatted_address":"54
|
|
39
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145764409091,"lng":-118.15159636364},"accuracy":1,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
|
|
40
|
+
dataset from the US Census Bureau"},{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
|
41
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105"},"formatted_address":"54
|
|
42
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.1457615375,"lng":-118.15193275},"accuracy":0.8,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
|
|
43
|
+
dataset from the US Census Bureau"}]}'
|
|
41
44
|
http_version:
|
|
42
|
-
recorded_at:
|
|
43
|
-
recorded_with: VCR 2.
|
|
45
|
+
recorded_at: Wed, 22 Jul 2015 17:24:19 GMT
|
|
46
|
+
recorded_with: VCR 2.9.3
|
|
@@ -24,17 +24,15 @@ http_interactions:
|
|
|
24
24
|
- application/json
|
|
25
25
|
Transfer-Encoding:
|
|
26
26
|
- chunked
|
|
27
|
-
Connection:
|
|
28
|
-
- keep-alive
|
|
29
27
|
Cache-Control:
|
|
30
28
|
- no-cache
|
|
31
29
|
Date:
|
|
32
|
-
-
|
|
30
|
+
- Wed, 22 Jul 2015 17:24:22 GMT
|
|
33
31
|
Access-Control-Allow-Origin:
|
|
34
32
|
- "*"
|
|
35
33
|
body:
|
|
36
34
|
encoding: UTF-8
|
|
37
|
-
string: '{"error":"Could not
|
|
35
|
+
string: '{"error":"Could not geocode address. Postal code or city required."}'
|
|
38
36
|
http_version:
|
|
39
|
-
recorded_at:
|
|
40
|
-
recorded_with: VCR 2.
|
|
37
|
+
recorded_at: Wed, 22 Jul 2015 17:24:22 GMT
|
|
38
|
+
recorded_with: VCR 2.9.3
|
|
@@ -24,30 +24,31 @@ http_interactions:
|
|
|
24
24
|
- application/json
|
|
25
25
|
Transfer-Encoding:
|
|
26
26
|
- chunked
|
|
27
|
-
Connection:
|
|
28
|
-
- keep-alive
|
|
29
27
|
Cache-Control:
|
|
30
28
|
- no-cache
|
|
31
29
|
Date:
|
|
32
|
-
-
|
|
30
|
+
- Wed, 22 Jul 2015 17:24:23 GMT
|
|
33
31
|
Access-Control-Allow-Origin:
|
|
34
32
|
- "*"
|
|
35
33
|
body:
|
|
36
|
-
encoding:
|
|
37
|
-
string: '{"input":{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
Blvd,
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
34
|
+
encoding: ASCII-8BIT
|
|
35
|
+
string: '{"input":{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
|
36
|
+
Colorado Blvd","city":"Pasadena","state":"CA","zip":"91105"},"formatted_address":"54
|
|
37
|
+
W Colorado Blvd, Pasadena, CA 91105"},"results":[{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
|
38
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105"},"formatted_address":"54
|
|
39
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145764409091,"lng":-118.15159636364},"accuracy":1,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
|
|
40
|
+
dataset from the US Census Bureau","fields":{"congressional_district":{"name":"Congressional
|
|
41
|
+
District 27","district_number":27,"congress_number":"114th","congress_years":"2015-2017"},"state_legislative_districts":{"house":{"name":"Assembly
|
|
42
|
+
District 41","district_number":41},"senate":{"name":"State Senate District
|
|
43
|
+
25","district_number":25}},"school_districts":{"unified":{"name":"Pasadena
|
|
44
|
+
Unified School District","lea_code":"0629940","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}},{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
|
45
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105"},"formatted_address":"54
|
|
46
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.1457615375,"lng":-118.15193275},"accuracy":0.8,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
|
|
47
|
+
dataset from the US Census Bureau","fields":{"congressional_district":{"name":"Congressional
|
|
48
|
+
District 27","district_number":27,"congress_number":"114th","congress_years":"2015-2017"},"state_legislative_districts":{"house":{"name":"Assembly
|
|
49
|
+
District 41","district_number":41},"senate":{"name":"State Senate District
|
|
50
|
+
25","district_number":25}},"school_districts":{"unified":{"name":"Pasadena
|
|
51
|
+
Unified School District","lea_code":"0629940","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}}]}'
|
|
51
52
|
http_version:
|
|
52
|
-
recorded_at:
|
|
53
|
-
recorded_with: VCR 2.
|
|
53
|
+
recorded_at: Wed, 22 Jul 2015 17:24:23 GMT
|
|
54
|
+
recorded_with: VCR 2.9.3
|
|
@@ -18,23 +18,21 @@ http_interactions:
|
|
|
18
18
|
code: 403
|
|
19
19
|
message: Forbidden
|
|
20
20
|
headers:
|
|
21
|
-
Date:
|
|
22
|
-
- Sun, 02 Feb 2014 17:43:02 GMT
|
|
23
21
|
Server:
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
-
|
|
22
|
+
- nginx/1.2.1
|
|
23
|
+
Content-Type:
|
|
24
|
+
- application/json
|
|
25
|
+
Transfer-Encoding:
|
|
26
|
+
- chunked
|
|
27
27
|
Cache-Control:
|
|
28
28
|
- no-cache
|
|
29
|
+
Date:
|
|
30
|
+
- Wed, 22 Jul 2015 17:25:10 GMT
|
|
29
31
|
Access-Control-Allow-Origin:
|
|
30
32
|
- "*"
|
|
31
|
-
Transfer-Encoding:
|
|
32
|
-
- chunked
|
|
33
|
-
Content-Type:
|
|
34
|
-
- application/json
|
|
35
33
|
body:
|
|
36
|
-
encoding:
|
|
37
|
-
string:
|
|
34
|
+
encoding: ASCII-8BIT
|
|
35
|
+
string: '{"error":"Invalid API key"}'
|
|
38
36
|
http_version:
|
|
39
|
-
recorded_at:
|
|
40
|
-
recorded_with: VCR 2.
|
|
37
|
+
recorded_at: Wed, 22 Jul 2015 17:25:10 GMT
|
|
38
|
+
recorded_with: VCR 2.9.3
|
|
@@ -18,24 +18,23 @@ http_interactions:
|
|
|
18
18
|
code: 200
|
|
19
19
|
message: OK
|
|
20
20
|
headers:
|
|
21
|
-
Date:
|
|
22
|
-
- Sun, 02 Feb 2014 17:40:52 GMT
|
|
23
21
|
Server:
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
-
|
|
22
|
+
- nginx/1.2.1
|
|
23
|
+
Content-Type:
|
|
24
|
+
- application/json
|
|
25
|
+
Transfer-Encoding:
|
|
26
|
+
- chunked
|
|
27
27
|
Cache-Control:
|
|
28
28
|
- no-cache
|
|
29
|
+
Date:
|
|
30
|
+
- Wed, 22 Jul 2015 17:24:18 GMT
|
|
29
31
|
Access-Control-Allow-Origin:
|
|
30
32
|
- "*"
|
|
31
|
-
Transfer-Encoding:
|
|
32
|
-
- chunked
|
|
33
|
-
Content-Type:
|
|
34
|
-
- application/json
|
|
35
33
|
body:
|
|
36
|
-
encoding:
|
|
37
|
-
string:
|
|
38
|
-
|
|
34
|
+
encoding: ASCII-8BIT
|
|
35
|
+
string: '{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
|
36
|
+
Colorado Blvd","city":"Pasadena","state":"CA","zip":"91105"},"formatted_address":"54
|
|
37
|
+
W Colorado Blvd, Pasadena, CA 91105"}'
|
|
39
38
|
http_version:
|
|
40
|
-
recorded_at:
|
|
41
|
-
recorded_with: VCR 2.
|
|
39
|
+
recorded_at: Wed, 22 Jul 2015 17:24:18 GMT
|
|
40
|
+
recorded_with: VCR 2.9.3
|
|
@@ -18,28 +18,31 @@ http_interactions:
|
|
|
18
18
|
code: 200
|
|
19
19
|
message: OK
|
|
20
20
|
headers:
|
|
21
|
-
Date:
|
|
22
|
-
- Mon, 03 Feb 2014 16:12:36 GMT
|
|
23
21
|
Server:
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
-
|
|
22
|
+
- nginx/1.2.1
|
|
23
|
+
Content-Type:
|
|
24
|
+
- application/json
|
|
25
|
+
Transfer-Encoding:
|
|
26
|
+
- chunked
|
|
27
27
|
Cache-Control:
|
|
28
28
|
- no-cache
|
|
29
|
+
Date:
|
|
30
|
+
- Wed, 22 Jul 2015 17:24:19 GMT
|
|
29
31
|
Access-Control-Allow-Origin:
|
|
30
32
|
- "*"
|
|
31
|
-
Transfer-Encoding:
|
|
32
|
-
- chunked
|
|
33
|
-
Content-Type:
|
|
34
|
-
- application/json
|
|
35
33
|
body:
|
|
36
|
-
encoding:
|
|
37
|
-
string:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
Lacey
|
|
42
|
-
|
|
34
|
+
encoding: ASCII-8BIT
|
|
35
|
+
string: '{"results":[{"address_components":{"number":"43","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
|
36
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105"},"formatted_address":"43
|
|
37
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145766,"lng":-118.15141},"accuracy":1,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
38
|
+
dataset from the US Census Bureau"},{"address_components":{"number":"1","predirectional":"N","street":"De
|
|
39
|
+
Lacey","suffix":"Ave","formatted_street":"N De Lacey Ave","city":"Pasadena","county":"Los
|
|
40
|
+
Angeles County","state":"CA","zip":"91103"},"formatted_address":"1 N De Lacey
|
|
41
|
+
Ave, Pasadena, CA 91103","location":{"lat":34.145759,"lng":-118.15223},"accuracy":0,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
42
|
+
dataset from the US Census Bureau"},{"address_components":{"number":"85","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
|
43
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105"},"formatted_address":"85
|
|
44
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145759,"lng":-118.15223},"accuracy":0,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
45
|
+
dataset from the US Census Bureau"}]}'
|
|
43
46
|
http_version:
|
|
44
|
-
recorded_at:
|
|
45
|
-
recorded_with: VCR 2.
|
|
47
|
+
recorded_at: Wed, 22 Jul 2015 17:24:19 GMT
|
|
48
|
+
recorded_with: VCR 2.9.3
|
|
@@ -24,35 +24,37 @@ http_interactions:
|
|
|
24
24
|
- application/json
|
|
25
25
|
Transfer-Encoding:
|
|
26
26
|
- chunked
|
|
27
|
-
Connection:
|
|
28
|
-
- keep-alive
|
|
29
27
|
Cache-Control:
|
|
30
28
|
- no-cache
|
|
31
29
|
Date:
|
|
32
|
-
-
|
|
30
|
+
- Wed, 22 Jul 2015 17:24:20 GMT
|
|
33
31
|
Access-Control-Allow-Origin:
|
|
34
32
|
- "*"
|
|
35
33
|
body:
|
|
36
|
-
encoding:
|
|
37
|
-
string: '{"results":[{"address_components":{"number":"43","predirectional":"W","street":"Colorado","suffix":"Blvd","
|
|
38
|
-
Angeles County","state":"CA","zip":"91105"},"formatted_address":"43
|
|
39
|
-
Blvd, Pasadena, CA 91105","location":{"lat":34.145766,"lng":-118.15141},"accuracy":1,"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
41","district_number":41}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
District
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
34
|
+
encoding: ASCII-8BIT
|
|
35
|
+
string: '{"results":[{"address_components":{"number":"43","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
|
36
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105"},"formatted_address":"43
|
|
37
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145766,"lng":-118.15141},"accuracy":1,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
38
|
+
dataset from the US Census Bureau","fields":{"congressional_district":{"name":"Congressional
|
|
39
|
+
District 27","district_number":27,"congress_number":"114th","congress_years":"2015-2017"},"state_legislative_districts":{"house":{"name":"Assembly
|
|
40
|
+
District 41","district_number":41},"senate":{"name":"State Senate District
|
|
41
|
+
25","district_number":25}},"school_districts":{"unified":{"name":"Pasadena
|
|
42
|
+
Unified School District","lea_code":"0629940","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}},{"address_components":{"number":"1","predirectional":"N","street":"De
|
|
43
|
+
Lacey","suffix":"Ave","formatted_street":"N De Lacey Ave","city":"Pasadena","county":"Los
|
|
44
|
+
Angeles County","state":"CA","zip":"91103"},"formatted_address":"1 N De Lacey
|
|
45
|
+
Ave, Pasadena, CA 91103","location":{"lat":34.145759,"lng":-118.15223},"accuracy":0,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
46
|
+
dataset from the US Census Bureau","fields":{"congressional_district":{"name":"Congressional
|
|
47
|
+
District 27","district_number":27,"congress_number":"114th","congress_years":"2015-2017"},"state_legislative_districts":{"house":{"name":"Assembly
|
|
48
|
+
District 41","district_number":41},"senate":{"name":"State Senate District
|
|
49
|
+
25","district_number":25}},"school_districts":{"unified":{"name":"Pasadena
|
|
50
|
+
Unified School District","lea_code":"0629940","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}},{"address_components":{"number":"85","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
|
51
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105"},"formatted_address":"85
|
|
52
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145759,"lng":-118.15223},"accuracy":0,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
|
53
|
+
dataset from the US Census Bureau","fields":{"congressional_district":{"name":"Congressional
|
|
54
|
+
District 27","district_number":27,"congress_number":"114th","congress_years":"2015-2017"},"state_legislative_districts":{"house":{"name":"Assembly
|
|
55
|
+
District 41","district_number":41},"senate":{"name":"State Senate District
|
|
56
|
+
25","district_number":25}},"school_districts":{"unified":{"name":"Pasadena
|
|
57
|
+
Unified School District","lea_code":"0629940","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}}]}'
|
|
56
58
|
http_version:
|
|
57
|
-
recorded_at:
|
|
58
|
-
recorded_with: VCR 2.
|
|
59
|
+
recorded_at: Wed, 22 Jul 2015 17:24:20 GMT
|
|
60
|
+
recorded_with: VCR 2.9.3
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: geocodio
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Celis
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2015-07-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: json
|
|
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
141
141
|
version: '0'
|
|
142
142
|
requirements: []
|
|
143
143
|
rubyforge_project:
|
|
144
|
-
rubygems_version: 2.
|
|
144
|
+
rubygems_version: 2.4.5
|
|
145
145
|
signing_key:
|
|
146
146
|
specification_version: 4
|
|
147
147
|
summary: An unofficial Ruby client library for geocod.io
|