geocodio-ocd 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/lib/geocodio/address.rb +114 -0
  3. data/lib/geocodio/address_set.rb +48 -0
  4. data/lib/geocodio/canadian/electoral_district_base.rb +21 -0
  5. data/lib/geocodio/canadian/electoral_districts.rb +23 -0
  6. data/lib/geocodio/canadian/federal_electoral_district.rb +12 -0
  7. data/lib/geocodio/canadian/provincial_electoral_district.rb +6 -0
  8. data/lib/geocodio/canadian.rb +14 -0
  9. data/lib/geocodio/client/error.rb +15 -0
  10. data/lib/geocodio/client/response.rb +13 -0
  11. data/lib/geocodio/client.rb +155 -0
  12. data/lib/geocodio/congressional_district.rb +30 -0
  13. data/lib/geocodio/legislator.rb +69 -0
  14. data/lib/geocodio/school_district.rb +15 -0
  15. data/lib/geocodio/state_legislative_district.rb +16 -0
  16. data/lib/geocodio/timezone.rb +16 -0
  17. data/lib/geocodio/utils.rb +43 -0
  18. data/lib/geocodio/version.rb +13 -0
  19. data/lib/geocodio.rb +9 -0
  20. data/spec/address_set_spec.rb +31 -0
  21. data/spec/address_spec.rb +235 -0
  22. data/spec/canadian_spec.rb +77 -0
  23. data/spec/client_spec.rb +196 -0
  24. data/spec/congressional_district_spec.rb +45 -0
  25. data/spec/legislator_spec.rb +116 -0
  26. data/spec/school_district_spec.rb +27 -0
  27. data/spec/spec_helper.rb +25 -0
  28. data/spec/state_legislative_district_spec.rb +43 -0
  29. data/spec/timezone_spec.rb +23 -0
  30. data/spec/vcr_cassettes/alaska_geocode_with_fields.yml +68 -0
  31. data/spec/vcr_cassettes/batch_geocode.yml +83 -0
  32. data/spec/vcr_cassettes/batch_geocode_with_bad_address.yml +61 -0
  33. data/spec/vcr_cassettes/batch_geocode_with_fields.yml +121 -0
  34. data/spec/vcr_cassettes/batch_reverse.yml +181 -0
  35. data/spec/vcr_cassettes/batch_reverse_with_fields.yml +384 -0
  36. data/spec/vcr_cassettes/canadian.yml +101 -0
  37. data/spec/vcr_cassettes/geocode.yml +61 -0
  38. data/spec/vcr_cassettes/geocode_bad_address.yml +53 -0
  39. data/spec/vcr_cassettes/geocode_with_fields.yml +71 -0
  40. data/spec/vcr_cassettes/geocode_with_fields_legacy.yml +91 -0
  41. data/spec/vcr_cassettes/geocode_with_postdirectional.yml +61 -0
  42. data/spec/vcr_cassettes/invalid_key.yml +59 -0
  43. data/spec/vcr_cassettes/parse.yml +51 -0
  44. data/spec/vcr_cassettes/reverse.yml +97 -0
  45. data/spec/vcr_cassettes/reverse_with_fields.yml +163 -0
  46. data/spec/vcr_cassettes/reverse_with_fields_no_house_info.yml +138 -0
  47. metadata +189 -0
@@ -0,0 +1,384 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.geocod.io/v1.7/reverse?api_key=secret_api_key&fields=cd118,stateleg-next,school,timezone
6
+ body:
7
+ encoding: UTF-8
8
+ string: '["37.331669,-122.03074","34.145760590909,-118.15204363636","37.7815,-122.404933"]'
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
+ Content-Type:
17
+ - application/json
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: OK
22
+ headers:
23
+ Content-Type:
24
+ - application/json
25
+ Transfer-Encoding:
26
+ - chunked
27
+ Cache-Control:
28
+ - no-cache, private
29
+ Date:
30
+ - Tue, 05 Jul 2022 22:21:45 GMT
31
+ X-Billable-Lookups-Count:
32
+ - '3'
33
+ X-Billable-Fields-Count:
34
+ - '12'
35
+ Access-Control-Allow-Origin:
36
+ - "*"
37
+ Access-Control-Allow-Methods:
38
+ - GET, POST
39
+ Access-Control-Allow-Headers:
40
+ - Content-Type, User-Agent
41
+ Access-Control-Expose-Headers:
42
+ - Request-Handler
43
+ Request-Handler:
44
+ - api245
45
+ Server:
46
+ - Unicorns with magic wands (https://www.geocod.io)
47
+ X-Request-Id:
48
+ - 6167D31F:FDFF_05A15419:0050_62C4B978_543F6:3D82
49
+ Connection:
50
+ - close
51
+ body:
52
+ encoding: UTF-8
53
+ string: '{"results":[{"query":"37.331669,-122.03074","response":{"results":[{"address_components":{"number":"10700","street":"DE
54
+ Anza","suffix":"Blvd","formatted_street":"DE Anza Blvd","city":"Cupertino","county":"Santa
55
+ Clara County","state":"CA","zip":"95014","country":"US"},"formatted_address":"10700
56
+ DE Anza Blvd, Cupertino, CA 95014","location":{"lat":37.331693,"lng":-122.030057},"accuracy":0.99,"accuracy_type":"rooftop","source":"Santa
57
+ Clara","fields":{"congressional_districts":[{"name":"Congressional District
58
+ 17","district_number":17,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:17","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
59
+ District 26","district_number":"26","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:26","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
60
+ Senate District 13","district_number":"13","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:13","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"elementary":{"name":"Cupertino
61
+ Union Elementary School District","lea_code":"0610290","grade_low":"KG","grade_high":"08"},"secondary":{"name":"Fremont
62
+ Union High School District","lea_code":"0614430","grade_low":"09","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
63
+ OpenStreetMap contributors"}}},{"address_components":{"number":"10700","predirectional":"N","street":"DE
64
+ Anza","suffix":"Blvd","formatted_street":"N DE Anza Blvd","city":"Cupertino","county":"Santa
65
+ Clara County","state":"CA","zip":"95014","country":"US"},"formatted_address":"10700
66
+ N DE Anza Blvd, Cupertino, CA 95014","location":{"lat":37.331966,"lng":-122.030416},"accuracy":0.98,"accuracy_type":"rooftop","source":"City
67
+ of Cupertino","fields":{"congressional_districts":[{"name":"Congressional
68
+ District 17","district_number":17,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:17","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
69
+ District 26","district_number":"26","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:26","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
70
+ Senate District 13","district_number":"13","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:13","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"elementary":{"name":"Cupertino
71
+ Union Elementary School District","lea_code":"0610290","grade_low":"KG","grade_high":"08"},"secondary":{"name":"Fremont
72
+ Union High School District","lea_code":"0614430","grade_low":"09","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
73
+ OpenStreetMap contributors"}}},{"address_components":{"number":"1","street":"Infinite","suffix":"Loop","formatted_street":"Infinite
74
+ Loop","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014","country":"US"},"formatted_address":"1
75
+ Infinite Loop, Cupertino, CA 95014","location":{"lat":37.331524,"lng":-122.030231},"accuracy":0.98,"accuracy_type":"rooftop","source":"City
76
+ of Cupertino","fields":{"congressional_districts":[{"name":"Congressional
77
+ District 17","district_number":17,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:17","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
78
+ District 26","district_number":"26","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:26","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
79
+ Senate District 13","district_number":"13","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:13","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"elementary":{"name":"Cupertino
80
+ Union Elementary School District","lea_code":"0610290","grade_low":"KG","grade_high":"08"},"secondary":{"name":"Fremont
81
+ Union High School District","lea_code":"0614430","grade_low":"09","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
82
+ OpenStreetMap contributors"}}},{"address_components":{"number":"10690","predirectional":"N","street":"DE
83
+ Anza","suffix":"Blvd","formatted_street":"N DE Anza Blvd","city":"Cupertino","county":"Santa
84
+ Clara County","state":"CA","zip":"95014","country":"US"},"formatted_address":"10690
85
+ N DE Anza Blvd, Cupertino, CA 95014","location":{"lat":37.331177,"lng":-122.031641},"accuracy":0.97,"accuracy_type":"rooftop","source":"Santa
86
+ Clara","fields":{"congressional_districts":[{"name":"Congressional District
87
+ 17","district_number":17,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:17","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
88
+ District 26","district_number":"26","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:26","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
89
+ Senate District 13","district_number":"13","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:13","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"elementary":{"name":"Cupertino
90
+ Union Elementary School District","lea_code":"0610290","grade_low":"KG","grade_high":"08"},"secondary":{"name":"Fremont
91
+ Union High School District","lea_code":"0614430","grade_low":"09","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
92
+ OpenStreetMap contributors"}}},{"address_components":{"number":"10856","predirectional":"N","street":"DE
93
+ Anza","suffix":"Blvd","formatted_street":"N DE Anza Blvd","city":"Cupertino","county":"Santa
94
+ Clara County","state":"CA","zip":"95014","country":"US"},"formatted_address":"10856
95
+ N DE Anza Blvd, Cupertino, CA 95014","location":{"lat":37.33182,"lng":-122.03239},"accuracy":0.94,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
96
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
97
+ District 17","district_number":17,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:17","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
98
+ District 26","district_number":"26","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:26","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
99
+ Senate District 13","district_number":"13","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:13","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"elementary":{"name":"Cupertino
100
+ Union Elementary School District","lea_code":"0610290","grade_low":"KG","grade_high":"08"},"secondary":{"name":"Fremont
101
+ Union High School District","lea_code":"0614430","grade_low":"09","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
102
+ OpenStreetMap contributors"}}},{"address_components":{"number":"10826","predirectional":"N","street":"DE
103
+ Anza","suffix":"Blvd","formatted_street":"N DE Anza Blvd","city":"Cupertino","county":"Santa
104
+ Clara County","state":"CA","zip":"95014","country":"US"},"formatted_address":"10826
105
+ N DE Anza Blvd, Cupertino, CA 95014","location":{"lat":37.33122,"lng":-122.03238},"accuracy":0.94,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
106
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
107
+ District 17","district_number":17,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:17","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
108
+ District 26","district_number":"26","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:26","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
109
+ Senate District 13","district_number":"13","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:13","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"elementary":{"name":"Cupertino
110
+ Union Elementary School District","lea_code":"0610290","grade_low":"KG","grade_high":"08"},"secondary":{"name":"Fremont
111
+ Union High School District","lea_code":"0614430","grade_low":"09","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
112
+ OpenStreetMap contributors"}}},{"address_components":{"number":"10748","predirectional":"N","street":"DE
113
+ Anza","suffix":"Blvd","formatted_street":"N DE Anza Blvd","city":"Cupertino","county":"Santa
114
+ Clara County","state":"CA","zip":"95014","country":"US"},"formatted_address":"10748
115
+ N DE Anza Blvd, Cupertino, CA 95014","location":{"lat":37.330219,"lng":-122.03238},"accuracy":0.93,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
116
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
117
+ District 17","district_number":17,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:17","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
118
+ District 26","district_number":"26","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:26","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
119
+ Senate District 13","district_number":"13","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:13","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"elementary":{"name":"Cupertino
120
+ Union Elementary School District","lea_code":"0610290","grade_low":"KG","grade_high":"08"},"secondary":{"name":"Fremont
121
+ Union High School District","lea_code":"0614430","grade_low":"09","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
122
+ OpenStreetMap contributors"}}},{"address_components":{"number":"91","street":"Infinite","suffix":"Loop","formatted_street":"Infinite
123
+ Loop","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014","country":"US"},"formatted_address":"91
124
+ Infinite Loop, Cupertino, CA 95014","location":{"lat":37.332709,"lng":-122.03071},"accuracy":0.43,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
125
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
126
+ District 17","district_number":17,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:17","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
127
+ District 26","district_number":"26","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:26","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
128
+ Senate District 13","district_number":"13","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:13","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"elementary":{"name":"Cupertino
129
+ Union Elementary School District","lea_code":"0610290","grade_low":"KG","grade_high":"08"},"secondary":{"name":"Fremont
130
+ Union High School District","lea_code":"0614430","grade_low":"09","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
131
+ OpenStreetMap contributors"}}},{"address_components":{"number":"19118","street":"Mariani","suffix":"Ave","formatted_street":"Mariani
132
+ Ave","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014","country":"US"},"formatted_address":"19118
133
+ Mariani Ave, Cupertino, CA 95014","location":{"lat":37.330489,"lng":-122.0305},"accuracy":0.43,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
134
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
135
+ District 17","district_number":17,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:17","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
136
+ District 26","district_number":"26","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:26","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
137
+ Senate District 13","district_number":"13","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:13","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"elementary":{"name":"Cupertino
138
+ Union Elementary School District","lea_code":"0610290","grade_low":"KG","grade_high":"08"},"secondary":{"name":"Fremont
139
+ Union High School District","lea_code":"0614430","grade_low":"09","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
140
+ OpenStreetMap contributors"}}},{"address_components":{"number":"19479","street":"Mariani","suffix":"Ave","formatted_street":"Mariani
141
+ Ave","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014","country":"US"},"formatted_address":"19479
142
+ Mariani Ave, Cupertino, CA 95014","location":{"lat":37.330519,"lng":-122.03008},"accuracy":0.43,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
143
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
144
+ District 17","district_number":17,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:17","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
145
+ District 26","district_number":"26","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:26","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
146
+ Senate District 13","district_number":"13","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:13","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"elementary":{"name":"Cupertino
147
+ Union Elementary School District","lea_code":"0610290","grade_low":"KG","grade_high":"08"},"secondary":{"name":"Fremont
148
+ Union High School District","lea_code":"0614430","grade_low":"09","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
149
+ OpenStreetMap contributors"}}},{"address_components":{"number":"19116","street":"Mariani","suffix":"Ave","formatted_street":"Mariani
150
+ Ave","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014","country":"US"},"formatted_address":"19116
151
+ Mariani Ave, Cupertino, CA 95014","location":{"lat":37.330407,"lng":-122.030873},"accuracy":0.43,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
152
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
153
+ District 17","district_number":17,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:17","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
154
+ District 26","district_number":"26","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:26","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
155
+ Senate District 13","district_number":"13","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:13","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"elementary":{"name":"Cupertino
156
+ Union Elementary School District","lea_code":"0610290","grade_low":"KG","grade_high":"08"},"secondary":{"name":"Fremont
157
+ Union High School District","lea_code":"0614430","grade_low":"09","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
158
+ OpenStreetMap contributors"}}},{"address_components":{"number":"20500","street":"Valley
159
+ Green","suffix":"Dr","formatted_street":"Valley Green Dr","city":"Cupertino","county":"Santa
160
+ Clara County","state":"CA","zip":"95014","country":"US"},"formatted_address":"20500
161
+ Valley Green Dr, Cupertino, CA 95014","location":{"lat":37.33182,"lng":-122.03239},"accuracy":0.42,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
162
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
163
+ District 17","district_number":17,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:17","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
164
+ District 26","district_number":"26","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:26","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
165
+ Senate District 13","district_number":"13","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:13","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"elementary":{"name":"Cupertino
166
+ Union Elementary School District","lea_code":"0610290","grade_low":"KG","grade_high":"08"},"secondary":{"name":"Fremont
167
+ Union High School District","lea_code":"0614430","grade_low":"09","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
168
+ OpenStreetMap contributors"}}}]}},{"query":"34.145760590909,-118.15204363636","response":{"results":[{"address_components":{"number":"10","predirectional":"S","street":"DE
169
+ Lacey","suffix":"Ave","formatted_street":"S DE Lacey Ave","city":"Pasadena","county":"Los
170
+ Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"10
171
+ S DE Lacey Ave, Pasadena, CA 91105","location":{"lat":34.145373,"lng":-118.151925},"accuracy":0.99,"accuracy_type":"rooftop","source":"Los
172
+ Angeles","fields":{"congressional_districts":[{"name":"Congressional District
173
+ 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
174
+ 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
175
+ 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
176
+ 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
177
+ OpenStreetMap contributors"}}},{"address_components":{"number":"58","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
178
+ Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"58
179
+ W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145373,"lng":-118.151925},"accuracy":0.99,"accuracy_type":"rooftop","source":"Los
180
+ Angeles","fields":{"congressional_districts":[{"name":"Congressional District
181
+ 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
182
+ 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
183
+ 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
184
+ 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
185
+ OpenStreetMap contributors"}}},{"address_components":{"number":"69","street":"Mc
186
+ Cormick","suffix":"Aly","formatted_street":"Mc Cormick Aly","city":"Pasadena","county":"Los
187
+ Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"69
188
+ Mc Cormick Aly, Pasadena, CA 91105","location":{"lat":34.145373,"lng":-118.151925},"accuracy":0.99,"accuracy_type":"rooftop","source":"Los
189
+ Angeles","fields":{"congressional_districts":[{"name":"Congressional District
190
+ 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
191
+ 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
192
+ 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
193
+ 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
194
+ OpenStreetMap contributors"}}},{"address_components":{"number":"60","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
195
+ Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"60
196
+ W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145373,"lng":-118.151925},"accuracy":0.99,"accuracy_type":"rooftop","source":"Los
197
+ Angeles","fields":{"congressional_districts":[{"name":"Congressional District
198
+ 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
199
+ 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
200
+ 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
201
+ 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
202
+ OpenStreetMap contributors"}}},{"address_components":{"number":"68","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
203
+ Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"68
204
+ W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145373,"lng":-118.151925},"accuracy":0.99,"accuracy_type":"rooftop","source":"Los
205
+ Angeles","fields":{"congressional_districts":[{"name":"Congressional District
206
+ 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
207
+ 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
208
+ 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
209
+ 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
210
+ OpenStreetMap contributors"}}},{"address_components":{"number":"1","predirectional":"N","street":"DE
211
+ Lacey","suffix":"Ave","formatted_street":"N DE Lacey Ave","city":"Pasadena","county":"Los
212
+ Angeles County","state":"CA","zip":"91103","country":"US"},"formatted_address":"1
213
+ 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
214
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
215
+ District 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
216
+ 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
217
+ 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
218
+ 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
219
+ OpenStreetMap contributors"}}},{"address_components":{"number":"1","predirectional":"S","street":"DE
220
+ Lacey","suffix":"Ave","formatted_street":"S DE Lacey Ave","city":"Pasadena","county":"Los
221
+ Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"1
222
+ 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
223
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
224
+ District 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
225
+ 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
226
+ 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
227
+ 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
228
+ OpenStreetMap contributors"}}},{"address_components":{"number":"22","predirectional":"S","street":"DE
229
+ Lacey","suffix":"Ave","formatted_street":"S DE Lacey Ave","city":"Pasadena","county":"Los
230
+ Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"22
231
+ 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
232
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
233
+ District 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
234
+ 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
235
+ 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
236
+ 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
237
+ OpenStreetMap contributors"}}},{"address_components":{"number":"25","predirectional":"N","street":"DE
238
+ Lacey","suffix":"Ave","formatted_street":"N DE Lacey Ave","city":"Pasadena","county":"Los
239
+ Angeles County","state":"CA","zip":"91103","country":"US"},"formatted_address":"25
240
+ 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
241
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
242
+ District 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
243
+ 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
244
+ 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
245
+ 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
246
+ OpenStreetMap contributors"}}},{"address_components":{"number":"85","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
247
+ Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"85
248
+ W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145759,"lng":-118.15223},"accuracy":0.47,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
249
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
250
+ District 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
251
+ 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
252
+ 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
253
+ 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
254
+ OpenStreetMap contributors"}}},{"address_components":{"number":"1","street":"Fraser","suffix":"Aly","formatted_street":"Fraser
255
+ Aly","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"1
256
+ Fraser Aly, Pasadena, CA 91105","location":{"lat":34.145407,"lng":-118.152227},"accuracy":0.46,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
257
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
258
+ District 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
259
+ 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
260
+ 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
261
+ 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
262
+ OpenStreetMap contributors"}}},{"address_components":{"number":"43","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
263
+ Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"43
264
+ W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145766,"lng":-118.15141},"accuracy":0.45,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
265
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
266
+ District 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
267
+ 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
268
+ 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
269
+ 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
270
+ OpenStreetMap contributors"}}},{"address_components":{"number":"100","street":"Christiansen","suffix":"Aly","formatted_street":"Christiansen
271
+ Aly","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91103","country":"US"},"formatted_address":"100
272
+ Christiansen Aly, Pasadena, CA 91103","location":{"lat":34.146409,"lng":-118.152234},"accuracy":0.45,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
273
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
274
+ District 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
275
+ 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
276
+ 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
277
+ 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
278
+ OpenStreetMap contributors"}}}]}},{"query":"37.7815,-122.404933","response":{"results":[{"address_components":{"number":"906","street":"Howard","suffix":"St","formatted_street":"Howard
279
+ St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"906
280
+ Howard St, San Francisco, CA 94103","location":{"lat":37.781471,"lng":-122.405246},"accuracy":1,"accuracy_type":"rooftop","source":"San
281
+ Francisco","fields":{"congressional_districts":[{"name":"Congressional District
282
+ 11","district_number":11,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:11","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
283
+ District 17","district_number":"17","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:17","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
284
+ Senate District 11","district_number":"11","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:11","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"unified":{"name":"San
285
+ Francisco Unified School District","lea_code":"0634410","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
286
+ OpenStreetMap contributors"}}},{"address_components":{"number":"194","street":"5th","suffix":"St","formatted_street":"5th
287
+ St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"194
288
+ 5th St, San Francisco, CA 94103","location":{"lat":37.781466,"lng":-122.405248},"accuracy":1,"accuracy_type":"rooftop","source":"San
289
+ Francisco","fields":{"congressional_districts":[{"name":"Congressional District
290
+ 11","district_number":11,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:11","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
291
+ District 17","district_number":"17","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:17","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
292
+ Senate District 11","district_number":"11","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:11","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"unified":{"name":"San
293
+ Francisco Unified School District","lea_code":"0634410","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
294
+ OpenStreetMap contributors"}}},{"address_components":{"number":"198","street":"5th","suffix":"St","formatted_street":"5th
295
+ St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"198
296
+ 5th St, San Francisco, CA 94103","location":{"lat":37.781467,"lng":-122.405249},"accuracy":1,"accuracy_type":"rooftop","source":"San
297
+ Francisco","fields":{"congressional_districts":[{"name":"Congressional District
298
+ 11","district_number":11,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:11","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
299
+ District 17","district_number":"17","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:17","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
300
+ Senate District 11","district_number":"11","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:11","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"unified":{"name":"San
301
+ Francisco Unified School District","lea_code":"0634410","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
302
+ OpenStreetMap contributors"}}},{"address_components":{"number":"206","street":"5th","suffix":"St","formatted_street":"5th
303
+ St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"206
304
+ 5th St, San Francisco, CA 94103","location":{"lat":37.781187,"lng":-122.404925},"accuracy":0.99,"accuracy_type":"rooftop","source":"San
305
+ Francisco","fields":{"congressional_districts":[{"name":"Congressional District
306
+ 11","district_number":11,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:11","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
307
+ District 17","district_number":"17","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:17","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
308
+ Senate District 11","district_number":"11","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:11","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"unified":{"name":"San
309
+ Francisco Unified School District","lea_code":"0634410","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
310
+ OpenStreetMap contributors"}}},{"address_components":{"number":"901","street":"Howard","suffix":"St","formatted_street":"Howard
311
+ St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"901
312
+ Howard St, San Francisco, CA 94103","location":{"lat":37.781185,"lng":-122.404921},"accuracy":0.99,"accuracy_type":"rooftop","source":"San
313
+ Francisco","fields":{"congressional_districts":[{"name":"Congressional District
314
+ 11","district_number":11,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:11","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
315
+ District 17","district_number":"17","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:17","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
316
+ Senate District 11","district_number":"11","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:11","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"unified":{"name":"San
317
+ Francisco Unified School District","lea_code":"0634410","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
318
+ OpenStreetMap contributors"}}},{"address_components":{"number":"900","street":"Howard","suffix":"St","formatted_street":"Howard
319
+ St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"900
320
+ Howard St, San Francisco, CA 94103","location":{"lat":37.7815,"lng":-122.404933},"accuracy":0.5,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
321
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
322
+ District 11","district_number":11,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:11","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
323
+ District 17","district_number":"17","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:17","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
324
+ Senate District 11","district_number":"11","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:11","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"unified":{"name":"San
325
+ Francisco Unified School District","lea_code":"0634410","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
326
+ OpenStreetMap contributors"}}},{"address_components":{"number":"227","street":"5th","suffix":"St","formatted_street":"5th
327
+ St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"227
328
+ 5th St, San Francisco, CA 94103","location":{"lat":37.781076,"lng":-122.404404},"accuracy":0.45,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
329
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
330
+ District 11","district_number":11,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:11","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
331
+ District 17","district_number":"17","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:17","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
332
+ Senate District 11","district_number":"11","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:11","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"unified":{"name":"San
333
+ Francisco Unified School District","lea_code":"0634410","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
334
+ OpenStreetMap contributors"}}},{"address_components":{"number":"400","street":"Tehama","suffix":"St","formatted_street":"Tehama
335
+ St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"400
336
+ Tehama St, San Francisco, CA 94103","location":{"lat":37.781076,"lng":-122.404404},"accuracy":0.45,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
337
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
338
+ District 11","district_number":11,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:11","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
339
+ District 17","district_number":"17","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:17","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
340
+ Senate District 11","district_number":"11","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:11","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"unified":{"name":"San
341
+ Francisco Unified School District","lea_code":"0634410","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
342
+ OpenStreetMap contributors"}}},{"address_components":{"number":"177","street":"5th","suffix":"St","formatted_street":"5th
343
+ St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"177
344
+ 5th St, San Francisco, CA 94103","location":{"lat":37.781925,"lng":-122.405466},"accuracy":0.45,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
345
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
346
+ District 11","district_number":11,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:11","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
347
+ District 17","district_number":"17","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:17","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
348
+ Senate District 11","district_number":"11","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:11","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"unified":{"name":"San
349
+ Francisco Unified School District","lea_code":"0634410","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
350
+ OpenStreetMap contributors"}}},{"address_components":{"number":"400","street":"Natoma","suffix":"St","formatted_street":"Natoma
351
+ St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"400
352
+ Natoma St, San Francisco, CA 94103","location":{"lat":37.781925,"lng":-122.405466},"accuracy":0.45,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
353
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
354
+ District 11","district_number":11,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:11","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
355
+ District 17","district_number":"17","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:17","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
356
+ Senate District 11","district_number":"11","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:11","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"unified":{"name":"San
357
+ Francisco Unified School District","lea_code":"0634410","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
358
+ OpenStreetMap contributors"}}},{"address_components":{"number":"928","street":"Howard","suffix":"St","formatted_street":"Howard
359
+ St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"928
360
+ Howard St, San Francisco, CA 94103","location":{"lat":37.780878,"lng":-122.405719},"accuracy":0.44,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
361
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
362
+ District 11","district_number":11,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:11","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
363
+ District 17","district_number":"17","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:17","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
364
+ Senate District 11","district_number":"11","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:11","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"unified":{"name":"San
365
+ Francisco Unified School District","lea_code":"0634410","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
366
+ OpenStreetMap contributors"}}},{"address_components":{"number":"80","street":"Mary","suffix":"St","formatted_street":"Mary
367
+ St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"80
368
+ Mary St, San Francisco, CA 94103","location":{"lat":37.781306,"lng":-122.406248},"accuracy":0.43,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
369
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
370
+ District 11","district_number":11,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:11","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
371
+ District 17","district_number":"17","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:17","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
372
+ Senate District 11","district_number":"11","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:11","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"unified":{"name":"San
373
+ Francisco Unified School District","lea_code":"0634410","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
374
+ OpenStreetMap contributors"}}},{"address_components":{"number":"432","street":"Natoma","suffix":"St","formatted_street":"Natoma
375
+ St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"432
376
+ Natoma St, San Francisco, CA 94103","location":{"lat":37.781306,"lng":-122.406248},"accuracy":0.43,"accuracy_type":"nearest_street","source":"TIGER\/Line\u00ae
377
+ dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
378
+ District 11","district_number":11,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:11","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
379
+ District 17","district_number":"17","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:17","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
380
+ Senate District 11","district_number":"11","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:11","is_upcoming_state_legislative_district":true,"proportion":1}]},"school_districts":{"unified":{"name":"San
381
+ Francisco Unified School District","lea_code":"0634410","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
382
+ OpenStreetMap contributors"}}}]}}]}'
383
+ recorded_at: Tue, 05 Jul 2022 22:21:45 GMT
384
+ recorded_with: VCR 6.1.0
@@ -0,0 +1,101 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: http://api.geocod.io/v1.7/geocode?api_key=secret_api_key&fields=timezone,cd118,provriding,riding,stateleg-next
6
+ body:
7
+ encoding: UTF-8
8
+ string: '["1 Infinite Loop Cupertino CA 95014","356 Yonge St, Toronto, ON M5G,
9
+ Canada","3475 Bd Sainte-Anne, Beauport, QC G1E 3L5, Canada"]'
10
+ headers:
11
+ Accept:
12
+ - application/json
13
+ Accept-Encoding:
14
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
15
+ User-Agent:
16
+ - Ruby
17
+ Content-Type:
18
+ - application/json
19
+ response:
20
+ status:
21
+ code: 200
22
+ message: OK
23
+ headers:
24
+ Content-Type:
25
+ - application/json
26
+ Transfer-Encoding:
27
+ - chunked
28
+ Cache-Control:
29
+ - no-cache, private
30
+ Date:
31
+ - Tue, 05 Jul 2022 23:16:29 GMT
32
+ X-Billable-Lookups-Count:
33
+ - '3'
34
+ X-Billable-Fields-Count:
35
+ - '9'
36
+ Access-Control-Allow-Origin:
37
+ - "*"
38
+ Access-Control-Allow-Methods:
39
+ - GET, POST
40
+ Access-Control-Allow-Headers:
41
+ - Content-Type, User-Agent
42
+ Access-Control-Expose-Headers:
43
+ - Request-Handler
44
+ Request-Handler:
45
+ - api228
46
+ Server:
47
+ - Unicorns with magic wands (https://www.geocod.io)
48
+ X-Request-Id:
49
+ - 6167D31F:C52C_05A15419:0050_62C4C64C_372DA:3D9A
50
+ Connection:
51
+ - close
52
+ body:
53
+ encoding: UTF-8
54
+ string: '{"results":[{"query":"1 Infinite Loop Cupertino CA 95014","response":{"input":{"address_components":{"number":"1","street":"Infinite","suffix":"Loop","formatted_street":"Infinite
55
+ Loop","city":"Cupertino","state":"CA","zip":"95014","country":"US"},"formatted_address":"1
56
+ Infinite Loop, Cupertino, CA 95014"},"results":[{"address_components":{"number":"1","street":"Infinite","suffix":"Loop","formatted_street":"Infinite
57
+ Loop","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014","country":"US"},"formatted_address":"1
58
+ Infinite Loop, Cupertino, CA 95014","location":{"lat":37.331524,"lng":-122.030231},"accuracy":1,"accuracy_type":"rooftop","source":"City
59
+ of Cupertino","fields":{"congressional_districts":[{"name":"Congressional
60
+ District 17","district_number":17,"ocd_id":"ocd-division\/country:us\/state:ca\/cd:17","congress_number":"118th","congress_years":"2023-2025","proportion":1}],"state_legislative_districts":{"house":[{"name":"Assembly
61
+ District 26","district_number":"26","ocd_id":"ocd-division\/country:us\/state:ca\/sldl:26","is_upcoming_state_legislative_district":true,"proportion":1}],"senate":[{"name":"State
62
+ Senate District 13","district_number":"13","ocd_id":"ocd-division\/country:us\/state:ca\/sldu:13","is_upcoming_state_legislative_district":true,"proportion":1}]},"timezone":{"name":"America\/Los_Angeles","utc_offset":-8,"observes_dst":true,"abbreviation":"PST","source":"\u00a9
63
+ OpenStreetMap contributors"}}}]}},{"query":"356 Yonge St, Toronto, ON M5G,
64
+ Canada","response":{"input":{"address_components":{"number":"356","street":"Yonge","suffix":"St","formatted_street":"Yonge
65
+ St","city":"Toronto","state":"ON","zip":"M5G","country":"CA"},"formatted_address":"356
66
+ Yonge St, Toronto, ON M5G"},"results":[{"address_components":{"number":"356","street":"Yonge","suffix":"St","formatted_street":"Yonge
67
+ St","city":"Toronto","state":"ON","zip":"M5G","country":"CA"},"formatted_address":"356
68
+ Yonge St, Toronto, ON M5G","location":{"lat":43.658192,"lng":-79.382046},"accuracy":1,"accuracy_type":"rooftop","source":"City
69
+ of Toronto","fields":{"timezone":{"name":"America\/Toronto","utc_offset":-5,"observes_dst":true,"abbreviation":"EST","source":"\u00a9
70
+ OpenStreetMap contributors"},"riding":{"code":"35110","ocd_id":"ocd-division\/country:ca\/ed:35110-2013","name_french":"University--Rosedale","name_english":"University--Rosedale","source":"Statistics
71
+ Canada"},"provincial_riding":{"ocd_id":"ocd-division\/country:ca\/province:on\/ed:112-2015","name_french":"University
72
+ - Rosedale","name_english":"University - Rosedale","source":"Elections Ontario"}}}]}},{"query":"3475
73
+ Bd Sainte-Anne, Beauport, QC G1E 3L5, Canada","response":{"input":{"address_components":{"number":"3475","city":"Beauport","state":"QC","zip":"G1E","country":"CA"},"formatted_address":"3475,
74
+ Beauport, QC G1E"},"results":[{"address_components":{"city":"Beauport","state":"QC","zip":"G1E","country":"CA"},"formatted_address":"Beauport,
75
+ QC G1E","location":{"lat":46.8588,"lng":-71.192},"accuracy":0.35,"accuracy_type":"place","source":"CanVec+
76
+ by Natural Resources Canada","fields":{"timezone":{"name":"America\/Toronto","utc_offset":-5,"observes_dst":true,"abbreviation":"EST","source":"\u00a9
77
+ OpenStreetMap contributors"},"riding":{"code":"24008","ocd_id":"ocd-division\/country:ca\/ed:24008-2013","name_french":"Beauport--Limoilou","name_english":"Beauport--Limoilou","source":"Statistics
78
+ Canada"},"provincial_riding":{"ocd_id":"ocd-division\/country:ca\/province:qc\/ed:742-2017","name_french":"Montmorency","name_english":"Montmorency","source":"Contains
79
+ open data granted under the Chief Electoral Officer''s Open Data User Licence
80
+ available at http:\/\/dgeq.org\/en\/. The fact of granting the licence in
81
+ no way implies that the Chief Electoral Officer approves the use made of the
82
+ open data."}}},{"address_components":{"city":"Beauport","state":"QC","zip":"G1B","country":"CA"},"formatted_address":"Beauport,
83
+ QC G1B","location":{"lat":46.9263,"lng":-71.2258},"accuracy":0.25,"accuracy_type":"place","source":"CanVec+
84
+ by Natural Resources Canada","fields":{"timezone":{"name":"America\/Toronto","utc_offset":-5,"observes_dst":true,"abbreviation":"EST","source":"\u00a9
85
+ OpenStreetMap contributors"},"riding":{"code":"24020","ocd_id":"ocd-division\/country:ca\/ed:24020-2013","name_french":"Beauport--C\u00f4te-de-Beaupr\u00e9--\u00cele
86
+ d\u2019Orl\u00e9ans--Charlevoix","name_english":"Beauport--C\u00f4te-de-Beaupr\u00e9--\u00cele
87
+ d\u2019Orl\u00e9ans--Charlevoix","source":"Statistics Canada"},"provincial_riding":{"ocd_id":"ocd-division\/country:ca\/province:qc\/ed:742-2017","name_french":"Montmorency","name_english":"Montmorency","source":"Contains
88
+ open data granted under the Chief Electoral Officer''s Open Data User Licence
89
+ available at http:\/\/dgeq.org\/en\/. The fact of granting the licence in
90
+ no way implies that the Chief Electoral Officer approves the use made of the
91
+ open data."}}},{"address_components":{"city":"Beauport","state":"QC","zip":"G1C","country":"CA"},"formatted_address":"Beauport,
92
+ QC G1C","location":{"lat":46.8801,"lng":-71.196},"accuracy":0.25,"accuracy_type":"place","source":"CanVec+
93
+ by Natural Resources Canada","fields":{"timezone":{"name":"America\/Toronto","utc_offset":-5,"observes_dst":true,"abbreviation":"EST","source":"\u00a9
94
+ OpenStreetMap contributors"},"riding":{"code":"24008","ocd_id":"ocd-division\/country:ca\/ed:24008-2013","name_french":"Beauport--Limoilou","name_english":"Beauport--Limoilou","source":"Statistics
95
+ Canada"},"provincial_riding":{"ocd_id":"ocd-division\/country:ca\/province:qc\/ed:742-2017","name_french":"Montmorency","name_english":"Montmorency","source":"Contains
96
+ open data granted under the Chief Electoral Officer''s Open Data User Licence
97
+ available at http:\/\/dgeq.org\/en\/. The fact of granting the licence in
98
+ no way implies that the Chief Electoral Officer approves the use made of the
99
+ open data."}}}]}}]}'
100
+ recorded_at: Tue, 05 Jul 2022 23:16:29 GMT
101
+ recorded_with: VCR 6.1.0