Skip to content

Instantly share code, notes, and snippets.

@letswritetw
Created July 15, 2019 02:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save letswritetw/54efdba7d93827aad119f1070ddec1e7 to your computer and use it in GitHub Desktop.
Save letswritetw/54efdba7d93827aad119f1070ddec1e7 to your computer and use it in GitHub Desktop.
google-map-api
var place = {
"address_components": [{
"long_name": "台灣",
"short_name": "TW",
"types": ["country", "political"]
}, {
"long_name": "信義區",
"short_name": "信義區",
"types": ["administrative_area_level_3", "political"]
}, {
"long_name": "台北市",
"short_name": "台北市",
"types": ["administrative_area_level_1", "political"]
}, {
"long_name": "110",
"short_name": "110",
"types": ["postal_code"]
}],
"adr_address": "<span class=\"postal-code\">110</span><span class=\"country-name\">台灣</span><span class=\"region\">台北市</span><span class=\"locality\">信義區</span>",
"formatted_address": "110台灣台北市信義區",
"geometry": {
"location": {
"lat": {
"_custom": {
"type": "function",
"display": "<span>ƒ</span> ()"
}
},
"lng": {
"_custom": {
"type": "function",
"display": "<span>ƒ</span> ()"
}
}
},
"viewport": {
"na": {
"j": 25.0369698197085,
"l": 25.0396677802915
},
"ga": {
"j": 121.56231486970853,
"l": 121.5650128302915
}
}
},
"icon": "https://maps.gstatic.com/mapfiles/place_api/icons/bus-71.png",
"id": "b29d8f020f2a15e18fa83c29773b025a99cfd79a",
"name": "市政府(市府)",
"photos": [{
"height": 3024,
"html_attributions": ["<a href=\"https://maps.google.com/maps/contrib/105127442512811355709/photos\">ajay wang</a>"],
"width": 4032,
"getUrl": {
"_custom": {
"type": "function",
"display": "<span>ƒ</span> (g)"
}
}
}, {
"height": 4912,
"html_attributions": ["<a href=\"https://maps.google.com/maps/contrib/114222394779982157516/photos\">Yung-Chang Chen</a>"],
"width": 3264,
"getUrl": {
"_custom": {
"type": "function",
"display": "<span>ƒ</span> (g)"
}
}
}, {
"height": 3120,
"html_attributions": ["<a href=\"https://maps.google.com/maps/contrib/114235931463529134850/photos\">Long Pham</a>"],
"width": 4160,
"getUrl": {
"_custom": {
"type": "function",
"display": "<span>ƒ</span> (g)"
}
}
}, {
"height": 4032,
"html_attributions": ["<a href=\"https://maps.google.com/maps/contrib/110194347577606444831/photos\">Pavielin LinMeili</a>"],
"width": 3024,
"getUrl": {
"_custom": {
"type": "function",
"display": "<span>ƒ</span> (g)"
}
}
}, {
"height": 4032,
"html_attributions": ["<a href=\"https://maps.google.com/maps/contrib/105127442512811355709/photos\">ajay wang</a>"],
"width": 3024,
"getUrl": {
"_custom": {
"type": "function",
"display": "<span>ƒ</span> (g)"
}
}
}, {
"height": 4032,
"html_attributions": ["<a href=\"https://maps.google.com/maps/contrib/109058538249696878983/photos\">Stewart Wu</a>"],
"width": 3024,
"getUrl": {
"_custom": {
"type": "function",
"display": "<span>ƒ</span> (g)"
}
}
}, {
"height": 4032,
"html_attributions": ["<a href=\"https://maps.google.com/maps/contrib/109058538249696878983/photos\">Stewart Wu</a>"],
"width": 3024,
"getUrl": {
"_custom": {
"type": "function",
"display": "<span>ƒ</span> (g)"
}
}
}, {
"height": 2976,
"html_attributions": ["<a href=\"https://maps.google.com/maps/contrib/103773143495467631482/photos\">Lily Yang</a>"],
"width": 2976,
"getUrl": {
"_custom": {
"type": "function",
"display": "<span>ƒ</span> (g)"
}
}
}, {
"height": 720,
"html_attributions": ["<a href=\"https://maps.google.com/maps/contrib/108038860143498394037/photos\">Taipaz Lue</a>"],
"width": 1280,
"getUrl": {
"_custom": {
"type": "function",
"display": "<span>ƒ</span> (g)"
}
}
}, {
"height": 2448,
"html_attributions": ["<a href=\"https://maps.google.com/maps/contrib/114222394779982157516/photos\">Yung-Chang Chen</a>"],
"width": 3264,
"getUrl": {
"_custom": {
"type": "function",
"display": "<span>ƒ</span> (g)"
}
}
}],
"place_id": "ChIJv3M0x7mrQjQRQAbGN80E-JM",
"plus_code": {
"compound_code": "2HQ7+8F 台灣台北",
"global_code": "7QQ32HQ7+8F"
},
"rating": 4.7,
"reference": "ChIJv3M0x7mrQjQRQAbGN80E-JM",
"reviews": [{
"author_name": "Chang Daisy",
"author_url": "https://www.google.com/maps/contrib/118229989343585464985/reviews",
"language": "zh-Hant",
"profile_photo_url": "https://lh3.googleusercontent.com/-KXCBNpanGUo/AAAAAAAAAAI/AAAAAAAADj8/s7xeiDGDFUk/s128-c0x00000000-cc-rp-mo-ba4/photo.jpg",
"rating": 5,
"relative_time_description": "4 個月前",
"text": "【2019台北光之饗宴|期間限定Luminarie絕美空景】\n  \n活動日期:2月5日—2月19日\n\n點燈時間:2月5日大年初一 18:00點燈儀式/假日18:30-22:00/平日19:00-22:00       \n\n地點:市民廣場及仁愛路4段 (逸仙路至光復南路口)",
"time": 1551796855
}, {
"author_name": "Yung-Chang Chen",
"author_url": "https://www.google.com/maps/contrib/114222394779982157516/reviews",
"language": "zh-Hant",
"profile_photo_url": "https://lh6.googleusercontent.com/-ubS4Zksy8_E/AAAAAAAAAAI/AAAAAAAAWrE/O5-V9kgrOFQ/s128-c0x00000000-cc-rp-mo-ba8/photo.jpg",
"rating": 5,
"relative_time_description": "5 個月前",
"text": "Google map有些點留言和相片已經滿了,就不給上傳!只好找附近的點發表意見。除了台北元宵燈節,紙雕貓熊來到亞洲巡迴的首站 - 台北以及很多活動,都在府前廣場或馬路舉行。這1600隻紙雕貓熊走遍歐洲巴黎、柏林、漢堡、羅馬等超過20座城市!主要目的就是要為全球瀕臨絕種的野生動物發聲。希望讓大家看見的不只有貓熊的「萌」,1600隻的紙貓熊,由環保混凝紙漿製成。為了保護脆弱的紙貓熊,展出時民眾是不能進入主展區的!紙貓熊拍照體驗區內,與台灣黑熊全家福合照。離去前有幸和法國藝術家Paulo Grangeon(創作主角)合影!",
"time": 1549465862
}, {
"author_name": "Fen Chen",
"author_url": "https://www.google.com/maps/contrib/118329781977883484309/reviews",
"language": "zh-Hant",
"profile_photo_url": "https://lh3.googleusercontent.com/-3aAC9AxEoP8/AAAAAAAAAAI/AAAAAAAAAAA/ACHi3rczsGUtTJ3dWF-Jqkl38VoOYBO6hw/s128-c0x00000000-cc-rp-mo-ba6/photo.jpg",
"rating": 5,
"relative_time_description": "5 個月前",
"text": "來自義大利絶美光雕秀,點亮市府廣場,以及靠近的仁愛路上,只到元宵節,2月19日,要快點去看,只剩幾天了",
"time": 1550064922
}, {
"author_name": "ajay wang",
"author_url": "https://www.google.com/maps/contrib/105127442512811355709/reviews",
"language": "zh-Hant",
"profile_photo_url": "https://lh6.googleusercontent.com/-BrKiaRpGm8c/AAAAAAAAAAI/AAAAAAAA9Kk/PuaWmOY7wU8/s128-c0x00000000-cc-rp-mo-ba5/photo.jpg",
"rating": 5,
"relative_time_description": "5 個月前",
"text": "好玩、好看!裝置藝術,光亮與黑暗相襯,照亮整條街道,給人穿梭隧道中的感覺中",
"time": 1550018771
}, {
"author_name": "潘潘",
"author_url": "https://www.google.com/maps/contrib/115780073178233706580/reviews",
"language": "zh-Hant",
"profile_photo_url": "https://lh4.googleusercontent.com/-F4AMCsVsv6g/AAAAAAAAAAI/AAAAAAAAAAA/ACHi3rcg-V4oyjX5qDo5cMWtkhV2awf6nw/s128-c0x00000000-cc-rp-mo-ba5/photo.jpg",
"rating": 4,
"relative_time_description": "4 個月前",
"text": "有廁所,有飲水機,有椅子,可以讓人休息一下",
"time": 1550670878
}],
"scope": "GOOGLE",
"types": ["bus_station", "transit_station", "point_of_interest", "establishment"],
"url": "https://maps.google.com/?cid=10662277397250180672",
"user_ratings_total": 16,
"utc_offset": 480,
"vicinity": "Taiwan",
"html_attributions": []
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment