geocodio 2.1.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/geocodio/address.rb +5 -5
- data/lib/geocodio/address_set.rb +7 -3
- data/lib/geocodio/client.rb +4 -4
- data/lib/geocodio/congressional_district.rb +9 -0
- data/lib/geocodio/legislator.rb +69 -0
- data/lib/geocodio/state_legislative_district.rb +2 -1
- data/lib/geocodio/utils.rb +5 -3
- data/lib/geocodio/version.rb +2 -2
- data/spec/address_spec.rb +17 -15
- data/spec/client_spec.rb +9 -3
- data/spec/congressional_district_spec.rb +16 -3
- data/spec/legislator_spec.rb +116 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/vcr_cassettes/alaska_geocode_with_fields.yml +21 -7
- data/spec/vcr_cassettes/batch_geocode.yml +32 -23
- data/spec/vcr_cassettes/batch_geocode_with_bad_address.yml +20 -10
- data/spec/vcr_cassettes/batch_geocode_with_fields.yml +107 -40
- data/spec/vcr_cassettes/batch_reverse.yml +66 -35
- data/spec/vcr_cassettes/batch_reverse_with_fields.yml +298 -70
- data/spec/vcr_cassettes/geocode.yml +24 -14
- data/spec/vcr_cassettes/geocode_bad_address.yml +11 -5
- data/spec/vcr_cassettes/geocode_with_fields.yml +53 -21
- data/spec/vcr_cassettes/geocode_with_postdirectional.yml +13 -9
- data/spec/vcr_cassettes/invalid_key.yml +12 -6
- data/spec/vcr_cassettes/parse.yml +17 -7
- data/spec/vcr_cassettes/reverse.yml +33 -17
- data/spec/vcr_cassettes/reverse_with_fields.yml +108 -28
- data/spec/vcr_cassettes/reverse_with_fields_no_house_info.yml +62 -0
- metadata +6 -1
    
        data/spec/spec_helper.rb
    CHANGED
    
    
| @@ -2,7 +2,7 @@ | |
| 2 2 | 
             
            http_interactions:
         | 
| 3 3 | 
             
            - request:
         | 
| 4 4 | 
             
                method: get
         | 
| 5 | 
            -
                uri: http://api.geocod.io/v1/geocode?api_key=secret_api_key&fields=cd,stateleg&q=4141%20woronzof%20dr%20anchorage%20ak%2099517
         | 
| 5 | 
            +
                uri: http://api.geocod.io/v1.2/geocode?api_key=secret_api_key&fields=cd,stateleg&q=4141%20woronzof%20dr%20anchorage%20ak%2099517
         | 
| 6 6 | 
             
                body:
         | 
| 7 7 | 
             
                  encoding: US-ASCII
         | 
| 8 8 | 
             
                  string: ''
         | 
| @@ -19,15 +19,17 @@ http_interactions: | |
| 19 19 | 
             
                  message: OK
         | 
| 20 20 | 
             
                headers:
         | 
| 21 21 | 
             
                  Server:
         | 
| 22 | 
            -
                  - nginx/1. | 
| 22 | 
            +
                  - nginx/1.12.2
         | 
| 23 23 | 
             
                  Content-Type:
         | 
| 24 24 | 
             
                  - application/json
         | 
| 25 25 | 
             
                  Transfer-Encoding:
         | 
| 26 26 | 
             
                  - chunked
         | 
| 27 | 
            +
                  X-Powered-By:
         | 
| 28 | 
            +
                  - PHP/7.1.14
         | 
| 27 29 | 
             
                  Cache-Control:
         | 
| 28 30 | 
             
                  - no-cache
         | 
| 29 31 | 
             
                  Date:
         | 
| 30 | 
            -
                  -  | 
| 32 | 
            +
                  - Fri, 16 Feb 2018 17:35:09 GMT
         | 
| 31 33 | 
             
                  Request-Handler:
         | 
| 32 34 | 
             
                  - api19
         | 
| 33 35 | 
             
                  Access-Control-Allow-Origin:
         | 
| @@ -36,6 +38,8 @@ http_interactions: | |
| 36 38 | 
             
                  - GET, POST
         | 
| 37 39 | 
             
                  Access-Control-Allow-Headers:
         | 
| 38 40 | 
             
                  - Content-Type
         | 
| 41 | 
            +
                  Access-Control-Expose-Headers:
         | 
| 42 | 
            +
                  - Request-Handler
         | 
| 39 43 | 
             
                body:
         | 
| 40 44 | 
             
                  encoding: UTF-8
         | 
| 41 45 | 
             
                  string: '{"input":{"address_components":{"number":"4141","street":"Woronzof","suffix":"Dr","formatted_street":"Woronzof
         | 
| @@ -43,10 +47,20 @@ http_interactions: | |
| 43 47 | 
             
                    Woronzof Dr, Anchorage, AK 99517"},"results":[{"address_components":{"number":"4141","street":"Woronzof","suffix":"Dr","formatted_street":"Woronzof
         | 
| 44 48 | 
             
                    Dr","city":"Anchorage","county":"Anchorage Municipality","state":"AK","zip":"99517","country":"US"},"formatted_address":"4141
         | 
| 45 49 | 
             
                    Woronzof Dr, Anchorage, AK 99517","location":{"lat":61.193733,"lng":-149.959449},"accuracy":0.8,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
         | 
| 46 | 
            -
                    dataset from the US Census Bureau","fields":{" | 
| 47 | 
            -
                    District (at Large)","district_number":0,"congress_number":"115th","congress_years":"2017-2019" | 
| 50 | 
            +
                    dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
         | 
| 51 | 
            +
                    District (at Large)","district_number":0,"congress_number":"115th","congress_years":"2017-2019","proportion":1,"current_legislators":[{"type":"representative","bio":{"last_name":"Young","first_name":"Don","birthday":"1933-06-09","gender":"M","party":"Republican"},"contact":{"url":"https:\/\/donyoung.house.gov","address":"2314
         | 
| 52 | 
            +
                    Rayburn HOB; Washington DC 20515-0200","phone":"202-225-5765","contact_form":null},"social":{"rss_url":"http:\/\/donyoung.house.gov\/news\/rss.aspx","twitter":"RepDonYoung","facebook":"RepDonYoung","youtube":"RepDonYoung","youtube_id":"UCg5ZIR5-82EbJiNeI1bqT-A"},"references":{"bioguide_id":"Y000033","thomas_id":"01256","opensecrets_id":"N00007999","lis_id":null,"cspan_id":"1897","govtrack_id":"400440","votesmart_id":"26717","ballotpedia_id":"Don
         | 
| 53 | 
            +
                    Young","washington_post_id":null,"icpsr_id":"14066","wikipedia_id":"Don Young"},"source":"Legislator
         | 
| 54 | 
            +
                    data is originally collected and aggregated by https:\/\/github.com\/unitedstates\/"},{"type":"senator","bio":{"last_name":"Murkowski","first_name":"Lisa","birthday":"1957-05-22","gender":"F","party":"Republican"},"contact":{"url":"https:\/\/www.murkowski.senate.gov","address":"522
         | 
