Skip to content

Instantly share code, notes, and snippets.

@haibin
Created January 14, 2017 14:14
Show Gist options
  • Save haibin/b40e4952b7fddace78d6c37a19542a40 to your computer and use it in GitHub Desktop.
Save haibin/b40e4952b7fddace78d6c37a19542a40 to your computer and use it in GitHub Desktop.
---
version: 1
rwmutex: {}
interactions:
- request:
body: ""
form: {}
headers:
User-Agent:
- GoogleGeoApiClientGo/0.1
url: https://maps.googleapis.com/maps/api/place/nearbysearch/json?key=abc&keyword=Resorts+World+Sentosa+Equarius+8+Sentosa+Gateway&language=en&location=1.2564%2C103.8189&rankby=distance&type=lodging
method: GET
response:
body: |
{
"html_attributions" : [ "Listings by \u003ca href=\"http://www.openrice.com/\"\u003eOpenRice\u003c/a\u003e" ],
"results" : [
{
"geometry" : {
"location" : {
"lat" : 1.256294,
"lng" : 103.818985
}
},
"icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/lodging-71.png",
"id" : "8cc92d282da9385937921f0892d651d273e5f2dd",
"name" : "Festive Hotel™",
"opening_hours" : {
"open_now" : true,
"weekday_text" : []
},
"photos" : [
{
"height" : 3024,
"html_attributions" : [
"\u003ca href=\"https://maps.google.com/maps/contrib/113964909672435499888/photos\"\u003eC W Koh\u003c/a\u003e"
],
"photo_reference" : "CoQBdwAAADXphgDKf9pd8iEgXW7VM8u7ogiSXTuoIqgWVq2JpppNnWTTfO2k9Z-MKpQJ2adV_PVbqgMnRRN9HacAz_tYgOiRtCB2bMJOM5yIMuPj0Z31lViWBwViaUSZSJ4Z0UU7d84p_J3sB4Teo7g5ix2-bndFHvvyLs6GNCKwS7D4yLqZEhA7TVP-F0h05Iy-Rbas7MltGhRxGlQpsyFhOZzY_5oucyFsLwhGBw",
"width" : 4032
}
],
"place_id" : "ChIJRWwV3VgZ2jERccbBCEu6TTU",
"rating" : 4.3,
"reference" : "CmRRAAAA7t4ArZ9nPZHEWz6GDAXdzS6kb5c97J99I380ddhH-R4PmPEWx3FjIgwYIOhZmRXJs3wu0KOcYig5DYI9mZZdh9bCYXWWLb49kD_HJB5YqmiWUsyaFVSAbyhZWFBW1glCEhDV-E4DVZEYeK048WsoJqyiGhSdtYljTSt_JHDC_7EvL6HjfJPzIw",
"scope" : "GOOGLE",
"types" : [ "casino", "lodging", "point_of_interest", "establishment" ],
"vicinity" : "8 Sentosa Gateway, Festive Hotel"
},
{
"geometry" : {
"location" : {
"lat" : 1.2577913,
"lng" : 103.8189046
}
},
"icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/lodging-71.png",
"id" : "c7a28e544a4209de16bb719113103a34201f4ab5",
"name" : "Hard Rock Hotel",
"photos" : [
{
"height" : 658,
"html_attributions" : [
"\u003ca href=\"https://maps.google.com/maps/contrib/104480335925830901434/photos\"\u003eRonald WU\u003c/a\u003e"
],
"photo_reference" : "CoQBdwAAAE1Y_pUGjfx2eLuhKZ0W-NTJemmUhaOmNgh-4dkh703_mZX_Mm5Ja7laXPaD3T0wF3i9PB7FKTbUUXBi42TkRt39EmsdpricygSRqYGX1JKvpQw1jBDbw_M4nJH8ahk1lvc9Nc_sSunHnRzu70gMro1f7FQmAH2l5JGx1g88UkKeEhDmQlb7GMtZj3Os89q1G_IPGhRfmFc82tqzT7aBkKIRD0x41sHdyA",
"width" : 1024
}
],
"place_id" : "ChIJy2Y8yP0b2jERRemWlDVeTjQ",
"rating" : 4,
"reference" : "CmRRAAAAXiPSOmzIBxS5_iZWpzrq8Gt_LDMp3V-Xj1IpdnoNp81h0Eg46ymg2QvepHQxxStrbXcMwGn2n5aNvgGc2aP0id85G_ocJVLO6D1EZYfwlBHXuMMq33ow7qx2SGZJ4zy6EhAz6qmhvgqBqwpaCZjmvjjXGhTeCaASbG9002tWlwxW1GhnBvEnng",
"scope" : "GOOGLE",
"types" : [ "lodging", "point_of_interest", "establishment" ],
"vicinity" : "8 Sentosa Gateway"
},
{
"geometry" : {
"location" : {
"lat" : 1.257759,
"lng" : 103.816821
}
},
"icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/lodging-71.png",
"id" : "a383316239d188adc7eeff868622feb3817a20a1",
"name" : "Equarius Hotel™",
"opening_hours" : {
"open_now" : true,
"weekday_text" : []
},
"photos" : [
{
"height" : 1365,
"html_attributions" : [
"\u003ca href=\"https://maps.google.com/maps/contrib/115550642139509778581/photos\"\u003eBruce Chao\u003c/a\u003e"
],
"photo_reference" : "CoQBdwAAAGjLTHVRZt8ErA_laccBzNosaGsEm5FWN8eZuXStAlLbDTdZV38zJCgafEVzaMW2_5UHtduNSbtDDNoHmV1BtlseMr0-z0EEobXXeAh8COpP8h65nS3TGqYukdt6obLNDfwSRjHEamBIzyuj0UqH4zcq7tG1X7DhGdbZzaqarERuEhB_-yn-pGVztlymP0gHAjavGhS9Pgp8W78jkcjPjJl4Q5Evn4FzVA",
"width" : 2048
}
],
"place_id" : "ChIJRWwV3VgZ2jERQocSGmEbvAY",
"rating" : 4.3,
"reference" : "CmRRAAAAsXC0bsENcbrHX9mscqbIfQmsg64A7jEqqHManFmMFCKg9taGbc1q6T47w1tmddyfI4MhfmWlr6Uilfrson4qB0w7Vs99lkHCQ3nSYPLQhgSJYwpH7FqZavjr9pwlKSMCEhBC4sVGbHmLvxnWEBqXqz-UGhQRCxHtEAErdcJVDfi_lzT3OPToVw",
"scope" : "GOOGLE",
"types" : [ "spa", "lodging", "point_of_interest", "establishment" ],
"vicinity" : "8 Sentosa Gateway, Equarius Hotel"
},
{
"geometry" : {
"location" : {
"lat" : 1.255179,
"lng" : 103.8218107
},
"viewport" : {
"northeast" : {
"lat" : 1.2552088,
"lng" : 103.8233073
},
"southwest" : {
"lat" : 1.2550896,
"lng" : 103.8173209
}
}
},
"icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/lodging-71.png",
"id" : "1817036b228bb46c8cb262a2d457fe15edd0c871",
"name" : "Resorts World Sentosa",
"photos" : [
{
"height" : 1760,
"html_attributions" : [
"\u003ca href=\"https://maps.google.com/maps/contrib/116663691538768217651/photos\"\u003eJason Rey Araña\u003c/a\u003e"
],
"photo_reference" : "CoQBdwAAAAPuGD44CymYsIKHK6MZ5kAIFxZMPWcAO9rhZCCf2fwrshQ9TttQEdS25Z4nwVHfQHMydSUNDvIk4wI5tiyGot0Pxfm8viKNlGriXayuU-0DO3RYQ-8i-glhY4IYZRYGt1P8BKOnPNG4qXwsjmPWXvVfOmXYJznDWsK9DEqGTun7EhAMYzboIAYU0bmBkI2t39l0GhQR2stN_cPvywkrGRAUWxmU9D85-A",
"width" : 3136
}
],
"place_id" : "ChIJLR75v_0b2jERJrR28stYwMU",
"rating" : 4,
"reference" : "CmRSAAAAk8sPZfuNEkJXjgttSsna4hOtHDJ8V__EpiFMUVA1WTHGjFcUtOxgczfOuJ-vkuzA5LKewg176vs5rfosCm6R0thznAGjTUmW_eaLccdMDoxuL_PcaJG_UeAqdz8dfXzpEhAN8CLzGJ1xSjSqyLNB3oGQGhQyucfEcxDeHqEqDxDCREQWYjfB2Q",
"scope" : "GOOGLE",
"types" : [ "aquarium", "casino", "lodging", "point_of_interest", "establishment" ],
"vicinity" : "8 Sentosa Gateway"
},
{
"geometry" : {
"location" : {
"lat" : 1.2588203,
"lng" : 103.8150375
}
},
"icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/lodging-71.png",
"id" : "5df0be6f92300e703c07ac96c949b848841fa4fd",
"name" : "Beach Villas™ - Resorts World Sentosa",
"photos" : [
{
"height" : 1936,
"html_attributions" : [
"\u003ca href=\"https://maps.google.com/maps/contrib/107909047791963301910/photos\"\u003eAndy Chan\u003c/a\u003e"
],
"photo_reference" : "CoQBdwAAACGUx3iSAvL9cwIik7h41U38vD0Bz0BHdOtJz-V-wkdVxvgx5x5k22yK2dbxaXvF6uCM7y0MWtnW19ljtomoc7NQfdS1OlXiTVVMJ1ku2Ig8ltAsoJtLD3Tts7546zybBsmjBJd0aFjAInIkJetC5dci4p9SKNfQq1EIhFd5iaDvEhCv2jecn5doU7400pOs7QKMGhSfmGiGyaXkAj7A54qcxGrMRkG5jw",
"width" : 2592
}
],
"place_id" : "ChIJnTehkP0b2jERlhQlqC00fKY",
"rating" : 4,
"reference" : "CmRSAAAA_LPayoqqJIWNQ04QNNg1qJhFfxUhdSxbENJVy2p0YEzyHfpeINuRiQF0HT-HixNdpWaEZ_Se4TCjzulW1pq2t-d4aF52Ay9bA-E5gklxQt0Y67HeSe_ZSHyaZ4dbpAJ-EhAKq5CYhEGDVRTS45GM-YjsGhRqdIDCIerjpw8-UzASXPn_wAZrNg",
"scope" : "GOOGLE",
"types" : [ "lodging", "point_of_interest", "establishment" ],
"vicinity" : "8 Sentosa Gateway, Beach Villas"
}
],
"status" : "OK"
}
headers:
Alt-Svc:
- quic=":443"; ma=2592000; v="35,34"
Cache-Control:
- public, max-age=300
Content-Type:
- application/json; charset=UTF-8
Date:
- Wed, 11 Jan 2017 12:26:43 GMT
Expires:
- Wed, 11 Jan 2017 12:31:43 GMT
Server:
- pablo
X-Frame-Options:
- SAMEORIGIN
X-Xss-Protection:
- 1; mode=block
status: 200 OK
code: 200
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment