Browse files

Added ability to search spots by name

  • Loading branch information...
1 parent 19dd7ba commit 43f8206e098041ff2640b325d5d77a7ee696be46 @rahilsondhi rahilsondhi committed Jun 2, 2011
View
2 lib/google_places/spot.rb
@@ -6,13 +6,15 @@ def self.list(lat, lng, api_key, options = {})
radius = options.delete(:radius) || 200
sensor = options.delete(:sensor) || false
types = options.delete(:types)
+ name = options.delete(:name)
location = Location.new(lat, lng)
options = {
:location => location.format,
:radius => radius,
:sensor => sensor,
:key => api_key,
+ :name => name
}
# Accept Types as a string or array
View
45 spec/google_places/spot_spec.rb
@@ -12,10 +12,13 @@
context 'List spots' do
use_vcr_cassette 'list_spots'
+
+ after(:each) do
+ @collection.map(&:class).uniq.should == [GooglePlaces::Spot]
+ end
it 'should be a collection of Spots' do
@collection = GooglePlaces::Spot.list(@lat, @lng, api_key, :radius => @radius, :sensor => @sensor)
- @collection.map(&:class).uniq.should == [GooglePlaces::Spot]
end
describe 'with a single type' do
@@ -25,10 +28,6 @@
@collection = GooglePlaces::Spot.list(@lat, @lng, api_key, :radius => @radius, :sensor => @sensor, :types => 'cafe')
end
- it 'should be a collection of Spots' do
- @collection.map(&:class).uniq.should == [GooglePlaces::Spot]
- end
-
it 'should have Spots with a specific type' do
@collection.each do |spot|
spot.types.should include('cafe')
@@ -43,11 +42,41 @@
@collection = GooglePlaces::Spot.list(@lat, @lng, api_key, :radius => @radius, :sensor => @sensor, :types => ['food','establishment'])
end
- it 'should be a collection of Spots' do
- @collection.map(&:class).uniq.should == [GooglePlaces::Spot]
+ it 'should have Spots with specific types' do
+ @collection.each do |spot|
+ spot.types.should include('food','establishment')
+ end
+ end
+ end
+
+ describe 'searching by name' do
+ use_vcr_cassette 'list_spots_with_name'
+
+ before(:each) do
+ @collection = GooglePlaces::Spot.list(@lat, @lng, api_key, :radius => @radius, :sensor => @sensor, :name => 'italian')
+ end
+
+ it 'should have Spots with a specific name' do
+ @collection.each do |spot|
+ spot.name.downcase.should include('italian')
+ end
+ end
+ end
+
+ describe 'searching by name and types' do
+ use_vcr_cassette 'list_spots_with_name_and_types'
+
+ before(:each) do
+ @collection = GooglePlaces::Spot.list(@lat, @lng, api_key, :radius => @radius, :sensor => @sensor, :types => ['food','establishment'], :name => 'italian')
+ end
+
+ it 'should have Spots with a specific name' do
+ @collection.each do |spot|
+ spot.name.downcase.should include('italian')
+ end
end
- it 'should have Spots with the appropriate type' do
+ it 'should have Spots with specific types' do
@collection.each do |spot|
spot.types.should include('food','establishment')
end
View
700 spec/vcr_cassettes/list_spots.yml
@@ -349,3 +349,703 @@
}
http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction
+ request: !ruby/struct:VCR::Request
+ method: :get
+ uri: https://maps.googleapis.com:443/maps/api/place/search/json?location=-33.8670522%2C151.1957362&radius=200&sensor=false&key=AIzaSyCLMybjdDnmUhhLcfangpJnjT3b-AkSyIs
+ body:
+ headers:
+ response: !ruby/struct:VCR::Response
+ status: !ruby/struct:VCR::ResponseStatus
+ code: 200
+ message: OK
+ headers:
+ content-type:
+ - application/json; charset=UTF-8
+ vary:
+ - Accept-Language
+ date:
+ - Thu, 02 Jun 2011 22:02:08 GMT
+ server:
+ - mafe
+ cache-control:
+ - private
+ x-xss-protection:
+ - 1; mode=block
+ body: |
+ {
+ "html_attributions" : [
+ "Listings by \u003ca href=\"http://www.yellowpages.com.au/\"\u003eYellow Pages\u003c/a\u003e"
+ ],
+ "results" : [
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86954560,
+ "lng" : 151.19454040
+ },
+ "viewport" : {
+ "northeast" : {
+ "lat" : -33.86028050,
+ "lng" : 151.21054780
+ },
+ "southwest" : {
+ "lat" : -33.87880970,
+ "lng" : 151.1785330
+ }
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/geocode-71.png",
+ "id" : "40840d476baa531e0227a353b1bef70262f66e7e",
+ "name" : "Pyrmont",
+ "reference" : "CnRoAAAAe8MJWCNVhTL7yWExOQBpoG6z88YKKWLB6r997aHC3NkQgYH6V0vJ3OXKJT741UxTZN3KaGB3Z890OkMFieT4Kif2blnbmypvXEeX96Dr-aLWs0q61nQauocpJLfJuuTxvbqXNiUVJL3GDpBFP0rBJxIQjesye8ue7zvz6K-otWOvFxoUbCeVA9yRA1KEc1VqFPlblkmZMzc",
+ "types" : [ "locality", "political" ]
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/lodging-71.png",
+ "id" : "be880205d64059c306bbf198f908b81cabb9f066",
+ "name" : "Star City",
+ "reference" : "CnRhAAAAVUJ6__bilddwC_ZVMioLLzRDojjrZ8IHu9SvRvdFCKbFrbr2ozDdjmdBf9OOaaGdoKkrKdevVnos-TyVDMZENSIdZMKFAxDTHTEPxcIP9RtgxDXi2eb3Vce8bMtRtuFaceknX-YB8o1OvxRmjG7MYxIQ_COUsrlluWMNauhReO6ijRoUME71Oo0jV0g0Q1Ygdn7bARMToC4",
+ "types" : [ "lodging", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8667010,
+ "lng" : 151.1973990
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "dd030d236b8ccdc525f7a40893eb492f8fc5d55d",
+ "name" : "Ripples at Sydney Wharf",
+ "reference" : "CnRuAAAAUwqc80wj8L9yhqvU1GCiqVngFP8O8r5jH-UrCndmfGyDQuISfEkwf8qSH2NOBBKSCGgN8EdUjwWM0qT0PboafGTG1VkjW_2bDtMibZwZFm0aXmpxlp3XHhBFP0BA-MW2t675WMGNcVx-jAdqkQaZ1BIQu5VThji-1xFDXVQ4bbyOARoUic-jzg9XAX6_z0maHdU-N_BFuGw",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pirrama Road, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8669710,
+ "lng" : 151.1958750
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "4f89212bf76dde31f092cfc14d7506555d85b5c7",
+ "name" : "Google Sydney",
+ "reference" : "CnRlAAAAQweq8fsjVP5lTtLKGZAZ-GNXvXuU5cX_HdEY_9clDiq9b8RZ5Y641-vA_zxuMmR6JxpqqImA710BKC2vhsZEUPmN10qeWVjDQMwNm9NwtsGF20sejYJW6IvFBq877Vb6DvK5fIOFQXPdoaeFpZ36TBIQ0bQ5V7Fn_jYeLJssBUs6axoUd4xY9GdkJ3JfBFIJcbewm6yKSw4",
+ "types" : [ "establishment" ],
+ "vicinity" : "Pirrama Road, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8665470,
+ "lng" : 151.1959410
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "4d716a646c32978aa12d1057dcf9f503a20195c0",
+ "name" : "Signorelli Gastronomia",
+ "reference" : "CnRuAAAA9H50K6C6tKIc5BsnCRHsvqiEA8TvV6NB5Or1Yl2mh9fxfHAc0K_8pXPv7-n3vPL6Mm79jeFOx3Yg7H-BVeWoNJtdcCzRL1LAnhk-r1BXXGYdCJbKHOfHNjuEpXAqxX9UXMjzKxPZw7GgdXVUQvYWWBIQWBoix4iBC9tCFHk-TqVG6hoU7vDJpy6seCf36U0RoiQIsz6-E4M",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Trouton Place, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "bceeb9b6d5ac2f9f2573bbed9e1b3240f1fd0e12",
+ "name" : "Astral",
+ "reference" : "CmReAAAAc1Q7OoIu5Y18IpUZQrmjPKFZeWBtwgGmbRZ5dvbYxThYrk42LqGAV04otNBJLMKg3Ebq_yW-A9ZZ7Lghp6I_HmIADNG0b5U-m5glOzqg2jXiCg63D2WRxnnU0fZO_swFEhDjQt2spyIJTr3GFiqHC8XXGhRHpouirXudyOY7sR6Flk8ZPSMHHw",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8670840,
+ "lng" : 151.195950
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "27e84d1acda19c14b9c7f5271242796891bc9c9e",
+ "name" : "Accenture",
+ "reference" : "CoQBfgAAAOlPhda-rHhDt_Zvl5Vy743ue8p0weRtpDijV75HgYcl_V6a9pqrsy2yfK9Vjv2i2avTM8gbYhlbLpiN8_C_ha9UgFvJNLv7fFcgVz_qUVbOJdu6yuZBPCoxdVtfXQk-VWs_zf9RGREMq9BUnL2KYMoJx6_2xv0mHUxNz8xDa2bvEhD82paIRWm8bwMK1b29_xgaGhRquJKDDT5p2rBmpWLgVHhf8lmEkA",
+ "types" : [ "establishment" ],
+ "vicinity" : "Pirrama Road, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8654620,
+ "lng" : 151.1959830
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "3e2826e1b4b4e5cbee354260f687d14938e6068f",
+ "name" : "Fairfax Media",
+ "reference" : "CnRlAAAA9Tsotc93BuKXk5R-FNlXAUTh8r_J3UXxnnS1Hjo8l_QZs8wOEg6Tgcamy0UMFxhC36LRESH2aa483IJkqseaxomEE-eLvTavToeJ-oxwEsJnkKbI0Sg3aSdfp2uwQ22yXZ1iTvnzDghU62yoP3zT9BIQWVBZeZSym0HaX8FnfZvS4xoURH27iKKDBpMZwl0kCTYHMvVTCfM",
+ "types" : [ "establishment" ],
+ "vicinity" : "Darling Island Road, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8652490,
+ "lng" : 151.1961010
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "1f2ddcefca08ffc687247c1ecf209054336aebb8",
+ "name" : "Fairfax Media",
+ "reference" : "CnRkAAAAHjlZRcIQl8MZVYXObKbojqEtTHhyANewOmXfJ5FO7wjvNVqbxIAHUxGE3zLmF3YZFmv0pGyqeaQEJbYng2aIoxQ8zoznCOhbaaajm6QbSLRk7ETrLhw7DXk3tlF-lVaS0eqdstLKiiZdoyQygTfFXBIQ9u5yPUJ1Cu5xwxeeAMO8DhoU15btxYIdKaCgGxQbk5ofOZRhj3g",
+ "types" : [ "establishment" ],
+ "vicinity" : "Darling Island Road, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "eaf5d4b14ebeae84df661e1f6d593259abac83d4",
+ "name" : "Garden Buffet",
+ "reference" : "CnRlAAAAAdeA3krKxRv4PHyxjrfqySCAaiH8Bxhw3Biy15GvwQHhldch6x6UST7JxQFVI4IVVLbsTHSoTH_yr3TLtSkl1_vdKQCinpkERg19PKkRHFE1XXcQH2OdR_SHs4jc_4On4fgBpEmIaNUndm6_9canFRIQLeGjz6fhDTvD8dld_V9kchoUOUgjdYhMXYDs-RLeffEmgROr5S4",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8687940,
+ "lng" : 151.196830
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "61178ac5b42a4045c415fffdf6d474ba9b08d068",
+ "name" : "John Holland",
+ "reference" : "CnRjAAAAZnbWzsh0-e69BXTNdQbDPsnqGR8LQaD0jiYAIinUckyDMoq1SbeZXMIWk3qAPXOxcE7Aqglu-9IRNIySkQcyIVyyQMeoa7uyGu4USnDCQuMjZ7NjsEVSlgeBzcDt7BFD66QO8ReI8Lc9ByAL9ppAfxIQq3OcUPcRVi1K-eu25MAFoRoUT62seha43HbNFUtRyluZJA-9Ers",
+ "types" : [ "establishment" ],
+ "vicinity" : "Pirrama Rd, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "88751426b87d7072ea1acf98f35695d02985addb",
+ "name" : "Seans Kitchen",
+ "reference" : "CnRkAAAAMhlIvyzpKU9YZOpgvaYxg2-2rRT4yQwjv-UCyCPDkgG0Q4LQsQbiyh_hkiq78xX52qNVqm8xzhwz6V518YmOz9r8LBX2OKW5GNrSZqFJ0zB3R5njEpDGyMvV5ObDIBUMl12OVjNgl9vMuNPPTBPBVRIQGNqZ3AP1OuIqc2iddQnR_RoUtCi4mHVRsqxBR3Dbez-Kej-M1tQ",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8654190,
+ "lng" : 151.1943840
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "19cdf89322aa1fc3523c583a74a27645b11430e8",
+ "name" : "Channel Seven",
+ "reference" : "CnRlAAAAotWM45ISxi4IHFWOcwUR1STh1I9XSR-Xed75NU2_HQBTJVIn7jagt1NLvYyTeAcSJlr0dMuIx-Y6voiDstvdTL8dJNdeBH-ctmzBdC00F_TAXRJthZfMulzuKnGCcMCImB0B2XK7b0x1sp7_rNw9HBIQKV-FYLu1VfpVJh0YBvJsRBoUt7Z7XW8sjlhTytip-1wyNvoAwGQ",
+ "types" : [ "establishment" ],
+ "vicinity" : "Pirrama Road, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "d559b2e8e491212130cf17c4d0ac595c72b3931f",
+ "name" : "Avis",
+ "reference" : "CmRbAAAAa71pJlw6v7y7x1qkMMBTbwe6iS0ZBWUHsMbvLvxPUOW08yHiZzLD8G0sX-0uuhksYZ_pybIuDeDi3PEs0sRtVnDF_mFzINs_xH_ePGqeJziFZa-x1dqRlw8fedcP0CS3EhBds0wJ1Cur0CcNVomjSeHxGhTRdPxUVKhJRd8r5JGKOKIeyDrr4g",
+ "types" : [ "car_rental", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "ca11a8721d7fa06d9ed6ce80c7e49af70f440fd8",
+ "name" : "Lotus Pond",
+ "reference" : "CnRiAAAAG1hQzCMDUxTWE2GRQwxuLgMSNmpCiWgcHmz14emTSW8r432H11FdOc0trBJ59DRan_rgrR7J9wraEm55YCPY5v4ibDYOATnbBmr1UcANQqeokVxQyU85h1cdeChkxqPTVZ_MSM-P2AWrY4cf4qJZhhIQ2nPp8kdxOyI8f29tRivovRoUHs-t1HMG3CR1xiowjYsT56K8prM",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8670520,
+ "lng" : 151.1957360
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "3ef986cd56bb3408bc1cf394f3dad9657c1d30f6",
+ "name" : "Doltone House - Darling Island Wharf",
+ "reference" : "CoQBfAAAAD7cwslJtJ0mRYcJCSadAxbaGW058UynhzRG2NE1YUxl5oDiKA1mXigIg-EPdGeNmsT4D8QgCGgvsatdy5CCsof-Q_SE7tokWWEXLHj-eFCcDiH3hmfxALeR7xkSHuMTNBGxPmfDaaqJAm8VKD2LRYtbndiHLXglJySIF8WT_PB9EhAsmta9kwhLX0JKmGAaNYDLGhTdlyq9-3MU_A8zZaD4kYYOUbgjZA",
+ "types" : [ "establishment" ],
+ "vicinity" : "Pirrama Road, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8681980,
+ "lng" : 151.1945840
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "ba9494fbebdb7e40f9a646aab93379212763195c",
+ "name" : "Fat Noodle",
+ "reference" : "CnRhAAAANjecchMs3vkIuFTX6CUQJ0nZpczDzV1tS5vwgt74ZNRrhIoXCGbv_W2JGoWpUamBmTdVzkF_M8y41rNjTubykzlKnZp01avqK_54Q7K3KtXGahn8mftFqjqorGpboGzFcXg3P2B_4PEUyMRXbD2m9xIQfpgL5WKJk11AaupF4sCEcRoU_w2KseOtRoN_s4jhcOsdQflbJoA",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8676090,
+ "lng" : 151.1936860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "00060cf64f16375913ec49d25cbb7829d3e08a88",
+ "name" : "Blue Eye Dragon",
+ "reference" : "CnRmAAAAW5Mqc7OzA7BmtH7U6zp2GI_L7Wo2uWefJ5b2vdvd838V50ZwcJE9ujog_I9JqB-QEX8PrHuUDbuZYDHKCS-OUiaDasF-anbSo_GLXwzh7dduGFA0lpDLjFBQHtL85OJvK1zO_GpMmq4-MZZWn4C--hIQ475XmcB85NGrEZhckrA4PRoUil9AmYK77A3anzSP5eSV1pun7Vc",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8676180,
+ "lng" : 151.1940940
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/barber-71.png",
+ "id" : "3463e262449aeda2b3f1e899a2178fcd42d2c7fe",
+ "name" : "Star Spa and Salon",
+ "reference" : "CnRqAAAALSlX814zP30WEnpYGpad7-IDAiHl0H0kAs2rm4TG3kNG9SQOTmv83blRbs6bi82KxkB0YKmZhT-CU6PG9TaqpjCBEz3CExWHA6V-v9JRpl5mowi8Hi9qhbeNDDuNpbBMoxGJxlS5UxVrqJhMQ0Hq3hIQ7tWC23at9gkNkSxyG7JOWhoUiD5LoAdmRqKpAKwC8ih9f0IG6cw",
+ "types" : [ "beauty_salon", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "372b98902d4032b2708939131b8bc6bfbce9044c",
+ "name" : "Chao Praya City",
+ "reference" : "CnRnAAAAwxMX_XKO2zFISEHwOZKrs_735EDY3NEuva-NjddGRxGh0COZpkS945Ll1T1WZnYtOBspYErJLSlA4xoVIQ2r787bkpddZQ0g6_wlxF36VmsyAkBhno7Yj3ARgYcQtbznLh3Cl-WLupgm9pYjhPJvUhIQ41brenhZM3SSaVj_KpTGSRoUJBQHHssL5OM2Ugy3-cI-6svbTmo",
+ "types" : [ "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8653280,
+ "lng" : 151.1943190
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "151958c1816f1ce7f4c8022325792513fba50743",
+ "name" : "Kookaburra Sailing School",
+ "reference" : "CoQBcQAAAKb_kUS-JavCEf-pfqp0OGoXkLT04r-xwrzFjtYGBF_HxiayrSmrcNK_iAYz6yDVLc2kvYPFxc7tBKYpbab8mQVrPJbPn2QrFBYPznPr0uFmS2ac_DVNo1jA4PDidjqO6_gMFdlEJxW_mwu4sasZGlhCnDi2WgQAReZqUrorkh41EhCl2tADE2sfFjRzbRedQYxZGhT1wOs-kG3POVn684-V-iUV4ptouw",
+ "types" : [ "school", "establishment" ],
+ "vicinity" : "Pirrama Road, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.85171490,
+ "lng" : 151.19664440
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/geocode-71.png",
+ "id" : "8dbf2c11a8cca5b1457b442e05d006a21969ce22",
+ "name" : "Port Jackson",
+ "reference" : "CnRtAAAARDBfSJ7GcfNAlkiSnJ1aqjyJ6PuDWSkat-Y38_ZRYYMLNV7vcalxe5VSqMA48ig0pE_dSHU1PmlQcD_t6vo4U-oqiif71O-q8xjtb2H7UWJvSBDO1APMcgtLdtKX6BwsYAUQgyU_JPfvdOg50CRhNxIQlBdVaCYDrGKv6ClXpn4KOBoUe7_xz6qZp3SnU_65Iz8wClSBssc",
+ "types" : [ "locality", "political" ]
+ }
+ ],
+ "status" : "OK"
+ }
+
+ http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction
+ request: !ruby/struct:VCR::Request
+ method: :get
+ uri: https://maps.googleapis.com:443/maps/api/place/search/json?location=-33.8670522%2C151.1957362&radius=200&sensor=false&key=AIzaSyCLMybjdDnmUhhLcfangpJnjT3b-AkSyIs&name=
+ body:
+ headers:
+ response: !ruby/struct:VCR::Response
+ status: !ruby/struct:VCR::ResponseStatus
+ code: 200
+ message: OK
+ headers:
+ content-type:
+ - application/json; charset=UTF-8
+ vary:
+ - Accept-Language
+ date:
+ - Thu, 02 Jun 2011 22:17:20 GMT
+ server:
+ - mafe
+ cache-control:
+ - private
+ x-xss-protection:
+ - 1; mode=block
+ body: |
+ {
+ "html_attributions" : [
+ "Listings by \u003ca href=\"http://www.yellowpages.com.au/\"\u003eYellow Pages\u003c/a\u003e"
+ ],
+ "results" : [
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86954560,
+ "lng" : 151.19454040
+ },
+ "viewport" : {
+ "northeast" : {
+ "lat" : -33.86028050,
+ "lng" : 151.21054780
+ },
+ "southwest" : {
+ "lat" : -33.87880970,
+ "lng" : 151.1785330
+ }
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/geocode-71.png",
+ "id" : "40840d476baa531e0227a353b1bef70262f66e7e",
+ "name" : "Pyrmont",
+ "reference" : "CnRoAAAAWsdEQ5L884G0E2ZKYJwF_U04T0LBZJvP2GESH3mParSnQ83Pw9s6-z9K4Y08AFIAESiQPOoqxqdajWONRju7svZ5KibfRsxXWXZFsjz_8zM3jpIN44ClhggAPIkbzteCUNPARmOZsxEETUNQSpzpdBIQOc0AAgngGWRoVYha9AL3-xoU3VrZ9gQ5m3NXxjdf-ccmsOJHGv8",
+ "types" : [ "locality", "political" ]
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/lodging-71.png",
+ "id" : "be880205d64059c306bbf198f908b81cabb9f066",
+ "name" : "Star City",
+ "reference" : "CnRhAAAAO7kB8Ws7RVaFDPMkYh3Q_xOTJ_tgcZzWPMK4QGogWHKBZWbZP9wVoo0L-nyQL5Tx-DRnaDbzb3dZctsf7_SzhPcg_6NR0AGNUyeX7ysdojh62yuOiwvZDoUc-4k00ni3ivLivBgkeHPnPmJLyO2nhBIQeULulAievVvjS-lAWtsOnRoUyqYbsY020K12rtV624bYHygQXFo",
+ "types" : [ "lodging", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8667010,
+ "lng" : 151.1973990
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "dd030d236b8ccdc525f7a40893eb492f8fc5d55d",
+ "name" : "Ripples at Sydney Wharf",
+ "reference" : "CnRuAAAAmM3Aw6GbwnZnEezjdQMrnLn8xzJ9dWIRrSDKM_zLOG2IzCAadW8WuivWAbc1ZPkkrh_7oJ8TNRfpUZajJUVHvljSueWKHvuRWeeMdqrjHc3BITo4LRD6DviuX2-nlGWql2Zkmja4CBYSssEzZq0whxIQP5OBdsZkf5TS7_wv30kdrBoUY9wXozude3mGRC18UynK3m3HTOc",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pirrama Road, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8669710,
+ "lng" : 151.1958750
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "4f89212bf76dde31f092cfc14d7506555d85b5c7",
+ "name" : "Google Sydney",
+ "reference" : "CnRlAAAASV3caGY4p8B2rRqbhFRLImKSJ2wbZaQ1aw6sZY9CaPVEWpsynDxtmL4uSL3D-0lnePk5303UVPOknW4Fg7IVOJH7nDrPniWuicFxU33mMkcgRNV8dvGY0P1JP3u6Uk74czG2T166zxZTEMTREaunqRIQ2hkO1xRn4_xGoisXwbhlGxoUGm8dqJEpoU6LSeTGYWE0FnW9ddc",
+ "types" : [ "establishment" ],
+ "vicinity" : "Pirrama Road, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8665470,
+ "lng" : 151.1959410
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "4d716a646c32978aa12d1057dcf9f503a20195c0",
+ "name" : "Signorelli Gastronomia",
+ "reference" : "CnRuAAAAbA5FkhXPqJithu6wden3rSAyWK1r-QUrPQQEo5WpdJUoFGLuqLfr00fPepO1VbdVQeCQJozna8rg9SD-fLanJCjhedyA-T3sc1uJKRz2yGWyJu_yoptOvf5CblCpBsoy7XsvCa-cnedzzpm-xn_IIxIQqB9RmxntKgW3U8an11dYoxoUBRmDO2bpQDu2z_zhqNKrLSFypiI",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Trouton Place, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "bceeb9b6d5ac2f9f2573bbed9e1b3240f1fd0e12",
+ "name" : "Astral",
+ "reference" : "CmReAAAAeewJvJTsfMndyQtgjl1epsdBD5FpN9XAZxNEqlhs0-mXg3spzL-skSgFRNUhCJTpbfQhKeBpyPl41GAgkskvn8Xc6h2FqzCpHkLvEYdSizyuuU-0Bwq-gJNewFB1ehtCEhDqK8boJnrUgl1WY1VFgFz0GhTVh8HE6o1e2POCWSj3cyUKM904bA",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8670840,
+ "lng" : 151.195950
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "27e84d1acda19c14b9c7f5271242796891bc9c9e",
+ "name" : "Accenture",
+ "reference" : "CoQBfgAAAMyNK0AXAiYdkxLut8739Q9UcBZxmLIrECo2yCWW30GaFA9PfAvvHGhj76jiXy43AeSUebBukxsDJVDU2zWEtKkPonIkG5FP6ssuB14AzdrSUNFBDoJ8BzcUFNyAXThuWspVrY6hTpgFXFy82D0oS2BscoMHMJfQ_pMv5Mc7VqKbEhCK3BaWInYk_DTX2go_vWQAGhRUwYJKBe43mdCR6j-xhFDXNYWLsQ",
+ "types" : [ "establishment" ],
+ "vicinity" : "Pirrama Road, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8654620,
+ "lng" : 151.1959830
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "3e2826e1b4b4e5cbee354260f687d14938e6068f",
+ "name" : "Fairfax Media",
+ "reference" : "CnRlAAAA-l9cP3hDufBEaaqNiuxU1popADOaTJ15Zvoin29wnyHeVxpf-CsIm0HsCRs38lOJm1RHOb9E4-WABnGXvfyQraJBvutB5dEyUKJlSN1QwVPXAhP1eW314HYT8fuQS1k07YBs2bfWVE3qpKWHJtYPnRIQG9XFFWktVY6ZCEKMncCzBRoUjYMHGxUd8uKMDyVOez6rJP4KZpo",
+ "types" : [ "establishment" ],
+ "vicinity" : "Darling Island Road, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8652490,
+ "lng" : 151.1961010
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "1f2ddcefca08ffc687247c1ecf209054336aebb8",
+ "name" : "Fairfax Media",
+ "reference" : "CnRkAAAAZ-_lWN6dhD3QHb_dsKYftSaHurl-n4-ozweygoQyXkIiDSk7YfFVfNb7miB19uVL485RJ6V_muI_DEQPS3pZ5QagHs-bg-vvsFUDW9lLawgl_Yjh65i9ZjLSNcTCHx3qAzj3q1cDDRR2Z_ToRwYQhxIQDFcRpIGC5EtLDYtEB-r0ixoUrGQXfgbg5IKpOuaLDWxxekQrXcg",
+ "types" : [ "establishment" ],
+ "vicinity" : "Darling Island Road, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "eaf5d4b14ebeae84df661e1f6d593259abac83d4",
+ "name" : "Garden Buffet",
+ "reference" : "CnRlAAAAjeMIn_RoAn9CjE7utz0eKGsGlXg8IE6EQLyujkbuh7aiMO7eVTv9GCNH4IxcUEMYGRf79YnhY0G9Du1m9aWLXFaY2K-bmidu8imDQDwU7Ji9KpH3bZ0dFGHweka10VvzQjItf3_bNuMpJzclodZUfBIQzeAdxoTD4Wj4K6Qxh3cS_xoU4pyS_x0_RvoEzHPgEsbroe8sbJM",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8687940,
+ "lng" : 151.196830
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "61178ac5b42a4045c415fffdf6d474ba9b08d068",
+ "name" : "John Holland",
+ "reference" : "CnRjAAAAygF6H8DdnsSNhgjwBe6xR7g6RTmDZ9H3pS-m52bm_J4Jdb0kTfw0enzYYziBPJ6COOXuvNxrlh4vCZ7n0aKTz0RYLeCOz3qfnbG1nJHQt0wLRSFWXeuIOlOkpC8i_BH4iPEs5ygF-Qd5JZ39MCTYbxIQpfAtyl3F1hcxRwyGITxVPhoUitFj8RvT7yJHfZck5mDew-YNn1Y",
+ "types" : [ "establishment" ],
+ "vicinity" : "Pirrama Rd, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "88751426b87d7072ea1acf98f35695d02985addb",
+ "name" : "Seans Kitchen",
+ "reference" : "CnRkAAAAr813YBTbmfnBYk1va7mPi0_HeUtdN2g5j0iSSbrZ7or5Z2QCxHLV4wGVD2b_-dZ4S23OgAZrMoGZC4rGWDoMx0TbvsEjYX07dcc9HMdLfbby7yGuoM4_9LMjLSIWK4fKU_AuP9aCyk_BPONoXmC_jxIQrxw1ATiBc4aEron3TBSDuBoUUbWIEySay106i-kLlzK2Z221LdQ",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8654190,
+ "lng" : 151.1943840
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "19cdf89322aa1fc3523c583a74a27645b11430e8",
+ "name" : "Channel Seven",
+ "reference" : "CnRlAAAAhIzdNEO_fko6h3hPcSDDM_QecX3Jnj-zoicHkkr6gVN1wo9D1-e8J1tBDD4hyFY7fpPbFF0qWvgYyjBV38J_W3-aOtEUGuesR6c9veMQgWiygKVQZxA-qe5LltHr02V9kFMxoPHHixWQacBHg7YqWxIQvb6X8YBS0sMDGVIZbg3RjhoUrnLPoRKZdqj35RssJuHt-GFmd_k",
+ "types" : [ "establishment" ],
+ "vicinity" : "Pirrama Road, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "d559b2e8e491212130cf17c4d0ac595c72b3931f",
+ "name" : "Avis",
+ "reference" : "CmRbAAAAe9oXgd3dr6eEygS5ldF5QZ6lG_qnLAZeyodRcJFIk8DRbZL8l4vLcykS_4844PSvAQCSecBFePVEi_xWQjw4ryz5ggbOZ0bwR-vuIwZHO_-HdNj0fzrbZJAUr_jvr0GHEhAE4gtBrlW2wgjPIM7lqRc8GhT4F8dhaujdWpEpLiPSp651_dzZcw",
+ "types" : [ "car_rental", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "ca11a8721d7fa06d9ed6ce80c7e49af70f440fd8",
+ "name" : "Lotus Pond",
+ "reference" : "CnRiAAAAOJFR-UPThJaNemfod1V2zmXcvDI5bc9mNgp36Kn_p2aVTxvkb_wSPQvCu-EQfb2y6akFWz98uzdJFxkkuEgaWctLV9tFcN0wTNLLWTaUIoZP9uKNxYGga9EeeD_sDm0YxZV6b8MSuDNhwVD2c7vUbxIQiNpb8szvbmcgENh4T-gR9xoUGeaMn89qtYDucck4zv2_X4QDJZA",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8670520,
+ "lng" : 151.1957360
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "3ef986cd56bb3408bc1cf394f3dad9657c1d30f6",
+ "name" : "Doltone House - Darling Island Wharf",
+ "reference" : "CoQBfAAAAAkW3A-9KEoKPT1KlUqRKPaGF1c2RF1S1raBfTU8h1wwJ1r3OvPzI6PHLNWPunjm6TEnmmWJTCNwUlrrYR5_dU-GXq3MTheckRFnV35_p9BYpKCQ0ezSvGgr5QBuz5mcgYUHSnXrWFr-ADhGb6GBCK3AV6aLGFd4IUKLROLq_-moEhBcpIt6RUhATjPiUouhv6mBGhQWpoe09JdX5Zsdua-Q629hmw7AjQ",
+ "types" : [ "establishment" ],
+ "vicinity" : "Pirrama Road, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8681980,
+ "lng" : 151.1945840
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "ba9494fbebdb7e40f9a646aab93379212763195c",
+ "name" : "Fat Noodle",
+ "reference" : "CnRhAAAART0UhVbLuMPsY6tm671WtROyEddUiODE1X_JQU7IW4_GPS9DhmW7L8lxkJ8037lUtpZaQpmRr6O_NqQxC3JRrBJUI2hQGBRbFOu5mYsjTCIqhASzKqcvWSfd6cHvJvtl8RT0C2Od5AyfInpgELUhkRIQQyh1MUVOM8nX0HziLXtoJRoURseeUwb4vwtAFWJT6rt-VaNA97Y",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8676090,
+ "lng" : 151.1936860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "00060cf64f16375913ec49d25cbb7829d3e08a88",
+ "name" : "Blue Eye Dragon",
+ "reference" : "CnRmAAAAijMtu3nEBnm3nFFeCraBiC7CCCrQfTsQYZXp-v94D3iSrLODID4iepZasCkhkUf6WJSTKBrLkjpgYq-17vgCsUSzWdwe_oVSBjmVb5Qvz3Kg0fY71nuD83rVV4tECqSUIUAH-w-paxJFry-cVAPEVxIQg4vJL5wR3ZisKEZQiACuTxoUtFLYkLrqJyYXphLcbCA2Tb5yVGY",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8676180,
+ "lng" : 151.1940940
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/barber-71.png",
+ "id" : "3463e262449aeda2b3f1e899a2178fcd42d2c7fe",
+ "name" : "Star Spa and Salon",
+ "reference" : "CnRqAAAAPIOqV2BSzFw1wN_y2pGffVDMbJrq2bLfFjHy8705M3LVrs8KOh3TYrkL_Xa1k2Qo_NeGVNzZRvpLa06NFF3gsxSj1SFXZrOhFjf8Z4mJlIC1RDiw-DqWg0EzgGnWMo_0AfFwEcoMOMaHx1ziJ9oKcxIQ6g93KNFqoUoiaF8LqzNDwRoU7kN1bMeFZYDELCdj4KVklbkeJ-o",
+ "types" : [ "beauty_salon", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "372b98902d4032b2708939131b8bc6bfbce9044c",
+ "name" : "Chao Praya City",
+ "reference" : "CnRnAAAAQ0QGzknc1q2OLCJ5qz2IlRYYuhQe23kH6aWa_vD1Lod6T1ZSLk9-r-K5e2xw05czDttBbIQTJgvakMgavwosnrJcvJw1unFe5w2jfbzRMU1pdD5v0tV4hbpQPo_lTnnd4WDPhw75LVp9qF1wve5QIhIQI3lNxsdq3tojkCIm5NVhmRoU7jdM2Q5afPTrU1RlA5dGNAY5RqA",
+ "types" : [ "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8653280,
+ "lng" : 151.1943190
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "151958c1816f1ce7f4c8022325792513fba50743",
+ "name" : "Kookaburra Sailing School",
+ "reference" : "CoQBcQAAAOVBZTqdRlvFKmWJMAtgkOeG2bbl2O39BMj6KRzMbL71DSETe3vY3ca1OXRefKwJLiVGUE-YYzBLE1h7mVMykISO8bAAOY1gCe3buXoGjgCZcOdeUPhvhGHBuy6wBLk3Xv9zj1NjKivas5SsDx63cRtOjalMfn-0QS7z6h0-DJ4ZEhDtOquJexzgQIpIymb2P2g_GhSaGKjFPRbS3ydTpLT-ZxNcjdzGuw",
+ "types" : [ "school", "establishment" ],
+ "vicinity" : "Pirrama Road, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.85171490,
+ "lng" : 151.19664440
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/geocode-71.png",
+ "id" : "8dbf2c11a8cca5b1457b442e05d006a21969ce22",
+ "name" : "Port Jackson",
+ "reference" : "CnRtAAAArPCpYDXPINtGtfOmFW0oAMfs5zF1uZMwuG_gYe95Dr1hWKk2TMFNz0b0KY3oUcbd_96PzONX_f046nmPRcbAltIW0_9OgWIW1Fixu1euh8U8tJoWtxh2RydBntJVm0Oml-rleOJBhqKXc_uFmx9sTBIQ8CL7PUqMafVvj0B6DQCZExoUfnREKaHqgVFmwNV3wFAuzkO5chc",
+ "types" : [ "locality", "political" ]
+ }
+ ],
+ "status" : "OK"
+ }
+
+ http_version: "1.1"
View
516 spec/vcr_cassettes/list_spots_with_multiple_types.yml
@@ -257,3 +257,519 @@
}
http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction
+ request: !ruby/struct:VCR::Request
+ method: :get
+ uri: https://maps.googleapis.com:443/maps/api/place/search/json?location=-33.8670522%2C151.1957362&radius=200&sensor=false&key=AIzaSyCLMybjdDnmUhhLcfangpJnjT3b-AkSyIs&types=food%7Cestablishment
+ body:
+ headers:
+ response: !ruby/struct:VCR::Response
+ status: !ruby/struct:VCR::ResponseStatus
+ code: 200
+ message: OK
+ headers:
+ content-type:
+ - application/json; charset=UTF-8
+ vary:
+ - Accept-Language
+ date:
+ - Thu, 02 Jun 2011 22:02:10 GMT
+ server:
+ - mafe
+ cache-control:
+ - private
+ x-xss-protection:
+ - 1; mode=block
+ body: |
+ {
+ "html_attributions" : [
+ "Listings by \u003ca href=\"http://www.yellowpages.com.au/\"\u003eYellow Pages\u003c/a\u003e"
+ ],
+ "results" : [
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8667010,
+ "lng" : 151.1973990
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "dd030d236b8ccdc525f7a40893eb492f8fc5d55d",
+ "name" : "Ripples at Sydney Wharf",
+ "reference" : "CnRtAAAAvfiMhYJLwbfaTP7a4qMwL-7_EBPl3i4Daq5Wu0QGaoQ5MxSoD_RpeShZkySa3-Teh5d6irtUSRGjoMmlb2VjWtaTdOLs9JO5Wp974ugka6G-gRL6z8pgzBwjwEBxWH7fvimxI6R1ZmMaOA9cACPYSRIQ73sqiw7hpv3oTivcMbS44RoUUa1445y1LHeXIGvnAX7xCdeW_1s",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pirrama Road, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8665470,
+ "lng" : 151.1959410
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "4d716a646c32978aa12d1057dcf9f503a20195c0",
+ "name" : "Signorelli Gastronomia",
+ "reference" : "CnRtAAAAjrEEUTwlfvVU_Btmj3KYW62DlW5JTkB7WO9yptRkb7T0D8ArekDxmeTxYUFTMdn-c1aVt7SqvZXmi9lzhv5XMZEQCPw17OZVMIExndEGmRLtYliJ3-MltNeZdd70NEG7qFWBB0tDv3x6FeOo93CiSxIQc0bEYFgUnwN7rAKF-jjUBxoUlkCSmXb5YQU6fHzTeKi4MlCxg9M",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Trouton Place, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "bceeb9b6d5ac2f9f2573bbed9e1b3240f1fd0e12",
+ "name" : "Astral",
+ "reference" : "CmRdAAAAUoilc4va7kCwE7fv0gUvGMjRT9L_oZ6mbMzu6JXufu4CJ6ecDK194RxyUnqDK9R1Y_VnGUDrYq2S-5CouN-eXK0FaBm47aMGxicsMi9318U7ijVvUCRVQRefGdF1mUNkEhDbR6Avk3qLG2zglAmKRqJRGhSvYjMpmsH7jpbZrZmDru-J5G7Yrw",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "eaf5d4b14ebeae84df661e1f6d593259abac83d4",
+ "name" : "Garden Buffet",
+ "reference" : "CnRkAAAAQCn7DDzgVJqLdD59c6q7xSAID1xRzLphUauDma0_UyvT1ndhwiU4eqWSySj8a6tPSI8cP40E2vS6iNlt18Oa9dOuUBU9qwnFWSPl6JE0SivTdxmQ3_kNjGUoSo7avRfTkHTULvI00jB_C75UNXeH7RIQQ_QxXpNkdAMmrzXQfSK0DxoUGW59__1boqgcujms1Dg5ef9jofo",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "88751426b87d7072ea1acf98f35695d02985addb",
+ "name" : "Seans Kitchen",
+ "reference" : "CnRjAAAASQ5VYtJg2fI8ek8IRkEp2zOSgk70_adD3GIWYEFHIZZqs9KAKmNIPP6_ZhH4pplfbKfGMJ2ov61rOztfT6z8pqBOBQvF06CmwJoRda-bCZ_IBLoFJDOvQVKEAwgKeVvxL9uTiYqDEen2wmY2LfCbbRIQa45COv1lX2J1t-pcn3QZJhoUkqPc9vIeLzEBTafEVe1MEdTDMDo",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "ca11a8721d7fa06d9ed6ce80c7e49af70f440fd8",
+ "name" : "Lotus Pond",
+ "reference" : "CnRhAAAAZRsG6cshzoqgYRjTxY2_H4nGM-zbfFugrD-ZdZ70uefc7mt8FxanZzjuGCrSpLONdGxxb03Zi7KT7h0P63OH9-jaN3p2A-lNgsVP17eEkuG_Vo1G-QZw5tnzH8v3HAomCN1PF8_h6XGh0iVbzzeFRhIQGaJQSy1mDn7Hx9WXz2UyZBoUy46AVD_eosGDfOzv-3_e84z57Yk",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8681980,
+ "lng" : 151.1945840
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "ba9494fbebdb7e40f9a646aab93379212763195c",
+ "name" : "Fat Noodle",
+ "reference" : "CmRgAAAAoUo9eREPZLyvK0QnfjQJQ4JlOpPYapXN38mFqNRUMHu9bv8nNPNwKtvOx4ipE8cDuA559nSgcDxYemjXiKFcY962wUSfHeahMsEudgXOsyGS5qkgQ77Ugt5pRV64-B4AEhDJkKfYc4w2RqEWEkUwSmfHGhQMX9lxxF1ZlU3cO3AUcAxf-s0UqA",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8676090,
+ "lng" : 151.1936860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "00060cf64f16375913ec49d25cbb7829d3e08a88",
+ "name" : "Blue Eye Dragon",
+ "reference" : "CnRlAAAAwbWrHXsyeiyO_W9LCiNwOC7QDyldzA2yfZlJjKOCnyiDzt4VdydMB0s7QgIYMZuke9Maxb2ItZaxIR7OXAkGONnXdWlM09QCkpS7YZWGhc07ksFBXiR0_lR_YBesm3B5Q9EbKhT6-413ycYFPS2b-xIQI7uO8tHpkxNKsMKJ8edl4xoUzQJK85izQJuGSHJQOW1bo9Hf5FI",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "c59ee010f131efcf1cd728c05ef73215319e52f0",
+ "name" : "Bite Me Burger",
+ "reference" : "CnRkAAAAS-ATvqE-DBZUuR3W5q7mYD1gEOkZN-RG5OOE-0-BjRChV9kAaQurqqm4TlhNzt9fEhGiiJRFtibiwPzRQiBUkja7Ac4ePbUGzKKD7onEQwYDgvbJxnT5pZbGpGIytWw7UTkYGMizKby6V1JwVTe25hIQmDD_1AoQ3vr5bPOtuPUgHBoUGvlSX_q8VDHKfrGovyA1ihRPaTg",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "1cff0e870245b692f2a2524c70eddf8ed685d044",
+ "name" : "Bistro 80",
+ "reference" : "CmRfAAAA0sDfY7hAvPS8O8bO7OvTzD0H8q6DQZO1uT1T6caHndQm6Cb-AtMGUnIJKVhUgtbMcKgE8BkuilILtc6hxEImzMgrSEgAI-EF8ox7_mJCCvwuJEVG1gu6UMRjRSXlg3LUEhCieutUmeGQp-7UpZT73Yx3GhQf61B4jSdNfFrR020Yk6afJW_RwQ",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8654590,
+ "lng" : 151.194270
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "593abee4346bf8c91f0c24bddd1b379d34fbbbfe",
+ "name" : "Om Thai Restaurant - Jones Bay Wharf",
+ "reference" : "CoQBewAAAOeRnccfI0qHRsjbZ9Hb0Nxm8REN0SNQkGXykMo368OIrj_oaedKH1Rsb6czv7ImwGiyYDccZyaA_cqodVbEs20Xh5-znUAi1oJ0KKQgJnhUinsE7192quId7W-jSk7jyuxJ4BOAxXFGFvUB0KOV2c4C4kjwf-XYicpGeZBO8TujEhB1ZbsufD9zebcarigyevbkGhSveduQ_tyifljSCjAnnBCxvYbZ5w",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8664150,
+ "lng" : 151.1945890
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "7501fca2fd726963a0f5b79f8e86a8006b48f968",
+ "name" : "Astoria Sydney",
+ "reference" : "CnRlAAAAqmEkrkrUktPxJRZ9WQJPGnP1k4gUgL4ZKDF_ZVhfs6vjxz8AVBRvgktXGUk-geL_tIzIMF9YikWJUZ0gL6WQRVg6_OrYP9TKt2TEm7vT5R0iDVVFOmHsBne6IRR_-lKgisuuY2Nn6sr9QX5XBGy8phIQMUH9iySnFq3KW_EgoS4OuBoUMmy6x_PE7ySC8bFonNIouJTxDsQ",
+ "types" : [ "cafe", "food", "establishment" ],
+ "vicinity" : "Jones Bay Rd, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "f5c3d0274cdfb53d6ae956d09c945508f661faf9",
+ "name" : "New Zealand Natural",
+ "reference" : "CnRqAAAAGZ-s92OPFA12XSAX992YNGSiCgJY7ShfBb97kRNjCCYE5mK_Gw2J7MaIhJGyZR90DwrO_cuf-fq_reX0U3U4hSfshdZn9Q4ERev5GJWX8dC0Ksm2XrNmBYEWMNpD5qPhfXwDTaVYrZLbc9Cct7UmxRIQKiHaJJlHcH0gdXiev2mGChoUSAMe5s3E3xLVH6ApqCHsB4PTM7g",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8654260,
+ "lng" : 151.193510
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "e4852f29324edef0ee320e5572068587086d63c1",
+ "name" : "West End Coffee Lounge & Restaurant",
+ "reference" : "CoQBeQAAANxyb9xLe0koWUVWtNlk5kt21jUwPt6s4417FQ8HysKx4Q2K74eztkhj9e88NKDxdRdYfpBnfv5olr4wotBt4Yhq5m7dNmIaCI33oGqpfUhGzMpP9mvfJkHK_TH8L8hDJ2eC0B6uTgCzbfCZIBW-OhZPH8PR4pCPM6LYQSSZc_YdEhBWD2JW-hswaxwCM-zpxUooGhRccSrUPocjIGX0a9JQqpTgZs4PVw",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : ""
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8667530,
+ "lng" : 151.193870
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "b003876738d1eee1af732a41d772cdb857af4f81",
+ "name" : "Sydney Mini Mart",
+ "reference" : "CnRmAAAAG77PCnkU0UETspMZl6iAnN2FsKpeY3m4ARwtsxypXHa_h1OkUJhs25SO6M8uHja7gqeul_lKOvFbilt6oqI3TK0J1e9kqL2yeFq-KdW8zi6mjQCmUkC9-vn5GKGgSuwxuS2Tim8-QBXDQ4ezp2PjTBIQ1c-j4Iq2LbyzZ3VT9nO2mRoU8iSqY3HpkUhDDsdjpn8KffSkM7w",
+ "types" : [ "food", "store", "establishment" ],
+ "vicinity" : "Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "73b494bfcecf335ded0577d0adf36bb9f09298e8",
+ "name" : "Rocket Bar & Caffe",
+ "reference" : "CnRoAAAAtEA8oFK0XODRHbPj4rH1TIE-OzT05pOna9dHuBW8yXq99LUlnf_6KDPrL4GSY0BIgbDCafr802m_IrLPIzkPODljdgMtVg1hD8BbTgBDRto1RaRPssi5hYe61xXcWrd2CChRGguepTsp3W9rlyzKthIQ0jLcC4tPHaC_qP2YteRasRoU9o7S55AcsU-LVkITxT_WqQKDkDc",
+ "types" : [ "cafe", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ }
+ ],
+ "status" : "OK"
+ }
+
+ http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction
+ request: !ruby/struct:VCR::Request
+ method: :get
+ uri: https://maps.googleapis.com:443/maps/api/place/search/json?location=-33.8670522%2C151.1957362&radius=200&sensor=false&key=AIzaSyCLMybjdDnmUhhLcfangpJnjT3b-AkSyIs&name=&types=food%7Cestablishment
+ body:
+ headers:
+ response: !ruby/struct:VCR::Response
+ status: !ruby/struct:VCR::ResponseStatus
+ code: 200
+ message: OK
+ headers:
+ content-type:
+ - application/json; charset=UTF-8
+ vary:
+ - Accept-Language
+ date:
+ - Thu, 02 Jun 2011 22:17:21 GMT
+ server:
+ - mafe
+ cache-control:
+ - private
+ x-xss-protection:
+ - 1; mode=block
+ body: |
+ {
+ "html_attributions" : [
+ "Listings by \u003ca href=\"http://www.yellowpages.com.au/\"\u003eYellow Pages\u003c/a\u003e"
+ ],
+ "results" : [
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8667010,
+ "lng" : 151.1973990
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "dd030d236b8ccdc525f7a40893eb492f8fc5d55d",
+ "name" : "Ripples at Sydney Wharf",
+ "reference" : "CnRtAAAAnFYJGFd7yA61FalpeY8j2Dwvlvt3RUx-xfdjEx-bYN4RSwvmnQrzcV8Dvk7dCoAyAlHWER1LVX5t3sa39Bkt6hJnH4nmDzti570mp8_DFER_J-MRzvK54WC7_iDiHB7hcIhqUB4I0c9B-hd5t_Kk4hIQejcHO3XoCSab-1PPff_17xoUbyTL31R_MCpYG8Czr7Qz5L9GHKU",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pirrama Road, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8665470,
+ "lng" : 151.1959410
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "4d716a646c32978aa12d1057dcf9f503a20195c0",
+ "name" : "Signorelli Gastronomia",
+ "reference" : "CnRtAAAAlbUuaTkW-ckLUhVG0c8yUe_ec_MCmyA8PvKv3_Zj_uOzIFcL7uWHqFvigg7DUhPMPnneF13pZsQKJGXp-FelVFqMZ7xyEgkYv9-US-kf9sLowvCJ1ozuZtU4RpGI9QaRj4Q2MxGT__9lF6kcSUA8AxIQ7zCN9VFr1515_TBGFdyQXhoUZmNKSQ7WmTMqyisnXGzb6Gf-Nwo",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Trouton Place, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "bceeb9b6d5ac2f9f2573bbed9e1b3240f1fd0e12",
+ "name" : "Astral",
+ "reference" : "CmRdAAAAJhfCRH1gvcjhL-Pb_-k-H9kNze5x3qeNw7v65ss0Ep2QNFvxurFAqn8vFXpn2JfLuJVNLqdRiAbxQlz7Ob65w4zqXoOE5Vy6PjOaBKjan0SVWlE4GIiJFJrrE4JAmhCTEhDwyrGokPX6pW8QqX5zeEjcGhQ47Ywqbbbudt-Nj1ieW3lkJ-_7yw",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "eaf5d4b14ebeae84df661e1f6d593259abac83d4",
+ "name" : "Garden Buffet",
+ "reference" : "CnRkAAAA4j_dm5QgjkuxMyQbpFq3i4OGydWyxS-HCInBxRdMNbPk45ig8LSBg6CJ2g0p4tVb3woQUBovNW2KcwAWg25EYzXMVRu4ajzeDH9swOR8ljc6xiVQSv3ZKgpVfUz54p8Li0U0BQnW9bM47ZQ0N4VZpBIQ0aqeCjvRYIdWhkduOe81fhoUNmp-yph5ucMaUxsDArXTEx03_Ms",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "88751426b87d7072ea1acf98f35695d02985addb",
+ "name" : "Seans Kitchen",
+ "reference" : "CnRjAAAAC2AmcfbHbdpx1DNCw0Y3mjD8qvTGBvxv8f-WVCc-C5YjclV0T77dQIeIO_xzrvYqijOItB8COQbvVh7Xb6bISth2wOxajOZTF0Q5B7XeZanRyqOeFUcof6qCro-RsjrhRTgfdUo9yuBtKNZcyZ2iJxIQjGM4zH2zIE1cdkd8cYc5xxoUMLTkRQ8pIqqAu7jMMshsWsu-YIc",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "ca11a8721d7fa06d9ed6ce80c7e49af70f440fd8",
+ "name" : "Lotus Pond",
+ "reference" : "CnRhAAAAwkveHiaDoU7YrmljshxUBLy98KcoxVcF7xDIR7VkNKkwb02qWsXMd3MbBjSp46IyuU8vNz9DtWctTNchhrppuQuI4zGFnosAy8OQ8pSs03ATNoufLUS9rUFs9a_qjjdcyOX79bAUTCdKqMwDkW8SZhIQGjS2fiKM0PqJySCiY8A47RoUzb1UR8XS7EGfVoYgcs46qAfk0hw",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8681980,
+ "lng" : 151.1945840
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "ba9494fbebdb7e40f9a646aab93379212763195c",
+ "name" : "Fat Noodle",
+ "reference" : "CmRgAAAA4400RejXCU-lagSD670lPrwg0cawAoY2uI3B4imwzggCVbSNGUPm03inIJDnaWpdCd6chvbOPY0PVVIwukZY9FIs7aQzVneilWuYvCa0GpHL9Ut_btHJxlOWbgAe0NlMEhDj4ZxP-DORd0ZPymdbwZEEGhQKpC1v7-ONVDHuCBdS204HONvV_A",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8676090,
+ "lng" : 151.1936860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "00060cf64f16375913ec49d25cbb7829d3e08a88",
+ "name" : "Blue Eye Dragon",
+ "reference" : "CnRlAAAA4OfwkUESp9w9HR7g-xYmZZ5rxmBhAmDK3ou3n0kYK_l68K4qWzCYlDKMxnsH_P4qFdqychInrGFfpoOdvb7Vnq9W0txWlUqHiq6-9o10XLZhtey4DoS_BMUrZDgdwiGysKbCj759mI9zoefesQ0ALBIQ-m0KgQ1mw6NDJ230J7ke9hoUMZWDp8JQPNC8MThFTzrouRhNtLI",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "c59ee010f131efcf1cd728c05ef73215319e52f0",
+ "name" : "Bite Me Burger",
+ "reference" : "CnRkAAAAortzUvS1LCIFru2f0AXjvtOWQPznZYaqEtagArmhfZGdD0VXWfkFTPIgzhqNtkeB-JVs7CgSbcwA3uV3_v2pkGJcd123C5sIMQuve9RR5RK3mdUgs1DVhJhNoWVQeqat2UaMmauFj0cuaJSurXbrPxIQrqoi-GjBA-Z0T4vbx9k5xhoUDURcJZti2sPge6iYKrCPnRr3zeI",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "1cff0e870245b692f2a2524c70eddf8ed685d044",
+ "name" : "Bistro 80",
+ "reference" : "CmRfAAAAbYHElWOxQ_73A3s7H-joZhgYyHVvwNuJgyA2fKyw_4o6Fnlgh-zMoMpeW3ogLKY17nU6bwvnnWr8DTz0TgOXOGQth4AOo22Z_I4Q3qM-dXTV5nDI64eurQv6SLLulYS4EhBI44TcNm1xPNMxdCS_VBCbGhRmB-VV3h0S8NgIfC0-hvilz8UtOA",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8654590,
+ "lng" : 151.194270
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "593abee4346bf8c91f0c24bddd1b379d34fbbbfe",
+ "name" : "Om Thai Restaurant - Jones Bay Wharf",
+ "reference" : "CoQBewAAAPTzapb3HraME34Ah63UyEf_PtK0mL7Vf3Xh0kKRmShwLcRw1ExWfUn_zEmzXGAGhlF4RI123yL09oS6KRNIXx3UFvQJvNIXvWIiJPs_U43ImJIjlJC0uFzsT56CcyySs5WCoa4ac_Q7DHTJg3VFQI8YKnrVo8QNP2cZT-3b0bjqEhAX2VCXBISP37OlLITaW-ZKGhRjymMqt7uq80PQK0IXXk5ZJMt88w",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8664150,
+ "lng" : 151.1945890
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "7501fca2fd726963a0f5b79f8e86a8006b48f968",
+ "name" : "Astoria Sydney",
+ "reference" : "CnRlAAAAOFRCwaHC7h-g7VvMEAll0nElogPg3nFqpFtpHm6sUs8gK-s4Tj-MgKOsDrKofNkmTnnQGd5Lujh8Wn1rnUHjHtWU-e_loVFOrRIYJc_FyPQpBm9MsC0Xglgp5zOVPw2AsWiWwGk0X9QvZCo29fcmyBIQdZZlBBz7kukI5Tb5O77-oRoUpbXqABY6CPX3T3xb24hqSdOe3Hg",
+ "types" : [ "cafe", "food", "establishment" ],
+ "vicinity" : "Jones Bay Rd, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "f5c3d0274cdfb53d6ae956d09c945508f661faf9",
+ "name" : "New Zealand Natural",
+ "reference" : "CnRqAAAA8Xm6sc5Ia_PDVv_qXB0avDyawx2qgly_ZpV3DESdn0IN5cYTN3MkuvGWzbb_8zjfkXMGDQ0PjvqCLJlKlk2qKZ6LlECz5UrQwmZZ48ZUCEJnWSLU5PYwdMJKgjLCfRqnDjIzVAfWC-_7KaZUqLl-SBIQw2G-GM9pFiggIGflgKvBUhoUSwGAREOCEvFD_5goCVBXPKYfUSY",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8654260,
+ "lng" : 151.193510
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "e4852f29324edef0ee320e5572068587086d63c1",
+ "name" : "West End Coffee Lounge & Restaurant",
+ "reference" : "CoQBeQAAAPk7Fi64QVma8yhTZl2irUyvzwlljZghYwm2aZw8fmv1jY0gvBMzuumVXJudgRbG_oyz-aTj4o0h5Jvc81mdp2hQKXADtgKOb_DH30Vx0IrWayTHsCgnURFOZsRoVWlumrbXBtnjBPMaGKqwXNL1sDyXGstkzGm7clNfSyRF8ysfEhCkq1tYawHdDDyUeWlqwA26GhS5YrtAfYfyHodHWDdpRsAR0NZO8A",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : ""
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8667530,
+ "lng" : 151.193870
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "b003876738d1eee1af732a41d772cdb857af4f81",
+ "name" : "Sydney Mini Mart",
+ "reference" : "CnRmAAAAgdlZgY2NfdQhl8yW203rduWuuAzEZ_mBxZ0tFzi8_gNc4OTA1kuLrUPwehpX9hP9r6NHwDJSfMGT_u6vYaAcV_1McGF87Zx1M16clBsSAhR2tD4KJGNCXxVkjJqTBP5dY0MG2vKPpEh42uvB_7C2YhIQI0_w43oS554ryYXeDAWQWhoUFH6CTpzpqONs_iT8Yuf9D_FhkbY",
+ "types" : [ "food", "store", "establishment" ],
+ "vicinity" : "Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86820,
+ "lng" : 151.1945860
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "73b494bfcecf335ded0577d0adf36bb9f09298e8",
+ "name" : "Rocket Bar & Caffe",
+ "reference" : "CnRoAAAA1eVoBqhqeogRpufEpYqb38sTWnU5KO2wWaK0XDugBQUGLxxy3Sv9SZxE3NPOp5MiXaLgjV_gNCMLWbUWpYzgzxOURpOC74_oa39iYDH8beoveRJ28qs2srNYiTcxc0GXCf2Mi-QEYvMsl0Zny0mkQRIQ_EtjJSMv0iVw-iDSLxTAvRoUHeeITnPx5adSv68c46r7d0YS1GQ",
+ "types" : [ "cafe", "food", "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ }
+ ],
+ "status" : "OK"
+ }
+
+ http_version: "1.1"
View
315 spec/vcr_cassettes/list_spots_with_name.yml
@@ -0,0 +1,315 @@
+---
+- !ruby/struct:VCR::HTTPInteraction
+ request: !ruby/struct:VCR::Request
+ method: :get
+ uri: https://maps.googleapis.com:443/maps/api/place/search/json?location=-33.8670522%2C151.1957362&radius=200&sensor=false&key=AIzaSyCLMybjdDnmUhhLcfangpJnjT3b-AkSyIs&name=italian
+ body:
+ headers:
+ response: !ruby/struct:VCR::Response
+ status: !ruby/struct:VCR::ResponseStatus
+ code: 200
+ message: OK
+ headers:
+ content-type:
+ - application/json; charset=UTF-8
+ vary:
+ - Accept-Language
+ date:
+ - Thu, 02 Jun 2011 22:17:21 GMT
+ server:
+ - mafe
+ cache-control:
+ - private
+ x-xss-protection:
+ - 1; mode=block
+ body: |
+ {
+ "html_attributions" : [
+ "Listings by \u003ca href=\"http://www.yellowpages.com.au/\"\u003eYellow Pages\u003c/a\u003e"
+ ],
+ "results" : [
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86976600000001,
+ "lng" : 151.1948640
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "97f233524ac260f0862f599d0ddfe75a2d4402af",
+ "name" : "Talentino's Italian Restaurant",
+ "reference" : "CoQBdQAAAKqtytHFrBsFxjD3AM0O8UUc3BHY6dwsNCUivspg8P7dEVg5JMwMy7sk8J4ZD6xMe9gSsRgKS42t1g6LaYLJdfBSopi3Z5oGZJrEyUclpTvWlj02oHxLFcDRH97hoMTMch1ZL_mp0vW_Fec_KXh-3_hR_b-WB8Cx6NWX0z86ErO_EhDlHoIC_NB-wTpRdf1-EOShGhSppCZ84O0fM6ysvzoMM7eeWDcYsg",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Union Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8669770,
+ "lng" : 151.2012720
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "4789044d6351a19d6100ec77c35e70c9f1a13403",
+ "name" : "Casa Di Nico Italian Restaurant",
+ "reference" : "CoQBdgAAAECUvVycFk4lDN1CaVXyOTH6RpagUebL0AICb0o0HjhmRUnHJaTmsYRCtGHrbA5l2ZUKZ2gtnyo7i4_zJ9pTP774b1LY6hFCfFXBih6Au7-7u1hS8Tb6PsEfOg8gZyYssuNGap9tpEcNR5Ztpw9G13ZEbp9vVB6PKsH69_EGeV-8EhAxjrxC22e55lO2vf4UxRMUGhQgRtLwDfLJ9SRkLo3ntC__MpWFgg",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Sydney"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8710340,
+ "lng" : 151.1962070
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "6481253508cbc119313027e200e8837d750c00c6",
+ "name" : "Libiamo Italian Restaurant",
+ "reference" : "CoQBcQAAAKN6Sgkzlh20fDLR0wvjmxIsXlsDPs7m3KTwP_yRqQ-J4kD7x_Z4FuKgF7IlSorE644PfI3sRqxKboxNgmaUqFAVA1aINzIzjhm8LbyxcvK3Djc7Q5PinhMwKUzRgcabWj8pPi2Ku88J6yF7BlEwxKyLfBFENYHpR_1N4I81XAU-EhDm0wqSPQJ3buSTB432x6h0GhR13n8Ch-TBITXziaAtjFkhGRdScA",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Bunn St, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8666280,
+ "lng" : 151.1922910
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "954a594077141a5f37fa1fb4340988bada9a93f0",
+ "name" : "Raffinato Italian Restaurant",
+ "reference" : "CoQBdAAAAPjCfAtvpcgWjZBI8hNBYoOZbt_2iVyZ6niz-IIaWlYTs8B7ZooNpc8ItAib04YrMnCxl6w_iVaj1sI-8dqN9j12T8tmLHw7LUp0QlsYC2orD5Ro75sy1k4T5xCBBzykO4jhNvFjwAkjYikhslGac9wWPmVhJf8ndaTp_4AAzXwqEhDHlGyNIxZzmps2Dclwbhg-GhRh-df_YFItClX0tGTXIXe_Vi_oHw",
+ "types" : [ "establishment" ],
+ "vicinity" : "Harris Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.871180,
+ "lng" : 151.1959450
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "56f95e7c803125fb84bc8e91ed4adb71ee8bfc3c",
+ "name" : "Zeffirelli Italian Restaurant",
+ "reference" : "CoQBdQAAAPdEF6-omkN5-fAO_lLgtvoQiTHd9a88ZS5I4X633PASHUfC9aUPcquwynuPLztFIks-M3DfqmyXHN5NxW7kV3GCY5QqK6ef5z5cagYS0c-nzMCCLAYu5bM5JqzC6ergprukcZbYFAIjO-CN58ubO8sXGhHvMMpUnuebYWLIvMyUEhDZ6lvrZd_vfn0gg9TC1oCJGhS0ElAlJBPhg0MsilG1p_9dB4dEnA",
+ "types" : [ "establishment" ],
+ "vicinity" : "Pyrmont Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8705940,
+ "lng" : 151.2057780
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "67d5dd2c676b39ce36cc0978e84fff1b3f0f02a3",
+ "name" : "Italian Chamber of Commerce in Aust",
+ "reference" : "CoQBewAAAFZ-NYNtUoI95WI59uXathXfzUzZP5rNksNlf2iODmbin1k1dyKYIqtH71xHpA9jDgds2gdC9H1mFP0ctTjW09yCJrRiiy4h8_0lHgrvLfz9C5N1fYgq_12fvnThkQDMksIuVQdkCjZUCZLY76HYyRj-5h9pvuIfiv5ufKFMuQP6EhBTLYpO0MBAVKGFtHj9UWkTGhSfUsec1M0HiKcGnuN7gsvkP_MXpw",
+ "types" : [ "establishment" ],
+ "vicinity" : "Market Street, Sydney"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8681670,
+ "lng" : 151.2076320
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "373601f6514769adf4061cdce642d6b8a0648bdd",
+ "name" : "Intermezzo Italian Restaurant",
+ "reference" : "CoQBdAAAAIUZU5w41EQMwFnw1VFttx3bTOfCm0t8VY-kEqw9znSSdHDjQWn046NZ0BhDDXI2qSMrYeK3a0MzGYN7qMsmWvuwnU1ouB48pqM4xbCoRKMgWsTgz7vW2pYWYN3sPNOuCzTl2eZoQvoVBkV8H_oTrv-O9s9WSwbW0cnVpTBh_G3wEhAmshPAQxvZRGhpx0RljV6yGhQddqnd-aK3PFzpHeNfzXqwz8bp8g",
+ "types" : [ "establishment" ],
+ "vicinity" : "Martin Place, Sydney"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8707630,
+ "lng" : 151.2064490
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "6fd9d991538cfb81035bcbce9c39d6987c603db8",
+ "name" : "Italian Government Tourist Office",
+ "reference" : "CoQBeQAAABGFS_s8dg-9tEpFukARn6uwp9IRdMkp6uVx1GKRhI809SD5COZe7x7xRXOVdmqZOIBx0cVe1GrOcO59tKxf2535FPL0sSbfie4_vPAtNStMQtLX6WlMTomCADhsknVcyFroAPO_ccoBqZ2L-mlLFGWZyFQt3NuPg8l2MhQhG_LXEhA2Ghz5XCmkujhEOPtBLT3FGhRNwW9dHJdXHF3tnhcb7z869HuIiA",
+ "types" : [ "establishment" ],
+ "vicinity" : "Market Street, Sydney"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8624870,
+ "lng" : 151.2094260
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "e18dd0d80c53e48bc479afe565d0718f25876e5e",
+ "name" : "Alfredo Authentic Italian Restaurant",
+ "reference" : "CoQBfAAAAHK5Y-lIv6cfx35oiGKAIVpv7a_Rslcp64MI2n0jGF4EyCCyOeo4mOJTUGC2_4W7Mte2hQhPPsbOfLLicBj2mE3HEAPOmi3WUEmEuvACzepfF599umod4Uv6IPXNGceSg-FLakNEDc7f8xetFmhKBD8xcH688JjkMZXtoJfSDpLDEhCjF1U9XjQzUyfiYYeZXGQqGhTb3bGqCc_wswuIFbhHRcrAfgJQqg",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Bulletin Place, Circular Quay, Sydney"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.869360,
+ "lng" : 151.207120
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "eaeaeca1f05368781bf4b97e8d6a0ac30364f9e3",
+ "name" : "The Olive Italian Food Bar",
+ "reference" : "CoQBcQAAAAX7qNisIzKlilXh73RicABRMPpYKU652MGIHXlFahjM_PgmLJ85hmFtcivb3bBCCNzEPONwRLDcvq0fWPKCLfiaeyuFKQWuZvMgRYzVjkjQxMCNSFJ-To2Hc7VB-tsQ75aav5duTr8qRuGemKyGzC_1aMby1oOegTuaVt3OjAocEhAFtJd5pd7a9S0JcYGwpkBRGhRhnCmVqBV0lpKIqfGD0RyIbWvHNA",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Sydney"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8585580,
+ "lng" : 151.2082920
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "68283f977228dc856ad6927fc3fbad7d58658f29",
+ "name" : "Caminetto Italian Restaurant",
+ "reference" : "CoQBcwAAAJ1LOR9FfE0Y9BNCSZ8am7jAZeKiJbvSWJqC3B4ohEwDmOMsRB14E93pBln2_ROgCFdQf3tCe-uKu-LmC-5acqnJBZk_nbVCjdjQcODEIF8nYPDW2azfZi3eqKORc2cym0T2HZyIJ-EgFWto-c4HNYJjvwx2Ss9ED0-DIW4bmsJCEhC3H-8SaeNtif2laN8I3nj4GhS2JAJ4Hk3bpcmji7H6_bfQkVJYqg",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Playfair Street, Sydney"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8572870,
+ "lng" : 151.2098430
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "19c6eb009c25f6d3fb04f6f3e92b74f140c667f5",
+ "name" : "Italian Village",
+ "reference" : "CnRmAAAA8m-QOwWczt2BsT1LBxWExHgNOXszMzz4GdwKrA8LlJVrGl3Oj-pvjF5vJeiEGKxdJN8sdCOI8bfiwKHAmR3Fv28-kGvzze3C6emDtf2N497MSnWoF29NyYhnhodwQimmj1nUTRO8VEk6VFyKIwnt3RIQMAH6M6Ypxa3JFPbL3iktxxoUYZKaqm-Iv_sfSg8eRSPZTsZMOaQ",
+ "types" : [ "establishment" ],
+ "vicinity" : "Circular Quay W, Sydney"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8627190,
+ "lng" : 151.2102840
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/government-71.png",
+ "id" : "edb263d74ca07238fbcfbe51b54f842fb9378e16",
+ "name" : "Italian Consulate General",
+ "reference" : "CnRwAAAA-46ewjaf3pP9qtxMomoso1rBGYpJOP_VWOR_IMtwWApC7rpoEw4LzAzVDn5Y6b63j6YdwtsIVA4TheivBL56WSB-xvrS5Hokqf1pbaI7fkBWLR8KWnEDay0wqFvK63U0pArtONeGx-MnNyXwjymgYhIQFow8om96acGiURj6_sxX1RoUoz9FbjOQuIehEssQUMYogDq9l1w",
+ "types" : [ "embassy", "establishment" ],
+ "vicinity" : "Macquarie Place, Circular Quay, Sydney"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8621010,
+ "lng" : 151.2097290
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "0693a0294b5eecb55f53a3f8d977278b1c3df039",
+ "name" : "Italian Cultural Institute, Sydney",
+ "reference" : "CoQBegAAAGIcB7orKcj1lPEsTJecEApIfPQUn-st6AHMRd5DHYmNVkiQaOyuhzhU0v2Fu5tzFTKJbokF71ajRUd-2LajO5GsH_CXfsGRY087K5h6vfGziRi0ZFZ4X588XfUCD4Pive-a_HjGehZegFYIh_kwXGn905cL9VdEtCndZ7nTsH5GEhCzD9uWq7H_W3eiXPjozV5IGhTu4GhJm9h9OgKPk9HfOuQGEwGvxQ",
+ "types" : [ "school", "establishment" ],
+ "vicinity" : "Macquarie Place, Circular Quay, Sydney"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8698280,
+ "lng" : 151.2101770
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "7fdb61425f78bb612b470283658c8ca94133b520",
+ "name" : "Campari Italian Restaurant",
+ "reference" : "CoQBcgAAAHa6QHPwbKsI8-Ir8FbVeeYDya8GnJxXh_XjEwS4u6nesAr3C_dWy4Rau_UiFc-FO-kTaMcHGkxMX744JVuFlOTjA9R1sU_pi5N0MpE9MGKMqIk89WBWSXX7yfbzl1UrMm--hDPpBE218csyuUqfFlEevJ2YjIrHEZfgZj_SpjbEEhCLRH4MYubG_9voFo0ryanjGhRapX1xI-mxMSU9Kec9gBpjzgVHrg",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Elizabeth Street, Sydney"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.874450,
+ "lng" : 151.2083420
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "ca910ff6818784511a67696feb992d804a475220",
+ "name" : "Antonio Verago the Italian Tailor by Hejda",
+ "reference" : "CpQBggAAAGyI1EEkuo8KKChcn8ozDwvSXNf_cPMpp321qXH67-25XYTGRBIwrXkODc3P5Lkqy8e0aPRERxJQwR0QPp6M6ljnoiPO48LD0QBgBj11TzSbFQu-p05BlMUFMtq6tr6kgkptYQfrdwili9t0jaSNjhsGB7TiKlKsGtPHzwNEFkJMIvBfCiROLAktzkRWX_4p-RIQXRvW_2_8kKQqEgev22hcfRoUjlwv6KJAZRF3Lg23EpxID5DZDao",
+ "types" : [ "establishment" ],
+ "vicinity" : "Bathurst Street, Sydney"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.87940,
+ "lng" : 151.1959380
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
+ "id" : "40b71f2937a97f9d562d8472c6cfbee5e64d4895",
+ "name" : "R & D Italian Jewellery",
+ "reference" : "CnRuAAAAzwRBvGTqrorLU-TH-3KvQAVuGIADKkvzGmheig4Kku3K58kNTPZeq85NvbZVJwunHzpVYp9dDY5cXZjFWPuQR1zcjiMHSUPRd8IqWkLabKVp5qEpAXW6JUXGzv7ksKC10Ax_2onU6PuVK-L8RQN73RIQJU7Ty7rKUrnM4E-VjJpPaBoUlUH8bkO19Pj6GF1zmHQpsX8TyZg",
+ "types" : [ "establishment" ],
+ "vicinity" : "Wattle Street, Ultimo"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8664080,
+ "lng" : 151.2116690
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/shopping-71.png",
+ "id" : "65e1b40227e792feb1991f7ccf7dad64b469ff82",
+ "name" : "Manzzini Italian Menswear",
+ "reference" : "CoQBcQAAAB3ukz-A-HCmKH74zMiitSOHbJea6GcZdekbINhjNDwDQND20rLV_D9Z9CnYkf1hTYuqKlknZumO38evLkD018BLOk2fiBcu1mYrWudKr6gmEPuPpr8dsw1vdOYfC6LSFXAMkfcqb6pjcUvsDcF_nFpbZJ1jKVldy-pCyK-v_rOREhDQQv9g1NP99VvjUz-yDI3sGhSik57uxdeFIHWWELIbze9Vm0bBAw",
+ "types" : [ "clothing_store", "store", "establishment" ],
+ "vicinity" : "Chifley Square, Sydney"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.87559299999999,
+ "lng" : 151.2148490
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "7f5384c5752235c08fee21082fe9bf44cfb1e2f8",
+ "name" : "Italian Restaurant Giardinetto",
+ "reference" : "CoQBdQAAAL5L3Sy3P1b5vBXwmEQlahxkmQ6muw83qS5UcqkJ04Zmg0JkWoi5AdbRcUov6VFTna2Ue2XDt7clvdYbXZBndz4tLMgjXbm92iLXrdQOZ8pv2Z4SrFahHEzIQwBFx_CojJ0P1szqPc8WyH7oRJsC4ZNJ8Y_VM1ZbwHouM6TgLLrnEhBBkxkPxO0n12zaoyqokLJxGhTlK8U9mWFfRDyWYxo4eVIm7dWekQ",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Stanley Street, Darlinghurst"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8769540,
+ "lng" : 151.2136970
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "445034ac27fafd2fcc708f7f5a2206b63b5aa729",
+ "name" : "La Pesa Trattoria Italian Restaurant",
+ "reference" : "CoQBewAAABvkbdceOlBgBYPdQGyZMcC01R5IJfymmqTdI7L4MQyAvDQho0CpBJAh4NGQpyuZXZxOOZxTUmBGtWUG7pjO1wIFb5d_bbPT2RZAyQpsDCQgEZ3wxT5ufyC695JxXAFljhBdYVdGMgMU92wQZ8Mg_UA8E8E_DlxMJjRLg1GKm1awEhBR7rhSo8VwU7GKGm-77YY6GhQRMfmm4kQEFF6xUFqU3OeflDrkFg",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "- 174 Liverpool Street Darlinghurst, Sydney"
+ }
+ ],
+ "status" : "OK"
+ }
+
+ http_version: "1.1"
View
315 spec/vcr_cassettes/list_spots_with_name_and_types.yml
@@ -0,0 +1,315 @@
+---
+- !ruby/struct:VCR::HTTPInteraction
+ request: !ruby/struct:VCR::Request
+ method: :get
+ uri: https://maps.googleapis.com:443/maps/api/place/search/json?location=-33.8670522%2C151.1957362&radius=200&sensor=false&key=AIzaSyCLMybjdDnmUhhLcfangpJnjT3b-AkSyIs&name=italian&types=food%7Cestablishment
+ body:
+ headers:
+ response: !ruby/struct:VCR::Response
+ status: !ruby/struct:VCR::ResponseStatus
+ code: 200
+ message: OK
+ headers:
+ content-type:
+ - application/json; charset=UTF-8
+ vary:
+ - Accept-Language
+ date:
+ - Thu, 02 Jun 2011 22:27:33 GMT
+ server:
+ - mafe
+ cache-control:
+ - private
+ x-xss-protection:
+ - 1; mode=block
+ body: |
+ {
+ "html_attributions" : [
+ "Listings by \u003ca href=\"http://www.yellowpages.com.au/\"\u003eYellow Pages\u003c/a\u003e"
+ ],
+ "results" : [
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.86976600000001,
+ "lng" : 151.1948640
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "97f233524ac260f0862f599d0ddfe75a2d4402af",
+ "name" : "Talentino's Italian Restaurant",
+ "reference" : "CoQBdQAAAKlLTON9i0qmM6ag2G5MtHgJDyWX3vp-eJQNESIRTXZIQ5svYI7tioxA79wqOhulsMbMe5kNTfaUJSZkc5C7vgWn7DIhIEhQEip_0ZKazl3dpJSWHITSR3YNt9AVh0-SMzjfaFNaQ4a77NOkB77tMtSQ8CNCoMTGZJBp1f3ekkAOEhAlaGu0bpXroBlZeWwPnI3ZGhS7QFrg_wX-Bz-3--nKqtbSR2H9Sw",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Union Street, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8669770,
+ "lng" : 151.2012720
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "4789044d6351a19d6100ec77c35e70c9f1a13403",
+ "name" : "Casa Di Nico Italian Restaurant",
+ "reference" : "CoQBdgAAAHkO03r3xS-hdlBCp7k0Ov82UtOY_S4rXjLCgonoDJJyD2PD2GTPaLpaRa-fo3auIevH9TajZJuUIH1BecR7flTnf22HUWnMfp231hPqmWtreH_7B6IaTtYTCE6x5DzKW8iEVHBJUL3yoUwDFYc8vSI2WMBi4nNAd_wwPPcTpwUiEhBNEStrof_U66v6GxzgrzP3GhROVi1olYF5tkyXjCByPWRoVxsGQQ",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Sydney"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8710340,
+ "lng" : 151.1962070
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "6481253508cbc119313027e200e8837d750c00c6",
+ "name" : "Libiamo Italian Restaurant",
+ "reference" : "CoQBcQAAAHn67N7ldfZFaBX7zJIAOcA2v6hAnX80fM96w0_FCxYvP_NIHiUeAscHRXbe2VGS9qB1d1Lo5a_c_w7Tw2ld6FITx460-dNw-NFJ0ASzNlAU2Bp_6OQsAdSz_gyFbGOgq1m3KsDR8eHdWKjTA4ZlIeFLyvZh9v9hIn81bdecIlRXEhDGe2YS69Q3oDF5wZJIKw_RGhRcJtmvo3TCwG3IIXWqGT2_qh-BHw",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Bunn St, Pyrmont"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8624870,
+ "lng" : 151.2094260
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "e18dd0d80c53e48bc479afe565d0718f25876e5e",
+ "name" : "Alfredo Authentic Italian Restaurant",
+ "reference" : "CoQBfAAAADsjLMnBYUZoH57TR8LqelmwfEuZX8JAxtRzmYN3iNVyZQVxAuhqn5NCmPFlw0vWPgIwhskHmgaISIdhAKMD6RbHZ22_csuMKZk08XLtEZNJWJWbfY7DGM8LAMWSsALJlH2qNTQCsQy6xgVWy65sjuoJ0FsJ2t21U-6_KbfnAgFNEhAp-ZdARLXZU9LzjLaSHokIGhTsFMJj2at2GE8ZaRbpc-qm9JFmlg",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Bulletin Place, Circular Quay, Sydney"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.869360,
+ "lng" : 151.207120
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "eaeaeca1f05368781bf4b97e8d6a0ac30364f9e3",
+ "name" : "The Olive Italian Food Bar",
+ "reference" : "CoQBcQAAALEn4yKBfEPjouk2mVCxOjKpGmBQ3_whRLFWUQdc0WFcB5m_PbhDrJQwNo520xQL_KbMjfbl92Nl-8q0WwNmdoABtdjXqDnHcVCiqpWYi1KsezLd-pq41KDYaPmmfMjYPyXEWoQgrKDDO67HRon7aWn8usY4WaaqC8mJZTmfqRs4EhAOne1gdH_WodsJq_lxUC9ZGhT6Uetq5N6Gc-w9L3mSeGfsr1S_oQ",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Sydney"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8585580,
+ "lng" : 151.2082920
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "68283f977228dc856ad6927fc3fbad7d58658f29",
+ "name" : "Caminetto Italian Restaurant",
+ "reference" : "CoQBcwAAACCkPFjsWbIAuTrIEA6_rcvQulLLWrTPW-z9PO1010C0meq1SDdOhHUEILgmPNwg5jRFLfvibgvopghZU2BXMzm0DZjjzUEpqXJMiXqki6E2Z9sP3bmzfDshf-sHoxGohn3fWmi8OecWIrB8UM6pWZnOOZmG2iM4pL93V7wquoNrEhAoIrzMMr_cvWo2zNjEhLMwGhQEyPrkxmt3KH9V6-1UFBlyIoYIGQ",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Playfair Street, Sydney"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8698280,
+ "lng" : 151.2101770
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "7fdb61425f78bb612b470283658c8ca94133b520",
+ "name" : "Campari Italian Restaurant",
+ "reference" : "CoQBcgAAAN1Pzx9KjxwoLHJKfKbzxqqqANIaSlB4rcfeAfOJ-B-_JcRp6KjF9Q5f3NJFos4i8o0lFP4BpQJ_2TPvp9U588nKW_OsFrE6o5AVwxVx-gsr8nFAdWLnkCwtzzwlK2DmtTGIICslBVGnxFfS2bI6FFTjF60hO5VC9kepuqhazdrnEhAL3o2TXddZhXV55YiiHaI2GhQmy2zCc1pbEFZQgcwp_br1KSfZrw",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Elizabeth Street, Sydney"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8769540,
+ "lng" : 151.2136970
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "445034ac27fafd2fcc708f7f5a2206b63b5aa729",
+ "name" : "La Pesa Trattoria Italian Restaurant",
+ "reference" : "CoQBewAAAND3xPGLUNjpHz1EpaT3HyqGKyfdHcatY3U633CzPa2GYhpFQOLZPE6Mx7yGDeHT1-hCx7pvP0llhrUdaPRjwkQsQ3a5NlO-iZ7eShv2QoLRT49fkgnouxim3dmcjJFBragr7s4JFC7ELYkB7lQ_nSkNvsASVvjzhY9Mp6tbbg4TEhDamuMvtGg9v_zbzgUr6AwyGhRtCzZ6NQHzpHGbdiaHckniCTHRtQ",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "- 174 Liverpool Street Darlinghurst, Sydney"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8783770,
+ "lng" : 151.2148130
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "e377168e309c7d67cefe5cb7b58c4d96a7d10cb4",
+ "name" : "Burton Italian Restaurant",
+ "reference" : "CoQBcQAAAIfxY3o9HsBgI0cvifBPBmDtHe6wo2FGYkBwF16ARpSkpnZZ2H8fdrnyovEugxsI_eIt4EmGpz6T3_LKVuWso2MaTTtFCXFFpkORB_3or6rVYv4ivGxHmFgESx1A1xA3lXP3RvG2vGNOeJfFAJ8tvHdMmKCEVEvdv85SaMcyT0XGEhDQPjc9c2-thDG9Hk7oX5rxGhQSK63num8yoBQezSeBVSvatUFpkQ",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Burton Street, Sydney"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.85689900000001,
+ "lng" : 151.1788540
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "23172925549339f524dd27349724ea759bb1e6b2",
+ "name" : "Il Cortile Italian Restaurant",
+ "reference" : "CoQBdQAAALYy3dB_MWbk-83uydRx1ewr4JUqWCA7Ri5IeK-RXre-zCxHZvs7_hgWslzPtNhJNg12UzvtbmgQ7qWsd0_IVTIVWNdhDKKL9gBIGFHCTJX_K3MFuRnY4Aj3P4qGQogV367lIdAcydjBV_RUC-kGM3EnOw2XCfDbp5GKoazmepzhEhAgWJ6KX7LF7qWCj4GQG8bGGhQ0g4Z9AujGhnxhaB1EXfaxfZfuKw",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Darling Street, Balmain"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8733440,
+ "lng" : 151.222370
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "492b97a40c696d7e34ca753b7977cd7d59dc47da",
+ "name" : "Bootleg Bar & Italian Food",
+ "reference" : "CoQBcgAAAHWpKcN0eguGkCdNtqLNZYhMJJwQA39fJj6c8P0kutoXHNsbFW5TfTuft2y1A3aabWSOgbYVWdnTBSWbaM1P9WwSztdmVcvjf9NWPWd1Hi0ZIUYoajNnWY6cyuoEMqw4hPhiOgXoYjh_96xmqiPzkNrCW5ZqZ_2jVnYJG31oraZ-EhCwHvOnUZrTlsPpqh-4ZLH4GhS9ZesUOhvl00EmTkdsT4MIuWc7xA",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Victoria Street, Potts Point"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8446260,
+ "lng" : 151.2045350
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "2b572ea8ec00f5ab10d774efca77360e3dfcbcdc",
+ "name" : "Giuseppe's Italian Restaurant",
+ "reference" : "CoQBdQAAAPzCecX7zSPECEQPaKzAw4NAQex28e6sO_D9eA-ESsz4uErdz4Ctd-GvPa8IcwOrTiEg8q6rhkrRBFTBdFjgUqGPc6eMor4OiOautzrW8PE8iEi-uKDVcEhSlQ9h0-JTZx7s6urlTT8XglkW0sVtK7tMvW2Wm1K-0aS6zjf1Do9vEhCOWb5nao3bkIUSXB1KzzUyGhRaF41q0eUIruHf9NeoizXXxtMrHQ",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Blues Point Rd, McMahons Point"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8661940,
+ "lng" : 151.1735190
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "f902ebba26bc5e6cfd43955bf808351a9d72b5b5",
+ "name" : "George's Italian Restaurant",
+ "reference" : "CoQBcgAAAHoFKJpWi4auB7raFV49p4dPcmKEgzXshcxA8aAo2fER3mKvK0RtGxjs6NyMWqmZIVd3ioPKIYw7k1bdNDhz824ia1Me6DWHXUNwK2MOzwYnYtVUlvPXDEdYZ0Kh0g9pO7Wg8cMS0UWDoLlA7lSw50eOfro8ScvVS6NbZrdELzbnEhBu1ub00l3J34Kdq6gv0B7AGhQuK_ZUsD9l6dJQlMQummuxj5qupw",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Victoria Road, Rozelle"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8886950,
+ "lng" : 151.2134760
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "f46c4715213ee0fefead8a5786cffef329299781",
+ "name" : "Essenza Italian",
+ "reference" : "CnRnAAAASiKX91WNX18CcThaG8i2pIzme6TBJalcFrzi-crzUpb2ePU12ISDE1LG59Go8ecqXAsHczhXORrIKydcHAIPW42HhMvjDCgyQnabBYQ4FLRpGiSKU-d0x5imnl0UYSgLqXVJhfNGxN4ztluCvPJJIxIQGhb93Il7sgVamSIYzyCDAxoUWCHbhIZq5lQc1m5rf6epo9Cda8c",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Crown Street, Surry Hills"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8764240,
+ "lng" : 151.2278090
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "701352c95bca6a809acc108f4d7d957345b8c5e5",
+ "name" : "Elvis Pizza Italian Restaurant",
+ "reference" : "CoQBdQAAALA22KAr5fsvngzHJsliiWU-Xfwr7eQ0fS5e9pi8khRa1mFAfWlPzHjFIrpYk7vT4vCRS_VyLn1LMNw7QNgUIi4WdpmuTRxdfe3DxGxVRwiswdaT0XkM9l-XGziKfBHr0f4cc18nXR_urPmuzP_UX2MdY-Ov1sqkcKHc7Sr4zE0dEhD9jbvFbFOsGhL6INJi0EwXGhS5EnlnGZ4e1V37INNxFchVinG5yg",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Bayswater Road, Rushcutters Bay"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8926570,
+ "lng" : 151.1868540
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "801641ff108d790392e04f466bf5ff327596a2ac",
+ "name" : "Rosalina Italian Restaurant",
+ "reference" : "CoQBcgAAAAGpUMRqiRUpMehcYwgR5x4iftHVnVlLSk3y1B0NFmseeafawK2fqiNv0vDa404i1jWxa9NGTl4EzcI7ITytrA527vzz7GD0rNjq9Sw0ELNV02KDICPpWhjfodY7L3hRhQDJiXjFOdADxvaPXjAlpwibZXPqasu12gpg_eSk5FzBEhACEixsv6ayQ2iZDc_CTUH0GhQ19Rb2RJEA5AoxfsGhhgEViN7chg",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Crnr of King St and Queen St, Newtown"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8578640,
+ "lng" : 151.1830590
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "2037407e814bc8e15eb3f451d155b7cd8b7520f9",
+ "name" : "Gigis Italian Restaurant",
+ "reference" : "CnRvAAAA53vDur89mS4VaGg4CK2nBON0BxGqb8TYWk_Uw4eZ6cYORUVCntpWzOW-1JNRD2thgmg73lkByAXlbVEsAkvDplY-iHqfc6dcg_CHnuIlKvLWbq-XalJShLxnS6CCpj4MIeS61-CPD_XAQXqTazc9ZhIQZo_hwlf5hsqiBNI8prGxChoUNzWe8aBaduFLoZRLD492sXLCBu4",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Darling Street, Balmain"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8349760,
+ "lng" : 151.2075190
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "acba3a2e6be05c3b464957197fedf1f00dde0ea3",
+ "name" : "L'Incontro Italian Restaurant",
+ "reference" : "CoQBdQAAACd_J4Bzt4dCJDBz35AkhVl0n6xMOaGqaLxIcPowu_Yd8IqLjs1SIQF_BIN77SncWBuKnLHlEGuBaE4dSlmc0d7t87_KECvbeUf5uPfM2vSXHd6pFL1TlwtN_s1OZ6K8O0OM9wrSyG9XNkPnr2WydXsKq5I5z0ETuHRnIIv7PLwYEhC-9olrekfuDEh7taJnCdaXGhQw4B3o2YbXPrwmwVO4UWXzDragmA",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Miller Street, North Sydney"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.895340,
+ "lng" : 151.1820020
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "a341c9ea53f282d4db59034d039869df685833fd",
+ "name" : "Cicciolina Italian Restaurant",
+ "reference" : "CoQBdAAAAIQoduC1cJPwD-kZ3DtlB1Txtrka2crqO4bA_dDhh06YB1_9qTVugT7U64Rz9yj4A-N3eCKcIXejw0uDK8CMGLSJr6NQNPDQBV2pqwo1ds34yrjZlerJcdUWK-9Yp1KtcGsOxREEe7iA0lFjBBtZh_t43JQ78BvhiGr9LnWML_yVEhA_rK8i5jcCtpVThTZgkDRUGhTwZeTbh0NQQ8ugSL6ClG8X-gHnNw",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "King Street, Newtown"
+ },
+ {
+ "geometry" : {
+ "location" : {
+ "lat" : -33.8849440,
+ "lng" : 151.2328710
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
+ "id" : "63044134624be8cc1a87c0f62eda15383a86d7b5",
+ "name" : "Lucio's Italian Restaurant",
+ "reference" : "CoQBcQAAAEOOhvpInkZjvvXXf79OOWb_pr5SOryjDv_LXOTiK1_94zMMoeq1cagbZ0XgQwaoVxOF6z_E2fbEQJ5DNZipYHKaz6DV_gTqlJ8utIxq9HpYp5P0B4Q17nyzXjKe5oIFO4yPpUajC_UbspWVPUhhraycACEf2RxdjFY6dpRuqomiEhBB9tTP7GVOlOMYFcYhOEVkGhRq39TaTLUlmDL8kuyt3HzEOXB3HA",
+ "types" : [ "restaurant", "food", "establishment" ],
+ "vicinity" : "Windsor Street, Paddington"
+ }
+ ],
+ "status" : "OK"
+ }
+
+ http_version: "1.1"
View
18 spec/vcr_cassettes/list_spots_with_single_type.yml
@@ -2,7 +2,7 @@
- !ruby/struct:VCR::HTTPInteraction
request: !ruby/struct:VCR::Request
method: :get
- uri: https://maps.googleapis.com:443/maps/api/place/search/json?radius=200&types=cafe&sensor=false&key=AIzaSyATGBjcfrRXQtNEMMyt8Fw7tSGEY8PQwv0&location=-33.8670522%2C151.1957362
+ uri: https://maps.googleapis.com:443/maps/api/place/search/json?location=-33.8670522%2C151.1957362&radius=200&sensor=false&key=AIzaSyCLMybjdDnmUhhLcfangpJnjT3b-AkSyIs&name=&types=cafe
body:
headers:
response: !ruby/struct:VCR::Response
@@ -12,16 +12,16 @@
headers:
content-type:
- application/json; charset=UTF-8
- x-xss-protection:
- - 1; mode=block
+ vary:
+ - Accept-Language
+ date:
+ - Thu, 02 Jun 2011 22:27:32 GMT
server:
- mafe
- date:
- - Thu, 02 Jun 2011 08:19:54 GMT
cache-control:
- private
- vary:
- - Accept-Language
+ x-xss-protection:
+ - 1; mode=block
body: |
{
"html_attributions" : [
@@ -38,7 +38,7 @@
"icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
"id" : "7501fca2fd726963a0f5b79f8e86a8006b48f968",
"name" : "Astoria Sydney",
- "reference" : "CnRlAAAAb1fPUhtVK1ujQ1dl394vvVYlIPlo_BekOM3uEl43FQnCLeUvaX-kB9DCJ4LGP6h3gxq76CCf49SuLQJzMa6xzy0Udr_LrZqM4I5YaWur5ISJE6i1GBdP_mtT__Qg9FC83sqoOz8fG9F1wNVG_3WpHhIQot1jW3fzVKeMzW85NMSkKxoUPXrnYLZg9tobWfTBMYYK1IXSsHE",
+ "reference" : "CnRlAAAAUm7iOEE0895DTNbkg6PWO8P9Xpy8vjp4EoaD7od6AWEE_zsmhz9YlXVvwo_Z1_5CxO5eY1Yk3BGuG8n8UPTqzjmj-vo0SLxvtfXdIcZf42Q5IP-crlwQzRHNF1Q8NggvjY39_ARj3F1XZ_cwzLsLUxIQROBDzdtRK5qLDIj5d5eQ4BoUYYGQdAxCTAXXl2xWpZW-yE3ixFc",
"types" : [ "cafe", "food", "establishment" ],
"vicinity" : "Jones Bay Rd, Pyrmont"
},
@@ -52,7 +52,7 @@
"icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png",
"id" : "73b494bfcecf335ded0577d0adf36bb9f09298e8",
"name" : "Rocket Bar & Caffe",
- "reference" : "CnRoAAAAAJY-qpBHZr5Sq8RaBFTeP0oSinif5WWwSIBMA5DZZw-Zx59pgPZdjQtjrmzCh2DHNoEqBztVr-e076yF3KmAhzs9mWLKtorP6bnaxhbejPe4i4SFJdfTMdY_1n97htvHuX-S3DgiFk5ITtukl20d_hIQuaa5Ecd4jiziQXO7BEBHqBoUXGm3oI1fqeZtsP3ygq1udigo-Hc",
+ "reference" : "CnRoAAAARCfC1ddezZL4U19PBcvtW81p4wGR-3EeO66XUfMfKiio87FXtLdSW3jb5vmoq3MWQqRynAMMZb6j2TtpfmGsdFSph9huxpUMKkJW-dFO4-7vNguNbvCdLwumOMxD_VsiSByGsxzvOvmDuoXPKqcLshIQ8ydSBcNF6l1hmL1b40QOUhoUMyUKNiHJgczyRdlEXPrt0S1YQzw",
"types" : [ "cafe", "food", "establishment" ],
"vicinity" : "Pyrmont Street, Pyrmont"
}
View
65 spec/vcr_cassettes/single_spot.yml
@@ -64,3 +64,68 @@
}
http_version: "1.1"
+- !ruby/struct:VCR::HTTPInteraction
+ request: !ruby/struct:VCR::Request
+ method: :get
+ uri: https://maps.googleapis.com:443/maps/api/place/details/json?reference=CoQBeAAAAO-prCRp9Atcj_rvavsLyv-DnxbGkw8QyRZb6Srm6QHOcww6lqFhIs2c7Ie6fMg3PZ4PhicfJL7ZWlaHaLDTqmRisoTQQUn61WTcSXAAiCOzcm0JDBnafqrskSpFtNUgzGAOx29WGnWSP44jmjtioIsJN9ik8yjK7UxP4buAmMPVEhBXPiCfHXk1CQ6XRuQhpztsGhQU4U6-tWjTHcLSVzjbNxoiuihbaA&sensor=false&key=AIzaSyCLMybjdDnmUhhLcfangpJnjT3b-AkSyIs
+ body:
+ headers:
+ response: !ruby/struct:VCR::Response
+ status: !ruby/struct:VCR::ResponseStatus
+ code: 200
+ message: OK
+ headers:
+ content-type:
+ - application/json; charset=UTF-8
+ vary:
+ - Accept-Language
+ date:
+ - Thu, 02 Jun 2011 22:02:09 GMT
+ server:
+ - mafe
+ cache-control:
+ - private
+ x-xss-protection:
+ - 1; mode=block
+ body: |
+ {
+ "html_attributions" : [],
+ "result" : {
+ "address_components" : [
+ {
+ "long_name" : "Sydney",
+ "short_name" : "Sydney",
+ "types" : [ "locality", "political" ]
+ },
+ {
+ "long_name" : "NSW",
+ "short_name" : "NSW",
+ "types" : [ "administrative_area_level_1", "political" ]
+ },
+ {
+ "long_name" : "2000",
+ "short_name" : "2000",
+ "types" : [ "postal_code" ]
+ }
+ ],
+ "formatted_address" : "22 The Promenade, King Street Wharf, Sydney NSW, Australia",
+ "formatted_phone_number" : "(02) 9276 7100",
+ "geometry" : {
+ "location" : {
+ "lat" : -33.867290,
+ "lng" : 151.2016020
+ }
+ },
+ "icon" : "http://maps.gstatic.com/mapfiles/place_api/icons/bar-71.png",
+ "id" : "0a4e24c365f4bd70080f99bb80153c5ba3faced8",
+ "name" : "Strike Bowling Bar Darling Harbour",
+ "rating" : 3.0,
+ "reference" : "CoQBeAAAAAGj2cAGWfLDpkceNZHwDx1KY0TuvSTb1mOO_qHeswUIUsH6OMm40ol_u4WVnTZA8NWxroxh_xF_JHRHVldulZPfrIGANcj6llXZb9Hd0rMzROgh-3jAxGAl1bTGThTSA6BthTQqO8prHCnfW9yB8gfN_F9x_k5dr-wHOfhHt5_SEhDUlaqRxtRHNjY3YXCLPqy0GhQdwdWJeuXmUeJ9eeVt3LgFx-BVzg",
+ "types" : [ "bar", "establishment" ],
+ "url" : "http://maps.google.com/maps/place?cid=8959672613212618319",
+ "vicinity" : "Sydney"
+ },
+ "status" : "OK"
+ }
+
+ http_version: "1.1"

0 comments on commit 43f8206

Please sign in to comment.