| 55 | 
            +
                    Hart Senate Office Building Washington DC 20510","phone":"202-224-6665","contact_form":"https:\/\/www.murkowski.senate.gov\/public\/index.cfm\/contact"},"social":{"rss_url":"http:\/\/www.murkowski.senate.gov\/public\/?a=rss.feed","twitter":"LisaMurkowski","facebook":"SenLisaMurkowski","youtube":"senatormurkowski","youtube_id":"UCaigku16AErqvD0wRuwGb9A"},"references":{"bioguide_id":"M001153","thomas_id":"01694","opensecrets_id":"N00026050","lis_id":"S288","cspan_id":"1004138","govtrack_id":"300075","votesmart_id":"15841","ballotpedia_id":"Lisa
         | 
| 56 | 
            +
                    Murkowski","washington_post_id":null,"icpsr_id":"40300","wikipedia_id":"Lisa
         | 
| 57 | 
            +
                    Murkowski"},"source":"Legislator data is originally collected and aggregated
         | 
| 58 | 
            +
                    by https:\/\/github.com\/unitedstates\/"},{"type":"senator","bio":{"last_name":"Sullivan","first_name":"Dan","birthday":"1964-11-13","gender":"M","party":"Republican"},"contact":{"url":"https:\/\/www.sullivan.senate.gov","address":"702
         | 
| 59 | 
            +
                    Hart Senate Office Building Washington DC 20510","phone":"202-224-3004","contact_form":"https:\/\/www.sullivan.senate.gov\/contact\/email"},"social":{"rss_url":null,"twitter":"SenDanSullivan","facebook":"SenDanSullivan","youtube":null,"youtube_id":"UC7tXCm8gKlAhTFo2kuf5ylw"},"references":{"bioguide_id":"S001198","thomas_id":"02290","opensecrets_id":"N00035774","lis_id":"S383","cspan_id":"1023262","govtrack_id":"412665","votesmart_id":"114964","ballotpedia_id":null,"washington_post_id":null,"icpsr_id":"41500","wikipedia_id":"Dan
         | 
| 60 | 
            +
                    Sullivan (American senator)"},"source":"Legislator data is originally collected
         | 
| 61 | 
            +
                    and aggregated by https:\/\/github.com\/unitedstates\/"}]}],"state_legislative_districts":{"senate":{"name":"State
         | 
| 48 62 | 
             
                    Senate District K","district_number":"K"},"house":{"name":"State House District
         | 
| 49 63 | 
             
                    21","district_number":"21"}}}}]}'
         | 
| 50 64 | 
             
                http_version: 
         | 
| 51 | 
            -
              recorded_at:  | 
| 52 | 
            -
            recorded_with: VCR  | 
| 65 | 
            +
              recorded_at: Fri, 16 Feb 2018 17:35:09 GMT
         | 
| 66 | 
            +
            recorded_with: VCR 4.0.0
         | 
| @@ -2,7 +2,7 @@ | |
| 2 2 | 
             
            http_interactions:
         | 
| 3 3 | 
             
            - request:
         | 
| 4 4 | 
             
                method: post
         | 
| 5 | 
            -
                uri: http://api.geocod.io/v1/geocode?api_key=secret_api_key
         | 
| 5 | 
            +
                uri: http://api.geocod.io/v1.2/geocode?api_key=secret_api_key
         | 
| 6 6 | 
             
                body:
         | 
| 7 7 | 
             
                  encoding: UTF-8
         | 
| 8 8 | 
             
                  string: '["1 Infinite Loop Cupertino CA 95014","54 West Colorado Boulevard Pasadena
         | 
| @@ -22,43 +22,52 @@ http_interactions: | |
| 22 22 | 
             
                  message: OK
         | 
| 23 23 | 
             
                headers:
         | 
| 24 24 | 
             
                  Server:
         | 
| 25 | 
            -
                  - nginx/1.2 | 
| 25 | 
            +
                  - nginx/1.12.2
         | 
| 26 26 | 
             
                  Content-Type:
         | 
| 27 27 | 
             
                  - application/json
         | 
| 28 28 | 
             
                  Transfer-Encoding:
         | 
| 29 29 | 
             
                  - chunked
         | 
| 30 | 
            +
                  X-Powered-By:
         | 
| 31 | 
            +
                  - PHP/7.1.14
         | 
| 30 32 | 
             
                  Cache-Control:
         | 
| 31 33 | 
             
                  - no-cache
         | 
| 32 34 | 
             
                  Date:
         | 
| 33 | 
            -
                  -  | 
| 35 | 
            +
                  - Fri, 16 Feb 2018 17:35:11 GMT
         | 
| 36 | 
            +
                  Request-Handler:
         | 
| 37 | 
            +
                  - api19
         | 
| 34 38 | 
             
                  Access-Control-Allow-Origin:
         | 
| 35 39 | 
             
                  - "*"
         | 
| 40 | 
            +
                  Access-Control-Allow-Methods:
         | 
| 41 | 
            +
                  - GET, POST
         | 
| 42 | 
            +
                  Access-Control-Allow-Headers:
         | 
| 43 | 
            +
                  - Content-Type
         | 
| 44 | 
            +
                  Access-Control-Expose-Headers:
         | 
| 45 | 
            +
                  - Request-Handler
         | 
| 36 46 | 
             
                body:
         | 
| 37 | 
            -
                  encoding:  | 
| 47 | 
            +
                  encoding: UTF-8
         | 
| 38 48 | 
             
                  string: '{"results":[{"query":"1 Infinite Loop Cupertino CA 95014","response":{"input":{"address_components":{"number":"1","street":"Infinite","suffix":"Loop","formatted_street":"Infinite
         | 
| 39 | 
            -
                    Loop","city":"Cupertino","state":"CA","zip":"95014"},"formatted_address":"1
         | 
| 49 | 
            +
                    Loop","city":"Cupertino","state":"CA","zip":"95014","country":"US"},"formatted_address":"1
         | 
| 40 50 | 
             
                    Infinite Loop, Cupertino, CA 95014"},"results":[{"address_components":{"number":"1","street":"Infinite","suffix":"Loop","formatted_street":"Infinite
         | 
| 41 | 
            -
                    Loop","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014"},"formatted_address":"1
         | 
| 42 | 
            -
                    Infinite Loop, Cupertino, CA 95014","location":{"lat":37. | 
| 51 | 
            +
                    Loop","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014","country":"US"},"formatted_address":"1
         | 
| 52 | 
            +
                    Infinite Loop, Cupertino, CA 95014","location":{"lat":37.330689,"lng":-122.02912},"accuracy":1,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
         | 
| 43 53 | 
             
                    dataset from the US Census Bureau"}]}},{"query":"54 West Colorado Boulevard
         | 
| 44 54 | 
             
                    Pasadena CA 91105","response":{"input":{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
         | 
| 45 | 
            -
                    Colorado Blvd","city":"Pasadena","state":"CA","zip":"91105"},"formatted_address":"54
         | 
