geokit/geokit

View on GitHub
fixtures/vcr_cassettes/google_full_v3_20.yml

Summary

Maintainability
Test Coverage
---
http_interactions:
- request:
    method: get
    uri: https://maps.google.com/maps/api/geocode/json?address=100%20Spear%20St%20Apt.%205,%20San%20Francisco,%20CA,%2094105,%20US&sensor=false
    body:
      encoding: US-ASCII
      string: ''
    headers:
      Accept-Encoding:
      - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
      Accept:
      - "*/*"
      User-Agent:
      - Ruby
  response:
    status:
      code: 200
      message: OK
    headers:
      Content-Type:
      - application/json; charset=UTF-8
      Date:
      - Wed, 12 Aug 2015 20:07:52 GMT
      Expires:
      - Thu, 13 Aug 2015 20:07:52 GMT
      Cache-Control:
      - public, max-age=86400
      Access-Control-Allow-Origin:
      - "*"
      Server:
      - mafe
      X-Xss-Protection:
      - 1; mode=block
      X-Frame-Options:
      - SAMEORIGIN
      Accept-Ranges:
      - none
      Vary:
      - Accept-Language,Accept-Encoding
      Transfer-Encoding:
      - chunked
    body:
      encoding: UTF-8
      string: |
        {
           "results" : [
              {
                 "address_components" : [
                    {
                       "long_name" : "5",
                       "short_name" : "5",
                       "types" : [ "subpremise" ]
                    },
                    {
                       "long_name" : "100",
                       "short_name" : "100",
                       "types" : [ "street_number" ]
                    },
                    {
                       "long_name" : "Spear Street",
                       "short_name" : "Spear St",
                       "types" : [ "route" ]
                    },
                    {
                       "long_name" : "South Beach",
                       "short_name" : "South Beach",
                       "types" : [ "neighborhood", "political" ]
                    },
                    {
                       "long_name" : "San Francisco",
                       "short_name" : "SF",
                       "types" : [ "locality", "political" ]
                    },
                    {
                       "long_name" : "San Francisco County",
                       "short_name" : "San Francisco County",
                       "types" : [ "administrative_area_level_2", "political" ]
                    },
                    {
                       "long_name" : "California",
                       "short_name" : "CA",
                       "types" : [ "administrative_area_level_1", "political" ]
                    },
                    {
                       "long_name" : "United States",
                       "short_name" : "US",
                       "types" : [ "country", "political" ]
                    },
                    {
                       "long_name" : "94105",
                       "short_name" : "94105",
                       "types" : [ "postal_code" ]
                    }
                 ],
                 "formatted_address" : "100 Spear Street #5, San Francisco, CA 94105, USA",
                 "geometry" : {
                    "location" : {
                       "lat" : 37.7920876,
                       "lng" : -122.3938666
                    },
                    "location_type" : "ROOFTOP",
                    "viewport" : {
                       "northeast" : {
                          "lat" : 37.7934365802915,
                          "lng" : -122.3925176197085
                       },
                       "southwest" : {
                          "lat" : 37.7907386197085,
                          "lng" : -122.3952155802915
                       }
                    }
                 },
                 "partial_match" : true,
                 "place_id" : "EjExMDAgU3BlYXIgU3RyZWV0ICM1LCBTYW4gRnJhbmNpc2NvLCBDQSA5NDEwNSwgVVNB",
                 "types" : [ "subpremise" ]
              }
           ],
           "status" : "OK"
        }
    http_version: 
  recorded_at: Wed, 12 Aug 2015 20:07:52 GMT
recorded_with: VCR 2.9.3