Browse Source

Moved to JSON location cache

development
Godwin 7 years ago
parent
commit
b4685a972e
  1. 1
      features/support/location_cache.json
  2. 51
      features/support/location_cache.yml

1
features/support/location_cache.json

@ -0,0 +1 @@
{"Brooklyn NY":{"data":{"address_components":[{"long_name":"Brooklyn","short_name":"Brooklyn","types":["political","sublocality","sublocality_level_1"]},{"long_name":"Kings County","short_name":"Kings County","types":["administrative_area_level_2","political"]},{"long_name":"New York","short_name":"NY","types":["administrative_area_level_1","political"]},{"long_name":"United States","short_name":"US","types":["country","political"]}],"formatted_address":"Brooklyn, NY, USA","geometry":{"bounds":{"northeast":{"lat":40.739446,"lng":-73.8333651},"southwest":{"lat":40.551042,"lng":-74.05663}},"location":{"lat":40.6781784,"lng":-73.9441579},"location_type":"APPROXIMATE","viewport":{"northeast":{"lat":40.739446,"lng":-73.8333651},"southwest":{"lat":40.551042,"lng":-74.05663}}},"place_id":"ChIJCSF8lBZEwokRhngABHRcdoI","types":["political","sublocality","sublocality_level_1"]},"cache_hit":null}}

51
features/support/location_cache.yml

@ -1,51 +0,0 @@
---
Brooklyn NY: !ruby/object:Geocoder::Result::Google
data:
address_components:
- long_name: Brooklyn
short_name: Brooklyn
types:
- political
- sublocality
- sublocality_level_1
- long_name: Kings County
short_name: Kings County
types:
- administrative_area_level_2
- political
- long_name: New York
short_name: NY
types:
- administrative_area_level_1
- political
- long_name: United States
short_name: US
types:
- country
- political
formatted_address: Brooklyn, NY, USA
geometry:
bounds:
northeast:
lat: 40.739446
lng: -73.8333651
southwest:
lat: 40.551042
lng: -74.05663
location:
lat: 40.6781784
lng: -73.9441579
location_type: APPROXIMATE
viewport:
northeast:
lat: 40.739446
lng: -73.8333651
southwest:
lat: 40.551042
lng: -74.05663
place_id: ChIJCSF8lBZEwokRhngABHRcdoI
types:
- political
- sublocality
- sublocality_level_1
cache_hit:
Loading…
Cancel
Save