| 46 | 
            -
                    W Colorado Blvd, Pasadena, CA 91105"},"results":[{"address_components":{"number":"54","predirectional":" | 
| 47 | 
            -
                    Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105"},"formatted_address":"54
         | 
| 48 | 
            -
                     | 
| 49 | 
            -
                     | 
| 50 | 
            -
                    Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105"},"formatted_address":"54
         | 
| 51 | 
            -
                    W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34. | 
| 52 | 
            -
                     | 
| 53 | 
            -
                     | 
| 54 | 
            -
                    St","city":"San Francisco","state":"CA","zip":"94103"},"formatted_address":"826
         | 
| 55 | 
            +
                    Colorado Blvd","city":"Pasadena","state":"CA","zip":"91105","country":"US"},"formatted_address":"54
         | 
| 56 | 
            +
                    W Colorado Blvd, Pasadena, CA 91105"},"results":[{"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":1,"accuracy_type":"rooftop","source":"Los
         | 
| 59 | 
            +
                    Angeles"},{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
         | 
| 60 | 
            +
                    Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"54
         | 
| 61 | 
            +
                    W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145375,"lng":-118.151622},"accuracy":1,"accuracy_type":"rooftop","source":"Los
         | 
| 62 | 
            +
                    Angeles"}]}},{"query":"826 Howard Street San Francisco CA 94103","response":{"input":{"address_components":{"number":"826","street":"Howard","suffix":"St","formatted_street":"Howard
         | 
| 63 | 
            +
                    St","city":"San Francisco","state":"CA","zip":"94103","country":"US"},"formatted_address":"826
         | 
| 55 64 | 
             
                    Howard St, San Francisco, CA 94103"},"results":[{"address_components":{"number":"826","street":"Howard","suffix":"St","formatted_street":"Howard
         | 
| 56 | 
            -
                    St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103"},"formatted_address":"826
         | 
| 57 | 
            -
                    Howard St, San Francisco, CA 94103","location":{"lat":37. | 
| 65 | 
            +
                    St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"826
         | 
| 66 | 
            +
                    Howard St, San Francisco, CA 94103","location":{"lat":37.782681,"lng":-122.40325},"accuracy":1,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
         | 
| 58 67 | 
             
                    dataset from the US Census Bureau"},{"address_components":{"number":"826","street":"Howard","suffix":"St","formatted_street":"Howard
         | 
| 59 | 
            -
                    St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103"},"formatted_address":"826
         | 
| 60 | 
            -
                    Howard St, San Francisco, CA 94103","location":{"lat":37. | 
| 68 | 
            +
                    St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"826
         | 
| 69 | 
            +
                    Howard St, San Francisco, CA 94103","location":{"lat":37.782672,"lng":-122.403196},"accuracy":0.8,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
         | 
| 61 70 | 
             
                    dataset from the US Census Bureau"}]}}]}'
         | 
| 62 71 | 
             
                http_version: 
         | 
| 63 | 
            -
              recorded_at:  | 
| 64 | 
            -
            recorded_with: VCR  | 
| 72 | 
            +
              recorded_at: Fri, 16 Feb 2018 17:35:11 GMT
         | 
| 73 | 
            +
            recorded_with: VCR 4.0.0
         | 
| @@ -2,7 +2,7 @@ | |
| 2 2 | 
             
            http_interactions:
         | 
| 3 3 | 
             
            - request:
         | 
| 4 4 | 
             
                method: post
         | 
| 5 | 
            -
                uri: http://api.geocod.io/v1/geocode?api_key=secret_api_key
         | 
| 5 | 
            +
                uri: http://api.geocod.io/v1.2/geocode?api_key=secret_api_key
         | 
| 6 6 | 
             
                body:
         | 
| 7 7 | 
             
                  encoding: UTF-8
         | 
| 8 8 | 
             
                  string: '["1 Infinite Loop Cupertino CA 95014"," , , "]'
         | 
| @@ -21,26 +21,36 @@ http_interactions: | |
| 21 21 | 
             
                  message: OK
         | 
| 22 22 | 
             
                headers:
         | 
| 23 23 | 
             
                  Server:
         | 
| 24 | 
            -
                  - nginx/1.2 | 
| 24 | 
            +
                  - nginx/1.12.2
         | 
| 25 25 | 
             
                  Content-Type:
         | 
| 26 26 | 
             
                  - application/json
         | 
| 27 27 | 
             
                  Transfer-Encoding:
         | 
| 28 28 | 
             
                  - chunked
         | 
| 29 | 
            +
                  X-Powered-By:
         | 
| 30 | 
            +
                  - PHP/7.1.14
         | 
| 29 31 | 
             
                  Cache-Control:
         | 
| 30 32 | 
             
                  - no-cache
         | 
| 31 33 | 
             
                  Date:
         | 
| 32 | 
            -
                  -  | 
| 34 | 
            +
                  - Fri, 16 Feb 2018 17:35:12 GMT
         | 
| 35 | 
            +
                  Request-Handler:
         | 
| 36 | 
            +
                  - api19
         | 
| 33 37 | 
             
                  Access-Control-Allow-Origin:
         | 
| 34 38 | 
             
                  - "*"
         | 
| 39 | 
            +
                  Access-Control-Allow-Methods:
         | 
| 40 | 
            +
                  - GET, POST
         | 
| 41 | 
            +
                  Access-Control-Allow-Headers:
         | 
| 42 | 
            +
                  - Content-Type
         | 
| 43 | 
            +
                  Access-Control-Expose-Headers:
         | 
| 44 | 
            +
                  - Request-Handler
         | 
| 35 45 | 
             
                body:
         | 
| 36 | 
            -
                  encoding:  | 
| 46 | 
            +
                  encoding: UTF-8
         | 
| 37 47 | 
             
                  string: '{"results":[{"query":"1 Infinite Loop Cupertino CA 95014","response":{"input":{"address_components":{"number":"1","street":"Infinite","suffix":"Loop","formatted_street":"Infinite
         | 
| 38 | 
            -
                    Loop","city":"Cupertino","state":"CA","zip":"95014"},"formatted_address":"1
         | 
| 48 | 
            +
                    Loop","city":"Cupertino","state":"CA","zip":"95014","country":"US"},"formatted_address":"1
         | 
| 39 49 | 
             
                    Infinite Loop, Cupertino, CA 95014"},"results":[{"address_components":{"number":"1","street":"Infinite","suffix":"Loop","formatted_street":"Infinite
         | 
| 40 | 
            -
                    Loop","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014"},"formatted_address":"1
         | 
| 41 | 
            -
                    Infinite Loop, Cupertino, CA 95014","location":{"lat":37. | 
| 50 | 
            +
                    Loop","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014","country":"US"},"formatted_address":"1
         | 
| 51 | 
            +
                    Infinite Loop, Cupertino, CA 95014","location":{"lat":37.330689,"lng":-122.02912},"accuracy":1,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
         | 
| 42 52 | 
             
                    dataset from the US Census Bureau"}]}},{"query":" , , ","response":{"error":"Could
         | 
| 43 | 
            -
                    not geocode address. Postal code or city required."}}]}'
         | 
