geokit/geokit

View on GitHub
fixtures/vcr_cassettes/opencage_city.yml

Summary

Maintainability
Test Coverage
---
http_interactions:
- request:
    method: get
    uri: https://api.opencagedata.com/geocode/v1/json?key=someopencageapikey&no_annotations=1&query=San%20Francisco,%20CA
    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:
      Date:
      - Wed, 03 Sep 2014 14:08:51 GMT
      Server:
      - Apache/2.4.7 (Ubuntu)
      X-Ratelimit-Reset:
      - '1409788800'
      X-Ratelimit-Remaining:
      - '2466'
      X-Ratelimit-Limit:
      - '2500'
      Access-Control-Allow-Origin:
      - '*'
      Strict-Transport-Security:
      - max-age=31536000; includeSubDomains
      Transfer-Encoding:
      - chunked
      Content-Type:
      - application/json; charset=utf-8
    body:
      encoding: UTF-8
      string: '{"licenses":[{"name":"CC-BY-SA","url":"http://creativecommons.org/licenses/by-sa/3.0/"},{"name":"ODbL","url":"http://opendatacommons.org/licenses/odbl/summary/"}],"rate":{"limit":2500,"remaining":2466,"reset":1409788800},"results":[{"bounds":{"northeast":{"lat":37.9298443,"lng":-122.2817799},"southwest":{"lat":37.63983,"lng":-123.1738249}},"components":{"city":"San
        Francisco","country":"United States of America","country_code":"US","county":"San
        Francisco City and County","state":"California"},"confidence":1,"formatted":"San
        Francisco, San Francisco City and County, California, United States of America","geometry":{"lat":37.7792768,"lng":-122.4192704}},{"bounds":{"northeast":{"lat":37.9298443,"lng":-122.2817799},"southwest":{"lat":37.63983,"lng":-123.1738249}},"components":{"country":"United
        States of America","country_code":"US","county":"San Francisco City and County","state":"California"},"confidence":1,"formatted":"San
        Francisco City and County, California, United States of America","geometry":{"lat":37.7647993,"lng":-122.4629897}}],"status":{"code":200,"message":"OK"},"thanks":"For
        using an OpenCage Data API","timestamp":{"created_http":"Wed, 03 Sep 2014
        14:08:51 GMT","created_unix":1409753331},"total_results":2,"we_are_hiring":"http://lokku.com/#jobs"}'
    http_version: 
  recorded_at: Wed, 03 Sep 2014 14:03:54 GMT
recorded_with: VCR 2.9.2