Skip to content

Instantly share code, notes, and snippets.

@haibin
Created January 14, 2017 14:13
Show Gist options
  • Save haibin/20e01d38c10d4da9275439c549a2db91 to your computer and use it in GitHub Desktop.
Save haibin/20e01d38c10d4da9275439c549a2db91 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&location=1.2564%2C103.8189&rankby=distance&type=lodging
method: GET
response:
body: |
{
"html_attributions" : [],
"results" : [
{
"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" : "CoQBdwAAAHRMd1kNySYWpf7dGELBmVqEjR5ogg8vopGOPS0RbwJT4lKCsyWJn-OmNbb6U3gobviDBq1R_7Q4mOrlbVhIJYYGbZtEedjHv1AJ6NQjXLGm7JFGYNGVO375I97mlIS4ltsWuUp_OeUnDqQIlFUgG_0K1G9wLkHpYppIcSgOCLDLEhAXTNiym-RrWi3nyPw0o_rDGhQK22cKq57h5qLDZVGGbjZ7ybx41g",
"width" : 1024
}
],
"place_id" : "ChIJy2Y8yP0b2jERRemWlDVeTjQ",
"rating" : 4,
"reference" : "CmRRAAAAgZoZx7W1oU0SHyu3KGCi6iI5X-a-3PARcSZ-yg-aaPLLMTkgqZliK5mLl7mfg0RgIE0OVzOUa_I9M1fQtvu598G79e2hMIHcBdam3U43ppQKNwX0BOaWzDHNxsokViRREhBpCnFy7wM27UXATG2LRVt2GhSpGm5C1jR8MYGnAR4ehKBir_sdqg",
"scope" : "GOOGLE",
"types" : [ "lodging", "point_of_interest", "establishment" ],
"vicinity" : "8 Sentosa Gateway"
},
{
"geometry" : {
"location" : {
"lat" : 1.2577164,
"lng" : 103.8168105
}
},
"icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/lodging-71.png",
"id" : "a383316239d188adc7eeff868622feb3817a20a1",
"name" : "Equarius Hotel™",
"photos" : [
{
"height" : 1365,
"html_attributions" : [
"\u003ca href=\"https://maps.google.com/maps/contrib/115550642139509778581/photos\"\u003eBruce Chao\u003c/a\u003e"
],
"photo_reference" : "CoQBdwAAAOGmWD2LPFpeie4Y4Fr_Fv8dOpgWB-b9WuKv9kbo4IZ_K8tmR0zYmFt_AEHyM4dSo4pz4bKwJe000cSigaC8cam1GGdwuuQVC94hUMMZNZ0ZCnrOEXqUJxDlyx1wVFPUZlA8fqmFjNWHLZAIhitqQAXeQGX8VKLOrKzz2kJTN-8zEhBlZ3b0-iqxYGGL7L2BJ1RxGhSY36qg8xBecv0F1zklTJkdymdyxQ",
"width" : 2048
}
],
"place_id" : "ChIJRWwV3VgZ2jERQocSGmEbvAY",
"rating" : 4.3,
"reference" : "CmRRAAAA9g584e6HqJsCF0loouSuXNrPYDWnYNFFBu-DcfC3KR7x2RYBJKlKZgLXmzGe0cT1ffuQ-21qasq-lhKLzx6UgPo7qPrT-0HBJ1OBbdKiiT2Fewy5Ius4zLm_GqDHBtV6EhBO1D4G8xOKHxhJcqdTmuKgGhTzrKw3VlZyUrzQ1JED0Yy_looNbw",
"scope" : "GOOGLE",
"types" : [ "lodging", "point_of_interest", "establishment" ],
"vicinity" : "8 Sentosa Gateway"
},
{
"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" : "CoQBdwAAAHFEGo1c9lObqt1g3XXN-Bji1Pkk678lySP_Rk5AZbu9RW9mTncp3HUJKszwhY2YR5GUh7cUv7FddjNV9eZVDU7y2EUA059IJqwWnl106dZISEK-MKk3TrWOI3wkhRKZNZrbeO3c8TJ8-5nWv5cCw24gCEOa8uxQ_Z-4R9Y7PfpMEhCO-Xkk9ohmLF7b_MFYyOfGGhR5_XNCTjVkUWgY2Dnr87fclvJVSg",
"width" : 3136
}
],
"place_id" : "ChIJLR75v_0b2jERJrR28stYwMU",
"rating" : 4,
"reference" : "CmRSAAAAbjLpP6fPD0fljO98zDdWU2RaP50HZj-Px_vbjIuAHBkEDhToJfhdRz4ixnYO8c38KCw1dB7iz7TngKy_QeqtK21zCebZAIJ-mN12EcDnVo4HA-Swf5ne3_zhhF6Il4DIEhAV3vabKWUEBWmi32QotBnOGhRbFhd7OSh57pBUPnvMR-4woFuntA",
"scope" : "GOOGLE",
"types" : [ "aquarium", "casino", "lodging", "point_of_interest", "establishment" ],
"vicinity" : "8 Sentosa Gateway"
},
{
"geometry" : {
"location" : {
"lat" : 1.2593475,
"lng" : 103.8172037
}
},
"icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/generic_business-71.png",
"id" : "5df0be6f92300e703c07ac96c949b848841fa4fd",
"name" : "Beach Villas™ - Resorts World Sentosa",
"photos" : [
{
"height" : 370,
"html_attributions" : [
"\u003ca href=\"https://maps.google.com/maps/contrib/111971527657897487579/photos\"\u003eBeach Villas™ - Resorts World Sentosa\u003c/a\u003e"
],
"photo_reference" : "CoQBdwAAAHjquG8IFwaEvZwHbgGV9TmUKxqNjzm_jY8ecwf2hKUiFXneGwhzwUystht1xA_QB4lQ1AGwgFXOu9xpDGF83WfAsItsQk6Pp3q_F6EFonyaExTqjM6fA9ZdGedxTeu1dcpPOUI2gBMSgsWEdKIjOA7iuaL8tZrqRYcs8Z7pdDXnEhCi11vzZHLrSEBZUilBDuu3GhRySgXtAg7tpftqBJLjMygbmUg1xA",
"width" : 370
}
],
"place_id" : "ChIJnTehkP0b2jERlhQlqC00fKY",
"rating" : 4,
"reference" : "CmRSAAAAA9fNXD9wIPPe1HnaHGxcgh66Leczh0InOfXsmJn58lzS85WwiuPtC3_XeDva-RRH1uyE1kJ0uK97PZlsAvKs_-e9HhCOUCnggHbS2sABaJwP8yzoO8b2FghHIl1yrWdCEhAXzjqIxNZl3MykrcRoiNb1GhRE7ZyQrPJkxb1U7MvedE6zJ3f2yg",
"scope" : "GOOGLE",
"types" : [ "lodging", "point_of_interest", "establishment" ],
"vicinity" : "8 Sentosa Gateway, Resorts World Sentosa"
}
],
"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:
- Fri, 06 Jan 2017 09:59:30 GMT
Expires:
- Fri, 06 Jan 2017 10:04:30 GMT
Server:
- pablo
Vary:
- Accept-Language
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