| 53 | 
            +
                    not geocode address. Postal code or city required.","results":[]}}]}'
         | 
| 44 54 | 
             
                http_version: 
         | 
| 45 | 
            -
              recorded_at:  | 
| 46 | 
            -
            recorded_with: VCR  | 
| 55 | 
            +
              recorded_at: Fri, 16 Feb 2018 17:35:12 GMT
         | 
| 56 | 
            +
            recorded_with: VCR 4.0.0
         | 
| @@ -2,7 +2,7 @@ | |
| 2 2 | 
             
            http_interactions:
         | 
| 3 3 | 
             
            - request:
         | 
| 4 4 | 
             
                method: post
         | 
| 5 | 
            -
                uri: http://api.geocod.io/v1/geocode?api_key=secret_api_key&fields=cd,stateleg,school,timezone
         | 
| 5 | 
            +
                uri: http://api.geocod.io/v1.2/geocode?api_key=secret_api_key&fields=cd,stateleg,school,timezone
         | 
| 6 6 | 
             
                body:
         | 
| 7 7 | 
             
                  encoding: UTF-8
         | 
| 8 8 | 
             
                  string: '["1 Infinite Loop Cupertino CA 95014","54 West Colorado Boulevard Pasadena
         | 
| @@ -22,64 +22,131 @@ http_interactions: | |
| 22 22 | 
             
                  message: OK
         | 
| 23 23 | 
             
                headers:
         | 
| 24 24 | 
             
                  Server:
         | 
| 25 | 
            -
                  - nginx/1.2 | 
| 25 | 
            +
                  - nginx/1.12.2
         | 
| 26 26 | 
             
                  Content-Type:
         | 
| 27 27 | 
             
                  - application/json
         | 
| 28 28 | 
             
                  Transfer-Encoding:
         | 
| 29 29 | 
             
                  - chunked
         | 
| 30 | 
            +
                  X-Powered-By:
         | 
| 31 | 
            +
                  - PHP/7.1.14
         | 
| 30 32 | 
             
                  Cache-Control:
         | 
| 31 33 | 
             
                  - no-cache
         | 
| 32 34 | 
             
                  Date:
         | 
| 33 | 
            -
                  -  | 
| 35 | 
            +
                  - Fri, 16 Feb 2018 17:35:10 GMT
         | 
| 36 | 
            +
                  Request-Handler:
         | 
| 37 | 
            +
                  - api19
         | 
| 34 38 | 
             
                  Access-Control-Allow-Origin:
         | 
| 35 39 | 
             
                  - "*"
         | 
| 40 | 
            +
                  Access-Control-Allow-Methods:
         | 
| 41 | 
            +
                  - GET, POST
         | 
| 42 | 
            +
                  Access-Control-Allow-Headers:
         | 
| 43 | 
            +
                  - Content-Type
         | 
| 44 | 
            +
                  Access-Control-Expose-Headers:
         | 
| 45 | 
            +
                  - Request-Handler
         | 
| 36 46 | 
             
                body:
         | 
| 37 | 
            -
                  encoding:  | 
| 47 | 
            +
                  encoding: UTF-8
         | 
| 38 48 | 
             
                  string: '{"results":[{"query":"1 Infinite Loop Cupertino CA 95014","response":{"input":{"address_components":{"number":"1","street":"Infinite","suffix":"Loop","formatted_street":"Infinite
         | 
| 39 | 
            -
                    Loop","city":"Cupertino","state":"CA","zip":"95014"},"formatted_address":"1
         | 
| 49 | 
            +
                    Loop","city":"Cupertino","state":"CA","zip":"95014","country":"US"},"formatted_address":"1
         | 
| 40 50 | 
             
                    Infinite Loop, Cupertino, CA 95014"},"results":[{"address_components":{"number":"1","street":"Infinite","suffix":"Loop","formatted_street":"Infinite
         | 
| 41 | 
            -
                    Loop","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014"},"formatted_address":"1
         | 
| 42 | 
            -
                    Infinite Loop, Cupertino, CA 95014","location":{"lat":37. | 
| 43 | 
            -
                    dataset from the US Census Bureau","fields":{" | 
| 44 | 
            -
                    District 17","district_number":17,"congress_number":" | 
| 45 | 
            -
                     | 
| 46 | 
            -
                     | 
| 51 | 
            +
                    Loop","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014","country":"US"},"formatted_address":"1
         | 
| 52 | 
            +
                    Infinite Loop, Cupertino, CA 95014","location":{"lat":37.330689,"lng":-122.02912},"accuracy":1,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
         | 
| 53 | 
            +
                    dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
         | 
| 54 | 
            +
                    District 17","district_number":17,"congress_number":"115th","congress_years":"2017-2019","proportion":1,"current_legislators":[{"type":"representative","bio":{"last_name":"Khanna","first_name":"Ro","birthday":"1976-09-13","gender":"M","party":"Democrat"},"contact":{"url":"https:\/\/khanna.house.gov","address":"513
         | 
| 55 | 
            +
                    Cannon HOB; Washington DC 20515-0517","phone":"202-225-2631","contact_form":null},"social":{"rss_url":null,"twitter":"RepRoKhanna","facebook":"RepRoKhanna","youtube":null,"youtube_id":"UCr4KOYv1o1oEQhy1jhhm3pQ"},"references":{"bioguide_id":"K000389","thomas_id":null,"opensecrets_id":"N00026427","lis_id":null,"cspan_id":"31129","govtrack_id":"412684","votesmart_id":"29473","ballotpedia_id":null,"washington_post_id":null,"icpsr_id":"21728","wikipedia_id":"Ro
         | 
| 56 | 
            +
                    Khanna"},"source":"Legislator data is originally collected and aggregated
         | 
| 57 | 
            +
                    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
         | 
| 58 | 
            +
                    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
         | 
| 59 | 
            +
                    Feinstein","washington_post_id":null,"icpsr_id":"49300","wikipedia_id":"Dianne
         | 
| 60 | 
            +
                    Feinstein"},"source":"Legislator data is originally collected and aggregated
         | 
| 61 | 
            +
                    by https:\/\/github.com\/unitedstates\/"},{"type":"senator","bio":{"last_name":"Harris","first_name":"Kamala","birthday":"1964-10-20","gender":"F","party":"Democrat"},"contact":{"url":"https:\/\/www.harris.senate.gov","address":"112
         | 
| 62 | 
            +
                    Hart Senate Office Building Washington DC 20510","phone":"202-224-3553","contact_form":"https:\/\/www.harris.senate.gov\/contact"},"social":{"rss_url":null,"twitter":"SenKamalaHarris","facebook":"SenatorKamalaHarris","youtube":null,"youtube_id":null},"references":{"bioguide_id":"H001075","thomas_id":null,"opensecrets_id":"N00036915","lis_id":"S387","cspan_id":"1018696","govtrack_id":"412678","votesmart_id":"120012","ballotpedia_id":"Kamala
         | 
| 63 | 
            +
                    Harris","washington_post_id":null,"icpsr_id":"41701","wikipedia_id":"Kamala
         | 
