Skip to content

Instantly share code, notes, and snippets.

@agraebe
Last active August 24, 2016 19:54
Show Gist options
  • Save agraebe/18bf46f7594c5359a9e4525df4f3f1eb to your computer and use it in GitHub Desktop.
Save agraebe/18bf46f7594c5359a9e4525df4f3f1eb to your computer and use it in GitHub Desktop.
Sample response for place_id
{
"html_attributions" : [],
"result" : {
"address_components" : [
{
"long_name" : "San Francisco",
"short_name" : "SF",
"types" : [ "locality", "political" ]
},
{
"long_name" : "San Mateo County",
"short_name" : "San Mateo County",
"types" : [ "administrative_area_level_2", "political" ]
},
{
"long_name" : "California",
"short_name" : "CA",
"types" : [ "administrative_area_level_1", "political" ]
},
{
"long_name" : "United States",
"short_name" : "US",
"types" : [ "country", "political" ]
},
{
"long_name" : "94128",
"short_name" : "94128",
"types" : [ "postal_code" ]
}
],
"adr_address" : "\u003cspan class=\"locality\"\u003eSan Francisco\u003c/span\u003e, \u003cspan class=\"region\"\u003eCA\u003c/span\u003e \u003cspan class=\"postal-code\"\u003e94128\u003c/span\u003e, \u003cspan class=\"country-name\"\u003eUSA\u003c/span\u003e",
"formatted_address" : "San Francisco, CA 94128, USA",
"formatted_phone_number" : "(650) 821-8211",
"geometry" : {
"location" : {
"lat" : 37.6213129,
"lng" : -122.3789554
},
"viewport" : {
"northeast" : {
"lat" : 37.62730295,
"lng" : -122.36877195
},
"southwest" : {
"lat" : 37.60334275,
"lng" : -122.40950575
}
}
},
"icon" : "https://maps.gstatic.com/mapfiles/place_api/icons/airport-71.png",
"id" : "9c9fb107d7a776c3f6a26791b07982d7db079113",
"international_phone_number" : "+1 650-821-8211",
"name" : "San Francisco International Airport",
"photos" : [
{
"height" : 2048,
"html_attributions" : [
"\u003ca href=\"https://maps.google.com/maps/contrib/118253811177135143626/photos\"\u003eBartolomeo Gorgoglione\u003c/a\u003e"
],
"photo_reference" : "CoQBcwAAAPwZJOPF1ftDtXYSIFNyOB93YIbo4-i_pZTXpHYxxovJXQRaYBr6LhtgbbP1vPa0b8G4LRb3cGG1viEEjhE5wVRFY3_HSPV7kd3szHk2Iem8wLIMzyR3DNcRLWHkDD0FXh0g4-DIiOaRJDzmD0CAffRX7cyrB1Mk9s56PjsEPea6EhBZRKCqAy6eTFAofkQmay3YGhR9K6bz3sdjSzm6sWIO5zubAT9bPA",
"width" : 1360
},
{
"height" : 1365,
"html_attributions" : [
"\u003ca href=\"https://maps.google.com/maps/contrib/103264663090077772613/photos\"\u003eFrederik Maesen\u003c/a\u003e"
],
"photo_reference" : "CoQBcwAAAKGGLMrF2wrEnFxtAodYxeWBkCpAu5B4Lu7S2vQC-5g9fA1VxL-2seeswnqRfqRGssZJserZjLIoFwG9PFqZJ_UrC9YmWqKtUGiitjZqs8dMdHuDhzAZaP6hylbkpSn48yjoQODoi11YfQR6AN-8yjKDlKUQS9tUs0jjS0rebOIbEhB-NG2vwfGSAltxNzbtDLHkGhR6IdB3nlkeHy9v29MCMm-9Vi9CCw",
"width" : 2048
},
{
"height" : 1007,
"html_attributions" : [
"\u003ca href=\"https://maps.google.com/maps/contrib/111645829638313742271/photos\"\u003eValery Pugatch\u003c/a\u003e"
],
"photo_reference" : "CoQBcwAAALX4RWZZEIvAVpZV9LZfjTZxUn-NwmADCcqjGKs68WCCrCsMMbvivObE9nYZgZPMtKghxNXo_-AxUvjn7Msj1o44E5hdkAe5F711tl66CcKuTOk0XBe-HMyJLKAwiHZ7zZlEl_iMF52lxcBxqA-7qzvJ59nULtM3P8m1fA0a2TprEhC6fI9i6i3aROQ8Gc5xkS20GhRg1G2v1bIOGfvSxSdmurR9Zib2qg",
"width" : 1600
},
{
"height" : 512,
"html_attributions" : [
"\u003ca href=\"https://maps.google.com/maps/contrib/111067545793725440391/photos\"\u003eLEO D KING\u003c/a\u003e"
],
"photo_reference" : "CoQBcwAAAOR38txmRNXkibOR1R1Eo36Hoc0KPtPA8pyEnxFfYojBu9UD-9qFfpF-2vf_L1kjYcfTkBPn3V1Iq8c_OOhTFhlLk4Kvw7WOmuJF0Rp5tPPsBPRzuide9i8cLawOlr8y9Hs_w9qJG919f5KqzgsXm1A-tn9jzbItZ_UBwzCk4TYbEhB3T3CALA6IC_alhbwu9Sa_GhQgwCmhd3j6GgrmkHynJzJMPZgdtg",
"width" : 768
},
{
"height" : 2448,
"html_attributions" : [
"\u003ca href=\"https://maps.google.com/maps/contrib/113165292785040125661/photos\"\u003eShigeki Iijima\u003c/a\u003e"
],
"photo_reference" : "CoQBcwAAAD4BD-6g0C7HW8hd8IiuTpbJ4UIF9vVt15ORT1wqNo79BtgULtqmtJeheptQnf5Wy9DRrOb_NCaayLLR7o8OzvjdI6ApJLKnEdsMw1BESODfa7yhS7eZaHknEByQVjFYjSXnPsGXw60SZ5S_dg8Zettaa5Yvqe6tRIT3gT7zSygdEhBlscCX7YEh3X9eHLg1m1rFGhRaz-uwMttHZZ1ZJvEbrDl-IZMa2A",
"width" : 3264
},
{
"height" : 2448,
"html_attributions" : [
"\u003ca href=\"https://maps.google.com/maps/contrib/105310896638365627568/photos\"\u003eBill Vaughn\u003c/a\u003e"
],
"photo_reference" : "CoQBcwAAAAW2yZjnZPmdZbxwxclZU7wcI-4hDXHqHulSS58rwxNEiT2ip5PRzT-Sj6SrA4R56WoWrWRrcKYgpV9RE4YavpM2HjtS4G0ygxGnWaGRN2xT-UmJQyYrVMvx3qia2lTolazQIHGMq3limx6DePAlGQx_WftablMsTFPZ-2lf0wSGEhCbTrgBzhCqzveK62U-ZZ5lGhQqY3ZAWdFLClwDQRHTsgXPhgYUfQ",
"width" : 3264
},
{
"height" : 1584,
"html_attributions" : [
"\u003ca href=\"https://maps.google.com/maps/contrib/103533919706279161327/photos\"\u003eKordian Witek\u003c/a\u003e"
],
"photo_reference" : "CoQBdwAAAOH-O8hiTUHmoJbxHieSBWonxOz5OqersWqy_m9-A_VXrrfx0xNpHVs3AaExjXMSDZmcd3sQ6pNR9_eTtxGJ-rwvn83Sxi1fSHLOGYINFjnaFBQbWSLeDyq6r_rvNxxnsHYfXkzKv7I4Ez2ze7V23-U--jNQ3AEwF84adGSE1EKEEhDa0ecLSswm8Q7vQVXQQ9BNGhQrAcsETIsxslwD1a0gdk2Py6f-5g",
"width" : 2816
},
{
"height" : 1200,
"html_attributions" : [
"\u003ca href=\"https://maps.google.com/maps/contrib/107886602096014075504/photos\"\u003eAgoes Harianto\u003c/a\u003e"
],
"photo_reference" : "CoQBdwAAAHHAg1KqpO9OH7Eda0BBSKiV2X9bd2wX8zslXv2ECLh_VrK85pmIsR6XckD0dDXLnRTCXjtSLoWwSIQLSuieYGncxLs6ryRPYWcw3zJFIEHn3Q9hEQf8kZP6rlFsY1P8zaDR8UF8vXgfmuftzHR9u8sGkpDIrCnAqkdQJbw-dPxBEhA7hFpbcBLwTbJwS_LKTUJzGhQm9W8MAL5AKIRHFPy-AAjNKut0Rg",
"width" : 1600
},
{
"height" : 800,
"html_attributions" : [
"\u003ca href=\"https://maps.google.com/maps/contrib/114437705200393004751/photos\"\u003eJason Shurb\u003c/a\u003e"
],
"photo_reference" : "CoQBcwAAAEO6TvbWCZcNZbkapXRsbvsC2klRINfRLdIOxL8t8zhFggEcVtdP6ePokzb3GXFa7aeeCnmgQGAL_C4QcQ2M38K1HBiqkdrp4z9cdcNj-yqlS_qqPu5qPFeDEDgqiSG3F1SGQqhIB2BBBMzkXceWPaoEI6W7IaMrzCLHhCSwu4xDEhCPOyY2CI7O970wp7f11KzZGhStL3esEgnOLbgbFgJ2IeuqlLkqRQ",
"width" : 1200
},
{
"height" : 842,
"html_attributions" : [
"\u003ca href=\"https://maps.google.com/maps/contrib/115334395249317735570/photos\"\u003eYoshio Kohara\u003c/a\u003e"
],
"photo_reference" : "CoQBdwAAAHyn6FbNLimwwP5KSLP1U9EiE1XQ_NE16sKcRKHETxAmewJ1WOtLkqzTJvyYWZlV-iiXChBEF364X3aIBQKKbewqznsoZU-8Uxso7Wv6S9dW-N7mWNtbtjctGHV2enJfCD7sS9_cqwdVucPPbiBTyDQUwAdftr0ELdk4WMrPKhdvEhDfYRE6gf2VGiID3cc7vS5-GhRea0n4jnn0ckkCMmRw272jBCQx2g",
"width" : 1600
}
],
"place_id" : "ChIJVVVVVYx3j4ARP-3NGldc8qQ",
"rating" : 4.1,
"reference" : "CoQBdwAAAFj70GA6zMeSQBbs912SwC5xy3f8uiDWrZCbKpxqdpEvJzDEJNhWFPQgUw7ziEoaUin9sWlkyqiTccddPRzODSHIWq9fq9KrJNL2tFDpXvPlMk-ndvRmmrqTpxVEM03xeh63pcduyvTKCb-ENR6ro4vI4lT7JmwXPnOhKVTK2wF8EhANAa1OGILltxCaRicrNUbQGhRguFPpq8QeyN6sa7xUXUpesDYsmA",
"reviews" : [
{
"aspects" : [
{
"rating" : 3,
"type" : "overall"
}
],
"author_name" : "Sumanth Sukumar",
"author_url" : "https://plus.google.com/114614235351747588078",
"language" : "en",
"profile_photo_url" : "//lh3.googleusercontent.com/-M7nPPgLx4eI/AAAAAAAAAAI/AAAAAAAABOM/HP9NGQOcaBw/photo.jpg",
"rating" : 5,
"text" : "Modern terminals. Lots of amenities (power for devices and wireless), comfortable chairs. Especially Terminal 2 is great. Good food selections as well - T2 has Napa Farms, Andale among others. ",
"time" : 1471201407
},
{
"aspects" : [
{
"rating" : 0,
"type" : "overall"
}
],
"author_name" : "Mark Siaotong",
"author_url" : "https://plus.google.com/103544634726122403718",
"language" : "en",
"profile_photo_url" : "//lh5.googleusercontent.com/-zYiSLKP7_gI/AAAAAAAAAAI/AAAAAAAAAKs/Cf_P6VLW-2M/photo.jpg",
"rating" : 2,
"text" : "New modern airport but still lacking. Smokers are force to smoke outside instead of an indoor room for smokers like at Narita airport Japan, and Ninoy Aquino aiport in Manila, Philippines. Food and Water are ridiculously overpriced, just like every other airport. Checked in my unloaded rifle, in a separate hard case, and I was given such a hassle about it. I had to walk a long distance for a TSA agent to swab the gun case. For what, gun powder? Other airports just make me hang around near the Xray scanners for 10 mins in case they need to further inspect my gun case, and then I am on my way for the TSA massage. .",
"time" : 1471506197
},
{
"aspects" : [
{
"rating" : 0,
"type" : "overall"
}
],
"author_name" : "Busra Dal",
"author_url" : "https://plus.google.com/113555394116692015328",
"language" : "en",
"rating" : 1,
"text" : "I didnt like the fact that the rental car placa charge me for airtrain. I believe airport should facilitate this service for free. I was ubset because they throw my laggage.",
"time" : 1470621551
},
{
"aspects" : [
{
"rating" : 0,
"type" : "overall"
}
],
"author_name" : "Tom R",
"author_url" : "https://plus.google.com/117446044852035511414",
"language" : "en",
"rating" : 2,
"text" : "A while ago (late last year) my mom and I took a friend here for their flight to Colorado. TSA was fine, even though I'm trans, so that was pretty cool. They let us through security and all the way to the gate with our friend, and we watched their plane take off and then went to go. Everything went smooth for the passenger and us, up until leaving the parking garage. The fee was $14 (which we did not have since we're broke). We told them that we didn't have the money to pay the fee, nor did we have a credit card to pay with. THEY WOULD NOT LET US LEAVE. We were trapped in for three hours, even though we offered to pay the fee by mail, give them our address, see ID, etc. and they took none of it. My mom called the cops and they wouldn't do anything. My mom called some sort of patrol for the garage and of course they sided with the garage's management. Everyone we dealt with was unbelievably rude to us even though we remained calm and civil the entire time. We were alone in a parking garage, hadn't eaten since the day before, with a thirsty dog. The dog and I slept for a lot of the time they had us trapped in. That hell did not end until my mom's boyfriend offered to give the garage his credit card information over the phone so they could take the money from that. They had said earlier that they would take it over the phone, but changed their minds, apparently, and made him email photos of the front and back of the card to them. The fee had climbed to $30+ dollars after that but luckily one of the people working there was barely nice enough to bring it down to the original $14. Overall, it was a fucked up experience to be trapped in a parking garage for three hours. There was no visibly posted signs stating the fees that we saw.",
"time" : 1467666374
},
{
"aspects" : [
{
"rating" : 3,
"type" : "overall"
}
],
"author_name" : "John Kelly",
"author_url" : "https://plus.google.com/111126939022282250284",
"language" : "en",
"rating" : 5,
"text" : "I actually work as a volunteer information guy at SFO. I work usually in the International Terminal, early mornings until noon. One of the biggest problems I come across are those people flying Virgin America. Virgin America, even when flying to Mexico, leaves out of Domestic Terminal 2. When returning from Mexico, Virgin America flights will arrive at the International Terminal, as returning passengers must come through Customs. So, if you've got a ton of baggage, three kids, and parents-in-law with you, make sure you get dropped off at Terminal 2 for Virgin America. Life and your trip will be much easier. Don't forget not to confuse Virgin Atlantic with Virgin America.",
"time" : 1464820574
}
],
"scope" : "GOOGLE",
"types" : [ "airport", "point_of_interest", "establishment" ],
"url" : "https://maps.google.com/?cid=11885663895765773631",
"utc_offset" : -420,
"vicinity" : "San Francisco",
"website" : "http://www.flysfo.com/"
},
"status" : "OK"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment