geocodio-ocd 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/geocodio/address.rb +114 -0
- data/lib/geocodio/address_set.rb +48 -0
- data/lib/geocodio/canadian/electoral_district_base.rb +21 -0
- data/lib/geocodio/canadian/electoral_districts.rb +23 -0
- data/lib/geocodio/canadian/federal_electoral_district.rb +12 -0
- data/lib/geocodio/canadian/provincial_electoral_district.rb +6 -0
- data/lib/geocodio/canadian.rb +14 -0
- data/lib/geocodio/client/error.rb +15 -0
- data/lib/geocodio/client/response.rb +13 -0
- data/lib/geocodio/client.rb +155 -0
- data/lib/geocodio/congressional_district.rb +30 -0
- data/lib/geocodio/legislator.rb +69 -0
- data/lib/geocodio/school_district.rb +15 -0
- data/lib/geocodio/state_legislative_district.rb +16 -0
- data/lib/geocodio/timezone.rb +16 -0
- data/lib/geocodio/utils.rb +43 -0
- data/lib/geocodio/version.rb +13 -0
- data/lib/geocodio.rb +9 -0
- data/spec/address_set_spec.rb +31 -0
- data/spec/address_spec.rb +235 -0
- data/spec/canadian_spec.rb +77 -0
- data/spec/client_spec.rb +196 -0
- data/spec/congressional_district_spec.rb +45 -0
- data/spec/legislator_spec.rb +116 -0
- data/spec/school_district_spec.rb +27 -0
- data/spec/spec_helper.rb +25 -0
- data/spec/state_legislative_district_spec.rb +43 -0
- data/spec/timezone_spec.rb +23 -0
- data/spec/vcr_cassettes/alaska_geocode_with_fields.yml +68 -0
- data/spec/vcr_cassettes/batch_geocode.yml +83 -0
- data/spec/vcr_cassettes/batch_geocode_with_bad_address.yml +61 -0
- data/spec/vcr_cassettes/batch_geocode_with_fields.yml +121 -0
- data/spec/vcr_cassettes/batch_reverse.yml +181 -0
- data/spec/vcr_cassettes/batch_reverse_with_fields.yml +384 -0
- data/spec/vcr_cassettes/canadian.yml +101 -0
- data/spec/vcr_cassettes/geocode.yml +61 -0
- data/spec/vcr_cassettes/geocode_bad_address.yml +53 -0
- data/spec/vcr_cassettes/geocode_with_fields.yml +71 -0
- data/spec/vcr_cassettes/geocode_with_fields_legacy.yml +91 -0
- data/spec/vcr_cassettes/geocode_with_postdirectional.yml +61 -0
- data/spec/vcr_cassettes/invalid_key.yml +59 -0
- data/spec/vcr_cassettes/parse.yml +51 -0
- data/spec/vcr_cassettes/reverse.yml +97 -0
- data/spec/vcr_cassettes/reverse_with_fields.yml +163 -0
- data/spec/vcr_cassettes/reverse_with_fields_no_house_info.yml +138 -0
- metadata +189 -0
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.geocod.io/v1.7/geocode?api_key=secret_api_key&q=54%20West%20Colorado%20Boulevard%20Pasadena%20CA%2091105
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Transfer-Encoding:
|
24
|
+
- chunked
|
25
|
+
Cache-Control:
|
26
|
+
- no-cache, private
|
27
|
+
Date:
|
28
|
+
- Tue, 05 Jul 2022 22:21:36 GMT
|
29
|
+
X-Billable-Lookups-Count:
|
30
|
+
- '1'
|
31
|
+
X-Billable-Fields-Count:
|
32
|
+
- '0'
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Access-Control-Allow-Methods:
|
36
|
+
- GET, POST
|
37
|
+
Access-Control-Allow-Headers:
|
38
|
+
- Content-Type, User-Agent
|
39
|
+
Access-Control-Expose-Headers:
|
40
|
+
- Request-Handler
|
41
|
+
Request-Handler:
|
42
|
+
- api228
|
43
|
+
Server:
|
44
|
+
- Unicorns with magic wands (https://www.geocod.io)
|
45
|
+
X-Request-Id:
|
46
|
+
- 6167D31F:FDE3_05A15419:0050_62C4B970_53B75:3D82
|
47
|
+
Connection:
|
48
|
+
- close
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"input":{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
52
|
+
Colorado Blvd","city":"Pasadena","state":"CA","zip":"91105","country":"US"},"formatted_address":"54
|
53
|
+
W Colorado Blvd, Pasadena, CA 91105"},"results":[{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
54
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"54
|
55
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145375,"lng":-118.151622},"accuracy":1,"accuracy_type":"rooftop","source":"Los
|
56
|
+
Angeles"},{"address_components":{"number":"54","predirectional":"E","street":"Colorado","suffix":"Blvd","formatted_street":"E
|
57
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"54
|
58
|
+
E Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145499,"lng":-118.14932},"accuracy":0.8,"accuracy_type":"rooftop","source":"Los
|
59
|
+
Angeles"}]}'
|
60
|
+
recorded_at: Tue, 05 Jul 2022 22:21:36 GMT
|
61
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.geocod.io/v1.7/geocode?api_key=secret_api_key&q=%20,%20,%20
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 422
|
19
|
+
message: Unprocessable Content
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Transfer-Encoding:
|
24
|
+
- chunked
|
25
|
+
Cache-Control:
|
26
|
+
- no-cache, private
|
27
|
+
Date:
|
28
|
+
- Tue, 05 Jul 2022 22:21:43 GMT
|
29
|
+
Access-Control-Allow-Origin:
|
30
|
+
- "*"
|
31
|
+
Access-Control-Allow-Methods:
|
32
|
+
- GET, POST
|
33
|
+
Access-Control-Allow-Headers:
|
34
|
+
- Content-Type, User-Agent
|
35
|
+
X-Billable-Lookups-Count:
|
36
|
+
- '0'
|
37
|
+
X-Billable-Fields-Count:
|
38
|
+
- '0'
|
39
|
+
Access-Control-Expose-Headers:
|
40
|
+
- Request-Handler
|
41
|
+
Request-Handler:
|
42
|
+
- api228
|
43
|
+
Server:
|
44
|
+
- Unicorns with magic wands (https://www.geocod.io)
|
45
|
+
X-Request-Id:
|
46
|
+
- 6167D31F:FDFC_05A15419:0050_62C4B977_54288:3D82
|
47
|
+
Connection:
|
48
|
+
- close
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"error":"Could not geocode address. Postal code or city required."}'
|
52
|
+
recorded_at: Tue, 05 Jul 2022 22:21:43 GMT
|
53
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,71 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.geocod.io/v1.7/geocode?api_key=secret_api_key&fields=cd118,stateleg-next,school,timezone&q=54%20West%20Colorado%20Boulevard%20Pasadena%20CA%2091105
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Transfer-Encoding:
|
24
|
+
- chunked
|
25
|
+
Cache-Control:
|
26
|
+
- no-cache, private
|
27
|
+
Date:
|
28
|
+
- Tue, 05 Jul 2022 22:21:35 GMT
|
29
|
+
X-Billable-Lookups-Count:
|
30
|
+
- '1'
|
31
|
+
X-Billable-Fields-Count:
|
32
|
+
- '4'
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Access-Control-Allow-Methods:
|
36
|
+
- GET, POST
|
37
|
+
Access-Control-Allow-Headers:
|
38
|
+
- Content-Type, User-Agent
|
39
|
+
Access-Control-Expose-Headers:
|
40
|
+
- Request-Handler
|
41
|
+
Request-Handler:
|
42
|
+
- api228
|
43
|
+
Server:
|
44
|
+
- Unicorns with magic wands (https://www.geocod.io)
|
45
|
+
X-Request-Id:
|
46
|
+
- 6167D31F:FDE1_05A15419:0050_62C4B96F_53AB7:3D82
|
47
|
+
Connection:
|
48
|
+
- close
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"input":{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
52
|
+
Colorado Blvd","city":"Pasadena","state":"CA","zip":"91105","country":"US"},"formatted_address":"54
|
53
|
+
W Colorado Blvd, Pasadena, CA 91105"},"results":[{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
54
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"54
|
55
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145375,"lng":-118.151622},"accuracy":1,"accuracy_type":"rooftop","source":"Los
|
56
|
+
Angeles","fields":{"congressional_districts":[{"name":"Congressional District
|
57
|
+
28","district_number":28,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:28","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
|
58
|
+
District 41","district_number":"41","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:41","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
|
59
|
+
Senate District 25","district_number":"25","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:25","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"unified":{"name":"Pasadena
|
60
|
+
Unified School District","lea_code":"0629940","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
|
61
|
+
OpenStreetMap contributors"}}},{"address_components":{"number":"54","predirectional":"E","street":"Colorado","suffix":"Blvd","formatted_street":"E
|
62
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"54
|
63
|
+
E Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145499,"lng":-118.14932},"accuracy":0.8,"accuracy_type":"rooftop","source":"Los
|
64
|
+
Angeles","fields":{"congressional_districts":[{"name":"Congressional District
|
65
|
+
28","district_number":28,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:28","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
|
66
|
+
District 41","district_number":"41","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:41","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
|
67
|
+
Senate District 25","district_number":"25","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:25","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"unified":{"name":"Pasadena
|
68
|
+
Unified School District","lea_code":"0629940","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
|
69
|
+
OpenStreetMap contributors"}}}]}'
|
70
|
+
recorded_at: Tue, 05 Jul 2022 22:21:35 GMT
|
71
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,91 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.geocod.io/v1.7/geocode?api_key=secret_api_key&fields=cd,stateleg-next,school,timezone&q=54%20West%20Colorado%20Boulevard%20Pasadena%20CA%2091105
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Transfer-Encoding:
|
24
|
+
- chunked
|
25
|
+
Cache-Control:
|
26
|
+
- no-cache, private
|
27
|
+
Date:
|
28
|
+
- Tue, 05 Jul 2022 22:28:53 GMT
|
29
|
+
X-Billable-Lookups-Count:
|
30
|
+
- '1'
|
31
|
+
X-Billable-Fields-Count:
|
32
|
+
- '4'
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Access-Control-Allow-Methods:
|
36
|
+
- GET, POST
|
37
|
+
Access-Control-Allow-Headers:
|
38
|
+
- Content-Type, User-Agent
|
39
|
+
Access-Control-Expose-Headers:
|
40
|
+
- Request-Handler
|
41
|
+
Request-Handler:
|
42
|
+
- api245
|
43
|
+
Server:
|
44
|
+
- Unicorns with magic wands (https://www.geocod.io)
|
45
|
+
X-Request-Id:
|
46
|
+
- 6167D31F:FF00_05A15419:0050_62C4BB25_6FB9C:3D82
|
47
|
+
Connection:
|
48
|
+
- close
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"input":{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
52
|
+
Colorado Blvd","city":"Pasadena","state":"CA","zip":"91105","country":"US"},"formatted_address":"54
|
53
|
+
W Colorado Blvd, Pasadena, CA 91105"},"results":[{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
54
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"54
|
55
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145375,"lng":-118.151622},"accuracy":1,"accuracy_type":"rooftop","source":"Los
|
56
|
+
Angeles","fields":{"congressional_districts":[{"name":"Congressional District
|
57
|
+
27","district_number":27,"ocd_id":null,"congress_number":"117th","congress_years":"2021-2023","proportion":1,"current_legislators":[{"type":"representative","bio":{"last_name":"Chu","first_name":"Judy","birthday":"1953-07-07","gender":"F","party":"Democrat"},"contact":{"url":"https:\/\/chu.house.gov","address":"2423
|
58
|
+
Rayburn House Office Building Washington DC 20515-0527","phone":"202-225-5464","contact_form":null},"social":{"rss_url":"http:\/\/chu.house.gov\/rss.xml","twitter":"RepJudyChu","facebook":"RepJudyChu","youtube":"RepJudyChu","youtube_id":"UCfcbYOvdEXZNelM8T05nK-w"},"references":{"bioguide_id":"C001080","thomas_id":"01970","opensecrets_id":"N00030600","lis_id":null,"cspan_id":"92573","govtrack_id":"412379","votesmart_id":"16539","ballotpedia_id":"Judy
|
59
|
+
Chu","washington_post_id":null,"icpsr_id":"20955","wikipedia_id":"Judy Chu"},"source":"Legislator
|
60
|
+
data is originally collected and aggregated by https:\/\/github.com\/unitedstates\/"},{"type":"senator","bio":{"last_name":"Feinstein","first_name":"Dianne","birthday":"1933-06-22","gender":"F","party":"Democrat"},"contact":{"url":"https:\/\/www.feinstein.senate.gov","address":"331
|
61
|
+
Hart Senate Office Building Washington DC 20510","phone":"202-224-3841","contact_form":"https:\/\/www.feinstein.senate.gov\/public\/index.cfm\/e-mail-me"},"social":{"rss_url":"http:\/\/www.feinstein.senate.gov\/public\/?a=rss.feed","twitter":"SenFeinstein","facebook":"senatorfeinstein","youtube":"SenatorFeinstein","youtube_id":"UCtVC--6LR0ff2aOP8THpuEw"},"references":{"bioguide_id":"F000062","thomas_id":"01332","opensecrets_id":"N00007364","lis_id":"S221","cspan_id":"13061","govtrack_id":"300043","votesmart_id":"53273","ballotpedia_id":"Dianne
|
62
|
+
Feinstein","washington_post_id":null,"icpsr_id":"49300","wikipedia_id":"Dianne
|
63
|
+
Feinstein"},"source":"Legislator data is originally collected and aggregated
|
64
|
+
by https:\/\/github.com\/unitedstates\/"},{"type":"senator","bio":{"last_name":"Padilla","first_name":"Alejandro","birthday":"1973-03-22","gender":"M","party":"Democrat"},"contact":{"url":"https:\/\/www.padilla.senate.gov","address":"112
|
65
|
+
Hart Senate Office Building Washington DC 20510","phone":"202-224-3553","contact_form":"https:\/\/www.padilla.senate.gov\/contact\/"},"social":{"rss_url":null,"twitter":"SenAlexPadilla","facebook":null,"youtube":null,"youtube_id":null},"references":{"bioguide_id":"P000145","thomas_id":null,"opensecrets_id":"N00047888","lis_id":"S413","cspan_id":null,"govtrack_id":"456856","votesmart_id":null,"ballotpedia_id":"Alex
|
66
|
+
Padilla","washington_post_id":null,"icpsr_id":null,"wikipedia_id":"Alex Padilla"},"source":"Legislator
|
67
|
+
data is originally collected and aggregated by https:\/\/github.com\/unitedstates\/"}]}],"state_legislative_districts":{"house":[{"name":"Assembly
|
68
|
+
District 41","district_number":"41","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:41","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
|
69
|
+
Senate District 25","district_number":"25","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:25","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"unified":{"name":"Pasadena
|
70
|
+
Unified School District","lea_code":"0629940","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
|
71
|
+
OpenStreetMap contributors"}}},{"address_components":{"number":"54","predirectional":"E","street":"Colorado","suffix":"Blvd","formatted_street":"E
|
72
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"54
|
73
|
+
E Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145499,"lng":-118.14932},"accuracy":0.8,"accuracy_type":"rooftop","source":"Los
|
74
|
+
Angeles","fields":{"congressional_districts":[{"name":"Congressional District
|
75
|
+
27","district_number":27,"ocd_id":null,"congress_number":"117th","congress_years":"2021-2023","proportion":1,"current_legislators":[{"type":"representative","bio":{"last_name":"Chu","first_name":"Judy","birthday":"1953-07-07","gender":"F","party":"Democrat"},"contact":{"url":"https:\/\/chu.house.gov","address":"2423
|
76
|
+
Rayburn House Office Building Washington DC 20515-0527","phone":"202-225-5464","contact_form":null},"social":{"rss_url":"http:\/\/chu.house.gov\/rss.xml","twitter":"RepJudyChu","facebook":"RepJudyChu","youtube":"RepJudyChu","youtube_id":"UCfcbYOvdEXZNelM8T05nK-w"},"references":{"bioguide_id":"C001080","thomas_id":"01970","opensecrets_id":"N00030600","lis_id":null,"cspan_id":"92573","govtrack_id":"412379","votesmart_id":"16539","ballotpedia_id":"Judy
|
77
|
+
Chu","washington_post_id":null,"icpsr_id":"20955","wikipedia_id":"Judy Chu"},"source":"Legislator
|
78
|
+
data is originally collected and aggregated by https:\/\/github.com\/unitedstates\/"},{"type":"senator","bio":{"last_name":"Feinstein","first_name":"Dianne","birthday":"1933-06-22","gender":"F","party":"Democrat"},"contact":{"url":"https:\/\/www.feinstein.senate.gov","address":"331
|
79
|
+
Hart Senate Office Building Washington DC 20510","phone":"202-224-3841","contact_form":"https:\/\/www.feinstein.senate.gov\/public\/index.cfm\/e-mail-me"},"social":{"rss_url":"http:\/\/www.feinstein.senate.gov\/public\/?a=rss.feed","twitter":"SenFeinstein","facebook":"senatorfeinstein","youtube":"SenatorFeinstein","youtube_id":"UCtVC--6LR0ff2aOP8THpuEw"},"references":{"bioguide_id":"F000062","thomas_id":"01332","opensecrets_id":"N00007364","lis_id":"S221","cspan_id":"13061","govtrack_id":"300043","votesmart_id":"53273","ballotpedia_id":"Dianne
|
80
|
+
Feinstein","washington_post_id":null,"icpsr_id":"49300","wikipedia_id":"Dianne
|
81
|
+
Feinstein"},"source":"Legislator data is originally collected and aggregated
|
82
|
+
by https:\/\/github.com\/unitedstates\/"},{"type":"senator","bio":{"last_name":"Padilla","first_name":"Alejandro","birthday":"1973-03-22","gender":"M","party":"Democrat"},"contact":{"url":"https:\/\/www.padilla.senate.gov","address":"112
|
83
|
+
Hart Senate Office Building Washington DC 20510","phone":"202-224-3553","contact_form":"https:\/\/www.padilla.senate.gov\/contact\/"},"social":{"rss_url":null,"twitter":"SenAlexPadilla","facebook":null,"youtube":null,"youtube_id":null},"references":{"bioguide_id":"P000145","thomas_id":null,"opensecrets_id":"N00047888","lis_id":"S413","cspan_id":null,"govtrack_id":"456856","votesmart_id":null,"ballotpedia_id":"Alex
|
84
|
+
Padilla","washington_post_id":null,"icpsr_id":null,"wikipedia_id":"Alex Padilla"},"source":"Legislator
|
85
|
+
data is originally collected and aggregated by https:\/\/github.com\/unitedstates\/"}]}],"state_legislative_districts":{"house":[{"name":"Assembly
|
86
|
+
District 41","district_number":"41","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:41","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
|
87
|
+
Senate District 25","district_number":"25","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:25","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"unified":{"name":"Pasadena
|
88
|
+
Unified School District","lea_code":"0629940","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
|
89
|
+
OpenStreetMap contributors"}}}]}'
|
90
|
+
recorded_at: Tue, 05 Jul 2022 22:28:53 GMT
|
91
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,61 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.geocod.io/v1.7/geocode?api_key=secret_api_key&q=1600%20Pennsylvania%20Ave%20NW%20Washington%20DC%2020500
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Transfer-Encoding:
|
24
|
+
- chunked
|
25
|
+
Cache-Control:
|
26
|
+
- no-cache, private
|
27
|
+
Date:
|
28
|
+
- Tue, 05 Jul 2022 22:21:36 GMT
|
29
|
+
X-Billable-Lookups-Count:
|
30
|
+
- '1'
|
31
|
+
X-Billable-Fields-Count:
|
32
|
+
- '0'
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Access-Control-Allow-Methods:
|
36
|
+
- GET, POST
|
37
|
+
Access-Control-Allow-Headers:
|
38
|
+
- Content-Type, User-Agent
|
39
|
+
Access-Control-Expose-Headers:
|
40
|
+
- Request-Handler
|
41
|
+
Request-Handler:
|
42
|
+
- api245
|
43
|
+
Server:
|
44
|
+
- Unicorns with magic wands (https://www.geocod.io)
|
45
|
+
X-Request-Id:
|
46
|
+
- 6167D31F:FDE2_05A15419:0050_62C4B970_53B2E:3D82
|
47
|
+
Connection:
|
48
|
+
- close
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"input":{"address_components":{"number":"1600","street":"Pennsylvania","suffix":"Ave","postdirectional":"NW","formatted_street":"Pennsylvania
|
52
|
+
Ave NW","city":"Washington","state":"DC","zip":"20500","country":"US"},"formatted_address":"1600
|
53
|
+
Pennsylvania Ave NW, Washington, DC 20500"},"results":[{"address_components":{"number":"1600","street":"Pennsylvania","suffix":"Ave","postdirectional":"NW","formatted_street":"Pennsylvania
|
54
|
+
Ave NW","city":"Washington","county":"District of Columbia","state":"DC","zip":"20500","country":"US"},"formatted_address":"1600
|
55
|
+
Pennsylvania Ave NW, Washington, DC 20500","location":{"lat":38.897675,"lng":-77.036547},"accuracy":1,"accuracy_type":"rooftop","source":"Statewide
|
56
|
+
DC"},{"address_components":{"number":"1600","street":"Pennsylvania","suffix":"Ave","postdirectional":"SE","formatted_street":"Pennsylvania
|
57
|
+
Ave SE","city":"Washington","county":"District of Columbia","state":"DC","zip":"20003","country":"US"},"formatted_address":"1600
|
58
|
+
Pennsylvania Ave SE, Washington, DC 20003","location":{"lat":38.879213,"lng":-76.981976},"accuracy":0.7,"accuracy_type":"rooftop","source":"Statewide
|
59
|
+
DC"}]}'
|
60
|
+
recorded_at: Tue, 05 Jul 2022 22:21:36 GMT
|
61
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,59 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.geocod.io/v1.7/geocode?api_key=secret_api_key&q=54%20West%20Colorado%20Boulevard%20Pasadena%20CA%2091105
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 403
|
19
|
+
message: Forbidden
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Transfer-Encoding:
|
24
|
+
- chunked
|
25
|
+
Cache-Control:
|
26
|
+
- no-cache, private
|
27
|
+
Date:
|
28
|
+
- Tue, 05 Jul 2022 22:29:57 GMT
|
29
|
+
Access-Control-Allow-Origin:
|
30
|
+
- "*"
|
31
|
+
Access-Control-Allow-Methods:
|
32
|
+
- GET, POST
|
33
|
+
Access-Control-Allow-Headers:
|
34
|
+
- Content-Type, User-Agent
|
35
|
+
X-Billable-Lookups-Count:
|
36
|
+
- '0'
|
37
|
+
X-Billable-Fields-Count:
|
38
|
+
- '0'
|
39
|
+
Access-Control-Expose-Headers:
|
40
|
+
- Request-Handler
|
41
|
+
Request-Handler:
|
42
|
+
- api286
|
43
|
+
Server:
|
44
|
+
- Unicorns with magic wands (https://www.geocod.io)
|
45
|
+
X-Request-Id:
|
46
|
+
- 6167D31F:FF28_05A15419:0050_62C4BB65_73B1B:3D82
|
47
|
+
X-Ratelimit-Remaining:
|
48
|
+
- '999'
|
49
|
+
X-Ratelimit-Limit:
|
50
|
+
- '1000'
|
51
|
+
X-Ratelimit-Period:
|
52
|
+
- '60'
|
53
|
+
Connection:
|
54
|
+
- close
|
55
|
+
body:
|
56
|
+
encoding: UTF-8
|
57
|
+
string: '{"error":"Invalid API key"}'
|
58
|
+
recorded_at: Tue, 05 Jul 2022 22:29:57 GMT
|
59
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.geocod.io/v1.7/parse?api_key=secret_api_key&q=54%20West%20Colorado%20Boulevard%20Pasadena%20CA%2091105
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Transfer-Encoding:
|
24
|
+
- chunked
|
25
|
+
Cache-Control:
|
26
|
+
- no-cache, private
|
27
|
+
Date:
|
28
|
+
- Tue, 05 Jul 2022 22:21:35 GMT
|
29
|
+
Access-Control-Allow-Origin:
|
30
|
+
- "*"
|
31
|
+
Access-Control-Allow-Methods:
|
32
|
+
- GET, POST
|
33
|
+
Access-Control-Allow-Headers:
|
34
|
+
- Content-Type, User-Agent
|
35
|
+
Access-Control-Expose-Headers:
|
36
|
+
- Request-Handler
|
37
|
+
Request-Handler:
|
38
|
+
- api245
|
39
|
+
Server:
|
40
|
+
- Unicorns with magic wands (https://www.geocod.io)
|
41
|
+
X-Request-Id:
|
42
|
+
- 6167D31F:FDE0_05A15419:0050_62C4B96F_53A6D:3D82
|
43
|
+
Connection:
|
44
|
+
- close
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: '{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
48
|
+
Colorado Blvd","city":"Pasadena","state":"CA","zip":"91105","country":"US"},"formatted_address":"54
|
49
|
+
W Colorado Blvd, Pasadena, CA 91105"}'
|
50
|
+
recorded_at: Tue, 05 Jul 2022 22:21:35 GMT
|
51
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,97 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.geocod.io/v1.7/reverse?api_key=secret_api_key&q=34.145760590909,-118.15204363636
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json
|
23
|
+
Transfer-Encoding:
|
24
|
+
- chunked
|
25
|
+
Cache-Control:
|
26
|
+
- no-cache, private
|
27
|
+
Date:
|
28
|
+
- Tue, 05 Jul 2022 22:21:47 GMT
|
29
|
+
X-Billable-Lookups-Count:
|
30
|
+
- '1'
|
31
|
+
X-Billable-Fields-Count:
|
32
|
+
- '0'
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Access-Control-Allow-Methods:
|
36
|
+
- GET, POST
|
37
|
+
Access-Control-Allow-Headers:
|
38
|
+
- Content-Type, User-Agent
|
39
|
+
Access-Control-Expose-Headers:
|
40
|
+
- Request-Handler
|
41
|
+
Request-Handler:
|
42
|
+
- api245
|
43
|
+
Server:
|
44
|
+
- Unicorns with magic wands (https://www.geocod.io)
|
45
|
+
X-Request-Id:
|
46
|
+
- 6167D31F:FE02_05A15419:0050_62C4B97B_54674:3D82
|
47
|
+
Connection:
|
48
|
+
- close
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"results":[{"address_components":{"number":"10","predirectional":"S","street":"DE
|
52
|
+
Lacey","suffix":"Ave","formatted_street":"S DE Lacey Ave","city":"Pasadena","county":"Los
|
53
|
+
Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"10
|
54
|
+
S DE Lacey Ave, Pasadena, CA 91105","location":{"lat":34.145373,"lng":-118.151925},"accuracy":0.99,"accuracy_type":"rooftop","source":"Los
|
55
|
+
Angeles"},{"address_components":{"number":"58","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
56
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"58
|
57
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145373,"lng":-118.151925},"accuracy":0.99,"accuracy_type":"rooftop","source":"Los
|
58
|
+
Angeles"},{"address_components":{"number":"69","street":"Mc Cormick","suffix":"Aly","formatted_street":"Mc
|
59
|
+
Cormick Aly","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"69
|
60
|
+
Mc Cormick Aly, Pasadena, CA 91105","location":{"lat":34.145373,"lng":-118.151925},"accuracy":0.99,"accuracy_type":"rooftop","source":"Los
|
61
|
+
Angeles"},{"address_components":{"number":"60","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
62
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"60
|
63
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145373,"lng":-118.151925},"accuracy":0.99,"accuracy_type":"rooftop","source":"Los
|
64
|
+
Angeles"},{"address_components":{"number":"68","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
65
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"68
|
66
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145373,"lng":-118.151925},"accuracy":0.99,"accuracy_type":"rooftop","source":"Los
|
67
|
+
Angeles"},{"address_components":{"number":"1","predirectional":"N","street":"DE
|
68
|
+
Lacey","suffix":"Ave","formatted_street":"N DE Lacey Ave","city":"Pasadena","county":"Los
|
69
|
+
Angeles County","state":"CA","zip":"91103","country":"US"},"formatted_address":"1
|
70
|
+
N DE Lacey Ave, Pasadena, CA 91103","location":{"lat":34.145759,"lng":-118.15223},"accuracy":0.98,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
71
|
+
dataset from the US Census Bureau"},{"address_components":{"number":"1","predirectional":"S","street":"DE
|
72
|
+
Lacey","suffix":"Ave","formatted_street":"S DE Lacey Ave","city":"Pasadena","county":"Los
|
73
|
+
Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"1
|
74
|
+
S DE Lacey Ave, Pasadena, CA 91105","location":{"lat":34.145759,"lng":-118.15223},"accuracy":0.98,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
75
|
+
dataset from the US Census Bureau"},{"address_components":{"number":"22","predirectional":"S","street":"DE
|
76
|
+
Lacey","suffix":"Ave","formatted_street":"S DE Lacey Ave","city":"Pasadena","county":"Los
|
77
|
+
Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"22
|
78
|
+
S DE Lacey Ave, Pasadena, CA 91105","location":{"lat":34.145407,"lng":-118.152227},"accuracy":0.97,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
79
|
+
dataset from the US Census Bureau"},{"address_components":{"number":"25","predirectional":"N","street":"DE
|
80
|
+
Lacey","suffix":"Ave","formatted_street":"N DE Lacey Ave","city":"Pasadena","county":"Los
|
81
|
+
Angeles County","state":"CA","zip":"91103","country":"US"},"formatted_address":"25
|
82
|
+
N DE Lacey Ave, Pasadena, CA 91103","location":{"lat":34.146409,"lng":-118.152234},"accuracy":0.96,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
83
|
+
dataset from the US Census Bureau"},{"address_components":{"number":"85","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
84
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"85
|
85
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145759,"lng":-118.15223},"accuracy":0.47,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
86
|
+
dataset from the US Census Bureau"},{"address_components":{"number":"1","street":"Fraser","suffix":"Aly","formatted_street":"Fraser
|
87
|
+
Aly","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"1
|
88
|
+
Fraser Aly, Pasadena, CA 91105","location":{"lat":34.145407,"lng":-118.152227},"accuracy":0.46,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
89
|
+
dataset from the US Census Bureau"},{"address_components":{"number":"43","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
|
90
|
+
Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"43
|
91
|
+
W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145766,"lng":-118.15141},"accuracy":0.45,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
92
|
+
dataset from the US Census Bureau"},{"address_components":{"number":"100","street":"Christiansen","suffix":"Aly","formatted_street":"Christiansen
|
93
|
+
Aly","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91103","country":"US"},"formatted_address":"100
|
94
|
+
Christiansen Aly, Pasadena, CA 91103","location":{"lat":34.146409,"lng":-118.152234},"accuracy":0.45,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
|
95
|
+
dataset from the US Census Bureau"}]}'
|
96
|
+
recorded_at: Tue, 05 Jul 2022 22:21:47 GMT
|
97
|
+
recorded_with: VCR 6.1.0
|