| 64 | 
            +
                    Harris"},"source":"Legislator data is originally collected and aggregated
         | 
| 65 | 
            +
                    by https:\/\/github.com\/unitedstates\/"}]}],"state_legislative_districts":{"senate":{"name":"State
         | 
| 66 | 
            +
                    Senate District 15","district_number":"15"},"house":{"name":"Assembly District
         | 
| 67 | 
            +
                    28","district_number":"28"}},"school_districts":{"elementary":{"name":"Cupertino
         | 
| 47 68 | 
             
                    Union Elementary School District","lea_code":"0610290","grade_low":"KG","grade_high":"08"},"secondary":{"name":"Fremont
         | 
| 48 69 | 
             
                    Union High School District","lea_code":"0614430","grade_low":"09","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}}]}},{"query":"54
         | 
| 49 70 | 
             
                    West Colorado Boulevard Pasadena CA 91105","response":{"input":{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
         | 
| 50 | 
            -
                    Colorado Blvd","city":"Pasadena","state":"CA","zip":"91105"},"formatted_address":"54
         | 
| 51 | 
            -
                    W Colorado Blvd, Pasadena, CA 91105"},"results":[{"address_components":{"number":"54","predirectional":" | 
| 52 | 
            -
                    Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105"},"formatted_address":"54
         | 
| 53 | 
            -
                     | 
| 54 | 
            -
                     | 
| 55 | 
            -
                     | 
| 56 | 
            -
                     | 
| 57 | 
            -
                     | 
| 71 | 
            +
                    Colorado Blvd","city":"Pasadena","state":"CA","zip":"91105","country":"US"},"formatted_address":"54
         | 
| 72 | 
            +
                    W Colorado Blvd, Pasadena, CA 91105"},"results":[{"address_components":{"number":"54","predirectional":"E","street":"Colorado","suffix":"Blvd","formatted_street":"E
         | 
| 73 | 
            +
                    Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"54
         | 
| 74 | 
            +
                    E Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145499,"lng":-118.14932},"accuracy":1,"accuracy_type":"rooftop","source":"Los
         | 
| 75 | 
            +
                    Angeles","fields":{"congressional_districts":[{"name":"Congressional District
         | 
| 76 | 
            +
                    27","district_number":27,"congress_number":"115th","congress_years":"2017-2019","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
         | 
| 77 | 
            +
                    Rayburn HOB; 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
         | 
| 78 | 
            +
                    Chu","washington_post_id":null,"icpsr_id":"20955","wikipedia_id":"Judy Chu"},"source":"Legislator
         | 
| 79 | 
            +
                    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
         | 
| 80 | 
            +
                    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
         | 
| 81 | 
            +
                    Feinstein","washington_post_id":null,"icpsr_id":"49300","wikipedia_id":"Dianne
         | 
| 82 | 
            +
                    Feinstein"},"source":"Legislator data is originally collected and aggregated
         | 
| 83 | 
            +
                    by https:\/\/github.com\/unitedstates\/"},{"type":"senator","bio":{"last_name":"Harris","first_name":"Kamala","birthday":"1964-10-20","gender":"F","party":"Democrat"},"contact":{"url":"https:\/\/www.harris.senate.gov","address":"112
         | 
| 84 | 
            +
                    Hart Senate Office Building Washington DC 20510","phone":"202-224-3553","contact_form":"https:\/\/www.harris.senate.gov\/contact"},"social":{"rss_url":null,"twitter":"SenKamalaHarris","facebook":"SenatorKamalaHarris","youtube":null,"youtube_id":null},"references":{"bioguide_id":"H001075","thomas_id":null,"opensecrets_id":"N00036915","lis_id":"S387","cspan_id":"1018696","govtrack_id":"412678","votesmart_id":"120012","ballotpedia_id":"Kamala
         | 
| 85 | 
            +
                    Harris","washington_post_id":null,"icpsr_id":"41701","wikipedia_id":"Kamala
         | 
| 86 | 
            +
                    Harris"},"source":"Legislator data is originally collected and aggregated
         | 
| 87 | 
            +
                    by https:\/\/github.com\/unitedstates\/"}]}],"state_legislative_districts":{"senate":{"name":"State
         | 
| 88 | 
            +
                    Senate District 25","district_number":"25"},"house":{"name":"Assembly District
         | 
| 89 | 
            +
                    41","district_number":"41"}},"school_districts":{"unified":{"name":"Pasadena
         | 
| 58 90 | 
             
                    Unified School District","lea_code":"0629940","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}},{"address_components":{"number":"54","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
         | 
| 59 | 
            -
                    Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105"},"formatted_address":"54
         | 
| 60 | 
            -
                    W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34. | 
| 61 | 
            -
                     | 
| 62 | 
            -
                     | 
| 63 | 
            -
                     | 
| 64 | 
            -
                     | 
| 91 | 
            +
                    Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"54
         | 
| 92 | 
            +
                    W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145375,"lng":-118.151622},"accuracy":1,"accuracy_type":"rooftop","source":"Los
         | 
| 93 | 
            +
                    Angeles","fields":{"congressional_districts":[{"name":"Congressional District
         | 
| 94 | 
            +
                    27","district_number":27,"congress_number":"115th","congress_years":"2017-2019","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
         | 
| 95 | 
            +
                    Rayburn HOB; 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
         | 
| 96 | 
            +
                    Chu","washington_post_id":null,"icpsr_id":"20955","wikipedia_id":"Judy Chu"},"source":"Legislator
         | 
| 97 | 
            +
                    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
         | 
| 98 | 
            +
                    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
         | 
| 99 | 
            +
                    Feinstein","washington_post_id":null,"icpsr_id":"49300","wikipedia_id":"Dianne
         | 
| 100 | 
            +
                    Feinstein"},"source":"Legislator data is originally collected and aggregated
         | 
| 101 | 
            +
                    by https:\/\/github.com\/unitedstates\/"},{"type":"senator","bio":{"last_name":"Harris","first_name":"Kamala","birthday":"1964-10-20","gender":"F","party":"Democrat"},"contact":{"url":"https:\/\/www.harris.senate.gov","address":"112
         | 
| 102 | 
            +
                    Hart Senate Office Building Washington DC 20510","phone":"202-224-3553","contact_form":"https:\/\/www.harris.senate.gov\/contact"},"social":{"rss_url":null,"twitter":"SenKamalaHarris","facebook":"SenatorKamalaHarris","youtube":null,"youtube_id":null},"references":{"bioguide_id":"H001075","thomas_id":null,"opensecrets_id":"N00036915","lis_id":"S387","cspan_id":"1018696","govtrack_id":"412678","votesmart_id":"120012","ballotpedia_id":"Kamala
         | 
| 103 | 
            +
                    Harris","washington_post_id":null,"icpsr_id":"41701","wikipedia_id":"Kamala
         | 
| 104 | 
            +
                    Harris"},"source":"Legislator data is originally collected and aggregated
         | 
| 105 | 
            +
                    by https:\/\/github.com\/unitedstates\/"}]}],"state_legislative_districts":{"senate":{"name":"State
         | 
| 106 | 
            +
                    Senate District 25","district_number":"25"},"house":{"name":"Assembly District
         | 
| 107 | 
            +
                    41","district_number":"41"}},"school_districts":{"unified":{"name":"Pasadena
         | 
| 65 108 | 
             
                    Unified School District","lea_code":"0629940","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}}]}},{"query":"826
         | 
| 66 109 | 
             
                    Howard Street San Francisco CA 94103","response":{"input":{"address_components":{"number":"826","street":"Howard","suffix":"St","formatted_street":"Howard
         | 
| 67 | 
            -
                    St","city":"San Francisco","state":"CA","zip":"94103"},"formatted_address":"826
         | 
| 110 | 
            +
                    St","city":"San Francisco","state":"CA","zip":"94103","country":"US"},"formatted_address":"826
         | 
| 68 111 | 
             
                    Howard St, San Francisco, CA 94103"},"results":[{"address_components":{"number":"826","street":"Howard","suffix":"St","formatted_street":"Howard
         | 
| 69 | 
            -
                    St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103"},"formatted_address":"826
         | 
| 70 | 
            -
                    Howard St, San Francisco, CA 94103","location":{"lat":37. | 
| 71 | 
            -
                    dataset from the US Census Bureau","fields":{" | 
| 72 | 
            -
                    District 12","district_number":12,"congress_number":" | 
| 73 | 
            -
                     | 
| 74 | 
            -
                     | 
| 112 | 
            +
                    St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"826
         | 
| 113 | 
            +
                    Howard St, San Francisco, CA 94103","location":{"lat":37.782681,"lng":-122.40325},"accuracy":1,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
         | 
| 114 | 
            +
                    dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
         | 
| 115 | 
            +
                    District 12","district_number":12,"congress_number":"115th","congress_years":"2017-2019","proportion":1,"current_legislators":[{"type":"representative","bio":{"last_name":"Pelosi","first_name":"Nancy","birthday":"1940-03-26","gender":"F","party":"Democrat"},"contact":{"url":"https:\/\/pelosi.house.gov","address":"233
         | 
| 116 | 
            +
                    Cannon HOB; Washington DC 20515-0512","phone":"202-225-4965","contact_form":null},"social":{"rss_url":"http:\/\/pelosi.house.gov\/atom.xml","twitter":"NancyPelosi","facebook":"NancyPelosi","youtube":"nancypelosi","youtube_id":"UCxPeEcH0xaCK9nBK98EFhDg"},"references":{"bioguide_id":"P000197","thomas_id":"00905","opensecrets_id":"N00007360","lis_id":null,"cspan_id":"6153","govtrack_id":"400314","votesmart_id":"26732","ballotpedia_id":"Nancy
         | 
| 117 | 
            +
                    Pelosi","washington_post_id":null,"icpsr_id":"15448","wikipedia_id":"Nancy
         | 
| 118 | 
            +
                    Pelosi"},"source":"Legislator data is originally collected and aggregated
         | 
| 119 | 
            +
                    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
         | 
| 120 | 
            +
                    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
         | 
| 121 | 
            +
                    Feinstein","washington_post_id":null,"icpsr_id":"49300","wikipedia_id":"Dianne
         | 
| 122 | 
            +
                    Feinstein"},"source":"Legislator data is originally collected and aggregated
         | 
| 123 | 
            +
                    by https:\/\/github.com\/unitedstates\/"},{"type":"senator","bio":{"last_name":"Harris","first_name":"Kamala","birthday":"1964-10-20","gender":"F","party":"Democrat"},"contact":{"url":"https:\/\/www.harris.senate.gov","address":"112
         | 
| 124 | 
            +
                    Hart Senate Office Building Washington DC 20510","phone":"202-224-3553","contact_form":"https:\/\/www.harris.senate.gov\/contact"},"social":{"rss_url":null,"twitter":"SenKamalaHarris","facebook":"SenatorKamalaHarris","youtube":null,"youtube_id":null},"references":{"bioguide_id":"H001075","thomas_id":null,"opensecrets_id":"N00036915","lis_id":"S387","cspan_id":"1018696","govtrack_id":"412678","votesmart_id":"120012","ballotpedia_id":"Kamala
         | 
| 125 | 
            +
                    Harris","washington_post_id":null,"icpsr_id":"41701","wikipedia_id":"Kamala
         | 
| 126 | 
            +
                    Harris"},"source":"Legislator data is originally collected and aggregated
         | 
| 127 | 
            +
                    by https:\/\/github.com\/unitedstates\/"}]}],"state_legislative_districts":{"senate":{"name":"State
         | 
| 128 | 
            +
                    Senate District 11","district_number":"11"},"house":{"name":"Assembly District
         | 
| 129 | 
            +
                    17","district_number":"17"}},"school_districts":{"unified":{"name":"San Francisco
         | 
| 75 130 | 
             
                    Unified School District","lea_code":"0634410","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}},{"address_components":{"number":"826","street":"Howard","suffix":"St","formatted_street":"Howard
         | 
| 76 | 
            -
                    St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103"},"formatted_address":"826
         | 
| 77 | 
            -
                    Howard St, San Francisco, CA 94103","location":{"lat":37. | 
| 78 | 
            -
                    dataset from the US Census Bureau","fields":{" | 
| 79 | 
            -
                    District 12","district_number":12,"congress_number":" | 
| 80 | 
            -
                     | 
| 81 | 
            -
                     | 
| 131 | 
            +
                    St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"826
         | 
| 132 | 
            +
                    Howard St, San Francisco, CA 94103","location":{"lat":37.782672,"lng":-122.403196},"accuracy":0.8,"accuracy_type":"range_interpolation","source":"TIGER\/Line\u00ae
         | 
| 133 | 
            +
                    dataset from the US Census Bureau","fields":{"congressional_districts":[{"name":"Congressional
         | 
| 134 | 
            +
                    District 12","district_number":12,"congress_number":"115th","congress_years":"2017-2019","proportion":1,"current_legislators":[{"type":"representative","bio":{"last_name":"Pelosi","first_name":"Nancy","birthday":"1940-03-26","gender":"F","party":"Democrat"},"contact":{"url":"https:\/\/pelosi.house.gov","address":"233
         | 
| 135 | 
            +
                    Cannon HOB; Washington DC 20515-0512","phone":"202-225-4965","contact_form":null},"social":{"rss_url":"http:\/\/pelosi.house.gov\/atom.xml","twitter":"NancyPelosi","facebook":"NancyPelosi","youtube":"nancypelosi","youtube_id":"UCxPeEcH0xaCK9nBK98EFhDg"},"references":{"bioguide_id":"P000197","thomas_id":"00905","opensecrets_id":"N00007360","lis_id":null,"cspan_id":"6153","govtrack_id":"400314","votesmart_id":"26732","ballotpedia_id":"Nancy
         | 
| 136 | 
            +
                    Pelosi","washington_post_id":null,"icpsr_id":"15448","wikipedia_id":"Nancy
         | 
| 137 | 
            +
                    Pelosi"},"source":"Legislator data is originally collected and aggregated
         | 
| 138 | 
            +
                    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
         | 
| 139 | 
            +
                    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
         | 
| 140 | 
            +
                    Feinstein","washington_post_id":null,"icpsr_id":"49300","wikipedia_id":"Dianne
         | 
| 141 | 
            +
                    Feinstein"},"source":"Legislator data is originally collected and aggregated
         | 
| 142 | 
            +
                    by https:\/\/github.com\/unitedstates\/"},{"type":"senator","bio":{"last_name":"Harris","first_name":"Kamala","birthday":"1964-10-20","gender":"F","party":"Democrat"},"contact":{"url":"https:\/\/www.harris.senate.gov","address":"112
         | 
| 143 | 
            +
                    Hart Senate Office Building Washington DC 20510","phone":"202-224-3553","contact_form":"https:\/\/www.harris.senate.gov\/contact"},"social":{"rss_url":null,"twitter":"SenKamalaHarris","facebook":"SenatorKamalaHarris","youtube":null,"youtube_id":null},"references":{"bioguide_id":"H001075","thomas_id":null,"opensecrets_id":"N00036915","lis_id":"S387","cspan_id":"1018696","govtrack_id":"412678","votesmart_id":"120012","ballotpedia_id":"Kamala
         | 
| 144 | 
            +
                    Harris","washington_post_id":null,"icpsr_id":"41701","wikipedia_id":"Kamala
         | 
| 145 | 
            +
                    Harris"},"source":"Legislator data is originally collected and aggregated
         | 
| 146 | 
            +
                    by https:\/\/github.com\/unitedstates\/"}]}],"state_legislative_districts":{"senate":{"name":"State
         | 
| 147 | 
            +
                    Senate District 11","district_number":"11"},"house":{"name":"Assembly District
         | 
| 148 | 
            +
                    17","district_number":"17"}},"school_districts":{"unified":{"name":"San Francisco
         | 
| 82 149 | 
             
                    Unified School District","lea_code":"0634410","grade_low":"KG","grade_high":"12"}},"timezone":{"name":"PST","utc_offset":-8,"observes_dst":true}}}]}}]}'
         | 
| 83 150 | 
             
                http_version: 
         | 
| 84 | 
            -
              recorded_at:  | 
| 85 | 
            -
            recorded_with: VCR  | 
| 151 | 
            +
              recorded_at: Fri, 16 Feb 2018 17:35:10 GMT
         | 
| 152 | 
            +
            recorded_with: VCR 4.0.0
         | 
| @@ -2,7 +2,7 @@ | |
| 2 2 | 
             
            http_interactions:
         | 
| 3 3 | 
             
            - request:
         | 
| 4 4 | 
             
                method: post
         | 
| 5 | 
            -
                uri: http://api.geocod.io/v1/reverse?api_key=secret_api_key
         | 
| 5 | 
            +
                uri: http://api.geocod.io/v1.2/reverse?api_key=secret_api_key
         | 
| 6 6 | 
             
                body:
         | 
| 7 7 | 
             
                  encoding: UTF-8
         | 
| 8 8 | 
             
                  string: '["37.331669,-122.03074","34.145760590909,-118.15204363636","37.7815,-122.404933"]'
         | 
| @@ -21,48 +21,79 @@ http_interactions: | |
| 21 21 | 
             
                  message: OK
         | 
| 22 22 | 
             
                headers:
         | 
| 23 23 | 
             
                  Server:
         | 
| 24 | 
            -
                  - nginx/1.2 | 
| 24 | 
            +
                  - nginx/1.12.2
         | 
| 25 25 | 
             
                  Content-Type:
         | 
| 26 26 | 
             
                  - application/json
         | 
| 27 27 | 
             
                  Transfer-Encoding:
         | 
| 28 28 | 
             
                  - chunked
         | 
| 29 | 
            +
                  X-Powered-By:
         | 
| 30 | 
            +
                  - PHP/7.1.14
         | 
| 29 31 | 
             
                  Cache-Control:
         | 
| 30 32 | 
             
                  - no-cache
         | 
| 31 33 | 
             
                  Date:
         | 
| 32 | 
            -
                  -  | 
| 34 | 
            +
                  - Fri, 16 Feb 2018 17:35:13 GMT
         | 
| 35 | 
            +
                  Request-Handler:
         | 
| 36 | 
            +
                  - api35
         | 
| 33 37 | 
             
                  Access-Control-Allow-Origin:
         | 
| 34 38 | 
             
                  - "*"
         | 
| 39 | 
            +
                  Access-Control-Allow-Methods:
         | 
| 40 | 
            +
                  - GET, POST
         | 
| 41 | 
            +
                  Access-Control-Allow-Headers:
         | 
| 42 | 
            +
                  - Content-Type
         | 
| 43 | 
            +
                  Access-Control-Expose-Headers:
         | 
| 44 | 
            +
                  - Request-Handler
         | 
| 35 45 | 
             
                body:
         | 
| 36 | 
            -
                  encoding:  | 
| 37 | 
            -
                  string: '{"results":[{"query":"37.331669,-122.03074","response":{"results":[{"address_components":{"number":" | 
| 38 | 
            -
                     | 
| 39 | 
            -
                     | 
| 40 | 
            -
                     | 
| 41 | 
            -
                     | 
| 42 | 
            -
                     | 
| 43 | 
            -
                     | 
| 44 | 
            -
                     | 
| 45 | 
            -
                     | 
| 46 | 
            -
                     | 
| 47 | 
            -
                     | 
| 48 | 
            -
                     | 
| 49 | 
            -
                     | 
| 50 | 
            -
                     | 
| 51 | 
            -
                     | 
| 52 | 
            -
                     | 
| 53 | 
            -
                     | 
| 54 | 
            -
                     | 
| 55 | 
            -
                     | 
| 56 | 
            -
                     | 
| 57 | 
            -
                     | 
| 58 | 
            -
                     | 
| 59 | 
            -
                     | 
| 60 | 
            -
                     | 
| 61 | 
            -
                     | 
| 62 | 
            -
                     | 
| 63 | 
            -
                     | 
| 64 | 
            -
                     | 
| 65 | 
            -
                     | 
| 46 | 
            +
                  encoding: UTF-8
         | 
| 47 | 
            +
                  string: '{"results":[{"query":"37.331669,-122.03074","response":{"results":[{"address_components":{"number":"10700","predirectional":"N","street":"De
         | 
| 48 | 
            +
                    Anza","suffix":"Blvd","formatted_street":"N De Anza Blvd","city":"Cupertino","county":"Santa
         | 
| 49 | 
            +
                    Clara County","state":"CA","zip":"95014","country":"US"},"formatted_address":"10700
         | 
| 50 | 
            +
                    N De Anza Blvd, Cupertino, CA 95014","location":{"lat":37.331686,"lng":-122.030223},"accuracy":1,"accuracy_type":"rooftop","source":"Santa
         | 
| 51 | 
            +
                    Clara County"},{"address_components":{"number":"10690","predirectional":"N","street":"De
         | 
| 52 | 
            +
                    Anza","suffix":"Blvd","formatted_street":"N De Anza Blvd","city":"Cupertino","county":"Santa
         | 
| 53 | 
            +
                    Clara County","state":"CA","zip":"95014","country":"US"},"formatted_address":"10690
         | 
| 54 | 
            +
                    N De Anza Blvd, Cupertino, CA 95014","location":{"lat":37.331293,"lng":-122.031735},"accuracy":0.89,"accuracy_type":"rooftop","source":"Santa
         | 
| 55 | 
            +
                    Clara County"},{"address_components":{"number":"2","street":"Infinite","suffix":"Loop","formatted_street":"Infinite
         | 
| 56 | 
            +
                    Loop","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014","country":"US"},"formatted_address":"2
         | 
| 57 | 
            +
                    Infinite Loop, Cupertino, CA 95014","location":{"lat":37.332633,"lng":-122.030273},"accuracy":0.89,"accuracy_type":"rooftop","source":"Santa
         | 
| 58 | 
            +
                    Clara County"},{"address_components":{"number":"6","street":"Infinite","suffix":"Loop","formatted_street":"Infinite
         | 
| 59 | 
            +
                    Loop","city":"Cupertino","county":"Santa Clara County","state":"CA","zip":"95014","country":"US"},"formatted_address":"6
         | 
| 60 | 
            +
                    Infinite Loop, Cupertino, CA 95014","location":{"lat":37.330944,"lng":-122.029633},"accuracy":0.89,"accuracy_type":"rooftop","source":"Santa
         | 
| 61 | 
            +
                    Clara County"},{"address_components":{"number":"10600","predirectional":"N","street":"De
         | 
| 62 | 
            +
                    Anza","suffix":"Blvd","formatted_street":"N De Anza Blvd","city":"Cupertino","county":"Santa
         | 
| 63 | 
            +
                    Clara County","state":"CA","zip":"95014","country":"US"},"formatted_address":"10600
         | 
| 64 | 
            +
                    N De Anza Blvd, Cupertino, CA 95014","location":{"lat":37.330648,"lng":-122.031701},"accuracy":0.89,"accuracy_type":"rooftop","source":"Santa
         | 
| 65 | 
            +
                    Clara County"}]}},{"query":"34.145760590909,-118.15204363636","response":{"results":[{"address_components":{"number":"68","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
         | 
| 66 | 
            +
                    Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"68
         | 
| 67 | 
            +
                    W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145373,"lng":-118.151925},"accuracy":1,"accuracy_type":"rooftop","source":"Los
         | 
| 68 | 
            +
                    Angeles"},{"address_components":{"number":"58","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
         | 
| 69 | 
            +
                    Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"58
         | 
| 70 | 
            +
                    W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145373,"lng":-118.151925},"accuracy":0.9,"accuracy_type":"rooftop","source":"Los
         | 
| 71 | 
            +
                    Angeles"},{"address_components":{"number":"60","predirectional":"W","street":"Colorado","suffix":"Blvd","formatted_street":"W
         | 
| 72 | 
            +
                    Colorado Blvd","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"60
         | 
| 73 | 
            +
                    W Colorado Blvd, Pasadena, CA 91105","location":{"lat":34.145373,"lng":-118.151925},"accuracy":0.9,"accuracy_type":"rooftop","source":"Los
         | 
| 74 | 
            +
                    Angeles"},{"address_components":{"number":"10","predirectional":"S","street":"De
         | 
| 75 | 
            +
                    Lacey","suffix":"Ave","formatted_street":"S De Lacey Ave","city":"Pasadena","county":"Los
         | 
| 76 | 
            +
                    Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"10
         | 
| 77 | 
            +
                    S De Lacey Ave, Pasadena, CA 91105","location":{"lat":34.145373,"lng":-118.151925},"accuracy":0.9,"accuracy_type":"rooftop","source":"Los
         | 
| 78 | 
            +
                    Angeles"},{"address_components":{"number":"69","street":"Mc Cormick","suffix":"Aly","formatted_street":"Mc
         | 
| 79 | 
            +
                    Cormick Aly","city":"Pasadena","county":"Los Angeles County","state":"CA","zip":"91105","country":"US"},"formatted_address":"69
         | 
| 80 | 
            +
                    Mc Cormick Aly, Pasadena, CA 91105","location":{"lat":34.145373,"lng":-118.151925},"accuracy":0.9,"accuracy_type":"rooftop","source":"Los
         | 
| 81 | 
            +
                    Angeles"}]}},{"query":"37.7815,-122.404933","response":{"results":[{"address_components":{"number":"198","street":"05th","suffix":"St","formatted_street":"05th
         | 
| 82 | 
            +
                    St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"198
         | 
| 83 | 
            +
                    05th St, San Francisco, CA 94103","location":{"lat":37.781458,"lng":-122.405257},"accuracy":1,"accuracy_type":"rooftop","source":"San
         | 
| 84 | 
            +
                    Francisco"},{"address_components":{"number":"194","street":"05th","suffix":"St","formatted_street":"05th
         | 
| 85 | 
            +
                    St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"194
         | 
| 86 | 
            +
                    05th St, San Francisco, CA 94103","location":{"lat":37.781458,"lng":-122.405257},"accuracy":0.9,"accuracy_type":"rooftop","source":"San
         | 
| 87 | 
            +
                    Francisco"},{"address_components":{"number":"906","street":"Howard","suffix":"St","formatted_street":"Howard
         | 
| 88 | 
            +
                    St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"906
         | 
| 89 | 
            +
                    Howard St, San Francisco, CA 94103","location":{"lat":37.781458,"lng":-122.405257},"accuracy":0.9,"accuracy_type":"rooftop","source":"San
         | 
| 90 | 
            +
                    Francisco"},{"address_components":{"number":"206","street":"05th","suffix":"St","formatted_street":"05th
         | 
| 91 | 
            +
                    St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"206
         | 
| 92 | 
            +
                    05th St, San Francisco, CA 94103","location":{"lat":37.781187,"lng":-122.404925},"accuracy":0.9,"accuracy_type":"rooftop","source":"San
         | 
| 93 | 
            +
                    Francisco"},{"address_components":{"number":"190","street":"05th","suffix":"St","formatted_street":"05th
         | 
| 94 | 
            +
                    St","city":"San Francisco","county":"San Francisco County","state":"CA","zip":"94103","country":"US"},"formatted_address":"190
         | 
| 95 | 
            +
                    05th St, San Francisco, CA 94103","location":{"lat":37.781508,"lng":-122.405329},"accuracy":0.9,"accuracy_type":"rooftop","source":"San
         | 
| 96 | 
            +
                    Francisco"}]}}]}'
         | 
| 66 97 | 
             
                http_version: 
         | 
| 67 | 
            -
              recorded_at:  | 
| 68 | 
            -
            recorded_with: VCR  | 
| 98 | 
            +
              recorded_at: Fri, 16 Feb 2018 17:35:13 GMT
         | 
| 99 | 
            +
            recorded_with: VCR 4.0.0
         |