# Get Premises / Building name using Google Places API

**URL:** <https://community.thunkable.com/t/get-premises-building-name-using-google-places-api/2934452>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, help\
**Created:** [April 8, 2024, 5:04am UTC](https://community.thunkable.com/t/get-premises-building-name-using-google-places-api/2934452 "2024-04-08T05:04:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![edu.officialn9f](https://avatars.discourse-cdn.com/v4/letter/e/edb3f5/32.png) [@edu.officialn9f](https://community.thunkable.com/u/edu.officialn9f)\
**Post date:** [April 8, 2024, 5:04am UTC](https://community.thunkable.com/t/get-premises-building-name-using-google-places-api/2934452/1 "2024-04-08T05:04:12Z")

</div>

Hihi, i am facing a problem in getting responses from the Google Map API. I am able to open the url in browser and it show the json data structure. but, when i try to Get from the WebAPI in thunkable, it return null and undefined. Can any one help? Below is my code and block.  
Thank you in advanced

Below is the code to get the name premises and building.\ (Not working)

Google map url: [https://maps.googleapis.com/maps/api/place/search/json?location=3.20273190176893,101.4601328660707&rankby=distance&types=establishment&sensor=false&key=API\_KEY](https://maps.googleapis.com/maps/api/place/search/json?location=3.20273190176893,101.4601328660707&rankby=distance&types=establishment&sensor=false&key=API_KEY)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/3/f3cabf6bee74b6d71f1e511dc54b59ab2d4339fa.png)

This is the code for reverse geocoding and it works perfect.  
Google map url: [https://maps.googleapis.com/maps/api/geocode/json?latlng=3.1997243,101.4471895&key=API\_Key](https://maps.googleapis.com/maps/api/geocode/json?latlng=3.1997243,101.4471895&key=API_Key)

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/0/60d50fd326f9d270fbb9d604a36f2838868201be.png)

The reason why i need to use PLACES AI as i need to get the building name instead of formatted address in the reverse geocoding.

Thank you in advanced.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 8, 2024, 8:32am UTC](https://community.thunkable.com/t/get-premises-building-name-using-google-places-api/2934452/2 "2024-04-08T08:32:42Z")

</div>

The problem is probably that you included the [gear] list block. You should almost **never** use that block. If your “results” property returns a list then the `in list` block will be able to handle that. What you’ve done is potentially make a list of lists which will throw everything off.

If that’s not the fix, then post the full JSON response (green `response` block) as text here and format it using the \</\> button in the forums toolbar to strip out any smart quotes that will invalidate the JSON.

---

<div class="post-metadata">

**Author:** ![edu.officialn9f](https://avatars.discourse-cdn.com/v4/letter/e/edb3f5/32.png) [@edu.officialn9f](https://community.thunkable.com/u/edu.officialn9f)\
**Post date:** [April 8, 2024, 10:07am UTC](https://community.thunkable.com/t/get-premises-building-name-using-google-places-api/2934452/3 "2024-04-08T10:07:51Z")

</div>

Thanks for your reply.  
No, it does not fix…  
This is the json code.

Actually my problem is after call the API, it return null and undefined…  
status of Get WebAPI is undefined

```auto
{
  "html_attributions": [],
  "next_page_token": "ATplDJaEGmrnytZ0Z4IxanyZ2duxPuUBoMBrzqASy06sbC2krmAc3M8W-mNYcWmSHPW7qefPINBSQRGhRcd8zonUOYCrLcSpKV9EiXV1z3eFKJ7rxbljcxOb5lB64gNkAXYeW4z7m1fl7v3mUjcUja9y8jw93Krc_0LcVil5KnN64oHAwSDOIvwHbRwJ3LVMErFSExn8iD34_WFLNMjCd8YCXyEtbjFXhmK_AxiZEJYORqWWfzx3vf9s0pd9AkEU7EmQCD0hQMsIXkkxSpJyz_lKbkOuHFi_XOB0pma0A866RndHGYjnGMshnLluy7oGstq7ajajK0E9EpyEpdh7YLC7xOL1-w3GVbH3WGoIyJ_ku2eMrnHYRJ-JYct75vrbNiZw8-1R7bYEXVOjH0AbkQezXdoXPof_g9dTJZXJaEV1cllN_8I",
  "results": [
    {
      "business_status": "OPERATIONAL",
      "geometry": {
        "location": {
          "lat": 3.202631,
          "lng": 101.4601333
        },
        "viewport": {
          "northeast": {
            "lat": 3.2040700802915,
            "lng": 101.461617530292
          },
          "southwest": {
            "lat": 3.2013721197085,
            "lng": 101.458919569709
          }
        }
      },
      "icon": "https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/generic_business-71.png",
      "icon_background_color": "#7B9EB0",
      "icon_mask_base_uri": "https://maps.gstatic.com/mapfiles/place_api/icons/v2/generic_pinlet",
      "name": "Dewan Berlian UiTM Puncak Alam",
      "photos": [
        {
          "height": 2336,
          "html_attributions": [
            "\u003Ca href=\"https://maps.google.com/maps/contrib/112279990564283226017\"\u003EǺĻŎйĢ Šß\u003C/a\u003E"
          ],
          "photo_reference": "ATplDJaM_168-ivn1POAloqfEUXpMTiy4f4fPaa9YT423PxeAPm0lyEH3V1o7-Pfg1fd9YFNbwwzEtwiQ5e2o-e99tbCxy283TfAEJAJkwcb1Z21pePAbSM9x1MHklx8Qo7lrKnjqpZMSeeErRCeesQt9oI9NoMO-JycAR9C2hgX1m0Znsn0",
          "width": 4160
        }
      ],
      "place_id": "ChIJxaBVZXJazDERrQiQ-wUzZP4",
      "plus_code": {
        "compound_code": "6F36+33 Bandar Saujana Utama, Sungai Buloh, Selangor, Malaysia",
        "global_code": "6PM36F36+33"
      },
      "rating": 4.6,
      "reference": "ChIJxaBVZXJazDERrQiQ-wUzZP4",
      "scope": "GOOGLE",
      "types": [
        "point_of_interest",
        "establishment"
      ],
      "user_ratings_total": 906,
      "vicinity": "Kuala Selangor"
    },
    {
      "business_status": "OPERATIONAL",
      "geometry": {
        "location": {
          "lat": 3.2025584,
          "lng": 101.4600029
        },
        "viewport": {
          "northeast": {
            "lat": 3.2038415302915,
            "lng": 101.461222980292
          },
          "southwest": {
            "lat": 3.2011435697085,
            "lng": 101.458525019709
          }
        }
      },
      "icon": "https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/civic_building-71.png",
      "icon_background_color": "#7B9EB0",
      "icon_mask_base_uri": "https://maps.gstatic.com/mapfiles/place_api/icons/v2/civic-bldg_pinlet",
      "name": "PKF PUNCAK RESOURCES",
      "opening_hours": {
        "open_now": false
      },
      "photos": [
        {
          "height": 1280,
          "html_attributions": [
            "\u003Ca href=\"https://maps.google.com/maps/contrib/117121950568452705076\"\u003EJohanis M.A\u003C/a\u003E"
          ],
          "photo_reference": "ATplDJa5qgO2dXcIdAjTWi1DNUOGeC6QcSPGhm4jtKOXnhX8xnUN93XpXmL4XNPT4-xVu2MHuaXlDEWK8PF6XQzUWsfN9FWRgd2ADTVPeVPbyQsPUlGxLCfLq2vMjPuOrwszMn7sOMHaMstMpwgYs_jFz9eyP3UvQEX2tQ4wgYU44RKjwO-m",
          "width": 720
        }
      ],
      "place_id": "ChIJCasQgw5bzDERY5TU56s5lj0",
      "plus_code": {
        "compound_code": "6F36+22 Puncak Alam, Selangor, Malaysia",
        "global_code": "6PM36F36+22"
      },
      "reference": "ChIJCasQgw5bzDERY5TU56s5lj0",
      "scope": "GOOGLE",
      "types": [
        "local_government_office",
        "point_of_interest",
        "establishment"
      ],
      "vicinity": "Kolej Alam Bina Uitm Puncak Alam Road, Puncak Alam"
    },
    {
      "business_status": "OPERATIONAL",
      "geometry": {
        "location": {
          "lat": 3.2020883,
          "lng": 101.4600059
        },
        "viewport": {
          "northeast": {
            "lat": 3.2035227802915,
            "lng": 101.461254080292
          },
          "southwest": {
            "lat": 3.2008248197085,
            "lng": 101.458556119709
          }
        }
      },
      "icon": "https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/school-71.png",
      "icon_background_color": "#7B9EB0",
      "icon_mask_base_uri": "https://maps.gstatic.com/mapfiles/place_api/icons/v2/school_pinlet",
      "name": "GALERI LAKESIDE, KOLEJ PENGAJIAN SENI KREATIF, UiTM KAMPUS PUNCAK ALAM",
      "photos": [
        {
          "height": 3024,
          "html_attributions": [
            "\u003Ca href=\"https://maps.google.com/maps/contrib/111030476778655589472\"\u003ESharkawi Che Din\u003C/a\u003E"
          ],
          "photo_reference": "ATplDJbdtJ--g46Wkv81Whl1NXggHoOnIobe2rI2f7toVTKI6Xnsxrxe3N7WcaWxR-jmCnNojsnWFxKT5bqhbegvIDAFqeU3VXiE84NDu_lCaeoYutOjY2GeC-VIgMsYcyiuvpe6AvmDHh6cpzauWlFBN8sZbjbjp3A8A2N0WV8OUUqVVsiv",
          "width": 4032
        }
      ],
      "place_id": "ChIJk9yWOSBbzDERYJ5lvxN3G3o",
      "plus_code": {
        "compound_code": "6F26+R2 Jeram, Selangor, Malaysia",
        "global_code": "6PM36F26+R2"
      },
      "rating": 5,
      "reference": "ChIJk9yWOSBbzDERYJ5lvxN3G3o",
      "scope": "GOOGLE",
      "types": [
        "point_of_interest",
        "establishment"
      ],
      "user_ratings_total": 1,
      "vicinity": "Jeram"
    },
    {
      "business_status": "OPERATIONAL",
      "geometry": {
        "location": {
          "lat": 3.2024399,
          "lng": 101.459477
        },
        "viewport": {
          "northeast": {
            "lat": 3.2038135302915,
            "lng": 101.460862230292
          },
          "southwest": {
            "lat": 3.2011155697085,
            "lng": 101.458164269709
          }
        }
      },
      "icon": "https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/school-71.png",
      "icon_background_color": "#7B9EB0",
      "icon_mask_base_uri": "https://maps.gstatic.com/mapfiles/place_api/icons/v2/school_pinlet",
      "name": "FSSR Alam Bena",
      "place_id": "ChIJlRS_1mZbzDER35LCGtEyIU8",
      "plus_code": {
        "compound_code": "6F25+XQ Puncak Alam, Selangor, Malaysia",
        "global_code": "6PM36F25+XQ"
      },
      "reference": "ChIJlRS_1mZbzDER35LCGtEyIU8",
      "scope": "GOOGLE",
      "types": [
        "school",
        "point_of_interest",
        "establishment"
      ],
      "vicinity": "Jabatan Teknologi Percetakan, FSSR, UiTM Cawangan Selangor, Puncak Alam"
    },
    {
      "business_status": "OPERATIONAL",
      "geometry": {
        "location": {
          "lat": 3.2019824,
          "lng": 101.4597997
        },
        "viewport": {
          "northeast": {
            "lat": 3.2034640302915,
            "lng": 101.461122280292
          },
          "southwest": {
            "lat": 3.2007660697085,
            "lng": 101.458424319709
          }
        }
      },
      "icon": "https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/school-71.png",
      "icon_background_color": "#7B9EB0",
      "icon_mask_base_uri": "https://maps.gstatic.com/mapfiles/place_api/icons/v2/school_pinlet",
      "name": "Creative Photomedia Department, CCA, UiTM",
      "place_id": "ChIJ8UHxcBJbzDERlzp7rbyass0",
      "plus_code": {
        "compound_code": "6F25+QW Puncak Alam, Selangor, Malaysia",
        "global_code": "6PM36F25+QW"
      },
      "reference": "ChIJ8UHxcBJbzDERlzp7rbyass0",
      "scope": "GOOGLE",
      "types": [
        "university",
        "point_of_interest",
        "establishment"
      ],
      "vicinity": "College of Creative Arts, Alam Bina Complex, Puncak Alam Campus, Universiti Teknologi MARA, Puncak Alam"
    },
    {
      "business_status": "OPERATIONAL",
      "geometry": {
        "location": {
          "lat": 3.2020067,
          "lng": 101.4597025
        },
        "viewport": {
          "northeast": {
            "lat": 3.2034761802915,
            "lng": 101.461102380292
          },
          "southwest": {
            "lat": 3.2007782197085,
            "lng": 101.458404419709
          }
        }
      },
      "icon": "https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/civic_building-71.png",
      "icon_background_color": "#7B9EB0",
      "icon_mask_base_uri": "https://maps.gstatic.com/mapfiles/place_api/icons/v2/civic-bldg_pinlet",
      "name": "FSSR",
      "photos": [
        {
          "height": 3024,
          "html_attributions": [
            "\u003Ca href=\"https://maps.google.com/maps/contrib/111030476778655589472\"\u003ESharkawi Che Din\u003C/a\u003E"
          ],
          "photo_reference": "ATplDJacg-qYU8mLBq6V6t6KZey-tFbRTMsw7IhMvqaQ8abqfyr9ITpzkhuL7qQ91V0-oHy6m1tkyZBv_ekhecQB36rct4GimKmsYDsX-J6az5orbsG1jryxN6YWGDQlOZfzRHZEUvqRFPdTv9M6arsv96wQYJaNBmaeUKwacT0u52Jpu4QC",
          "width": 4032
        }
      ],
      "place_id": "ChIJ0f6SmadbzDEReLxVWzdXQic",
      "plus_code": {
        "compound_code": "6F25+RV Bandar Saujana Utama, Sungai Buloh, Selangor, Malaysia",
        "global_code": "6PM36F25+RV"
      },
      "reference": "ChIJ0f6SmadbzDEReLxVWzdXQic",
      "scope": "GOOGLE",
      "types": [
        "local_government_office",
        "point_of_interest",
        "establishment"
      ],
      "vicinity": "Jalan Zamrud"
    },
    {
      "business_status": "OPERATIONAL",
      "geometry": {
        "location": {
          "lat": 3.202016,
          "lng": 101.4596829
        },
        "viewport": {
          "northeast": {
            "lat": 3.2034808302915,
            "lng": 101.461092580292
          },
          "southwest": {
            "lat": 3.2007828697085,
            "lng": 101.458394619709
          }
        }
      },
      "icon": "https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/school-71.png",
      "icon_background_color": "#7B9EB0",
      "icon_mask_base_uri": "https://maps.gstatic.com/mapfiles/place_api/icons/v2/school_pinlet",
      "name": "Kolej Pengajian Seni Kreatif, UiTM Puncak Alam",
      "photos": [
        {
          "height": 3456,
          "html_attributions": [
            "\u003Ca href=\"https://maps.google.com/maps/contrib/110205239538980942270\"\u003EMuhammad Yusuf (MYM)\u003C/a\u003E"
          ],
          "photo_reference": "ATplDJbaiTjDKrvSM4U9cgkeTW_vRiT28OeubqPAeiNNq7rdh0pK7f0DWMlDEQyen57RzlyY0PJFy6MmXrDbU1AI8uGNeS4WddCl6zkbiAnYIjZC_7IbAVz6t8S6dmYZaMu5hPRD6ZlGx6LSeljTidSwj_VS2Tqn8nQ3V2n6lEQeMPVCmQWS",
          "width": 4608
        }
      ],
      "place_id": "ChIJkXkiYHJazDERYzBnBahPwvE",
      "plus_code": {
        "compound_code": "6F25+RV Bandar Saujana Utama, Sungai Buloh, Selangor, Malaysia",
        "global_code": "6PM36F25+RV"
      },
      "rating": 3.9,
      "reference": "ChIJkXkiYHJazDERYzBnBahPwvE",
      "scope": "GOOGLE",
      "types": [
        "university",
        "point_of_interest",
        "establishment"
      ],
      "user_ratings_total": 7,
      "vicinity": "Selangor"
    },
    {
      "business_status": "OPERATIONAL",
      "geometry": {
        "location": {
          "lat": 3.20239,
          "lng": 101.4592958
        },
        "viewport": {
          "northeast": {
            "lat": 3.2036720802915,
            "lng": 101.460577580292
          },
          "southwest": {
            "lat": 3.2009741197085,
            "lng": 101.457879619709
          }
        }
      },
      "icon": "https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/school-71.png",
      "icon_background_color": "#7B9EB0",
      "icon_mask_base_uri": "https://maps.gstatic.com/mapfiles/place_api/icons/v2/school_pinlet",
      "name": "Kolej Pengajian Seni Kreatif, Kampus Puncak Alam",
      "opening_hours": {
        "open_now": true
      },
      "photos": [
        {
          "height": 1080,
          "html_attributions": [
            "\u003Ca href=\"https://maps.google.com/maps/contrib/110420261018137343927\"\u003EKhairul Ehsani Sapari\u003C/a\u003E"
          ],
          "photo_reference": "ATplDJa8eCdNG6-NBqaQVIW5heGrnRnD0vIjvbXMA2Pj7egj6d8xOtOugyq-NxaJCFVdTKDUvRKhBE2hbg2y78AL4AGpQBO9kgEjyhiC03qiFTOcckxGCCL2RI8EctlUAwBEiNwzxSlh_qo7LLmDRswaWYmg-kBVgT_iy8IR7PRtssdvroLk",
          "width": 1920
        }
      ],
      "place_id": "ChIJbUdLinJazDERdJFmbBcc_CE",
      "plus_code": {
        "compound_code": "6F25+XP Bandar Saujana Utama, Sungai Buloh, Selangor, Malaysia",
        "global_code": "6PM36F25+XP"
      },
      "rating": 4,
      "reference": "ChIJbUdLinJazDERdJFmbBcc_CE",
      "scope": "GOOGLE",
      "types": [
        "university",
        "point_of_interest",
        "establishment"
      ],
      "user_ratings_total": 1,
      "vicinity": "Selangor"
    },
    {
      "business_status": "OPERATIONAL",
      "geometry": {
        "location": {
          "lat": 3.20208,
          "lng": 101.4592281
        },
        "viewport": {
          "northeast": {
            "lat": 3.2034296802915,
            "lng": 101.460577730292
          },
          "southwest": {
            "lat": 3.2007317197085,
            "lng": 101.457879769709
          }
        }
      },
      "icon": "https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/school-71.png",
      "icon_background_color": "#7B9EB0",
      "icon_mask_base_uri": "https://maps.gstatic.com/mapfiles/place_api/icons/v2/school_pinlet",
      "name": "Department of Printing Technology, Faculty of Art & Design, UiTM Puncak Alam",
      "photos": [
        {
          "height": 4032,
          "html_attributions": [
            "\u003Ca href=\"https://maps.google.com/maps/contrib/106689323440129823814\"\u003EDepartment of Printing Technology, Faculty of Art &amp; Design, UiTM Puncak Alam\u003C/a\u003E"
          ],
          "photo_reference": "ATplDJZUoEEQNfv4f8VVNiMS_bpoCKU52W0fM_2_PxkdCDSTwbiS28WaJDj2S-9qaEwOSdl3ASHgSeDQWWl6_XCA5oeFUZj8UQ3S6aivsuEkpv1tfTh9j-BqZsF4_fNJUl6XCgLUcyhC1DW-juxAXpxyzBGvkutfGbW7qpeH1UqKAfpmQxTL",
          "width": 3024
        }
      ],
      "place_id": "ChIJRd7E5OVbzDERYCyISLn4-YU",
      "plus_code": {
        "compound_code": "6F25+RM Bandar Saujana Utama, Sungai Buloh, Selangor, Malaysia",
        "global_code": "6PM36F25+RM"
      },
      "rating": 5,
      "reference": "ChIJRd7E5OVbzDERYCyISLn4-YU",
      "scope": "GOOGLE",
      "types": [
        "point_of_interest",
        "establishment"
      ],
      "user_ratings_total": 3,
      "vicinity": "Jalan Zamrud"
    },
    {
      "business_status": "OPERATIONAL",
      "geometry": {
        "location": {
          "lat": 3.201893,
          "lng": 101.4593979
        },
        "viewport": {
          "northeast": {
            "lat": 3.2032910802915,
            "lng": 101.460724330292
          },
          "southwest": {
            "lat": 3.2005931197085,
            "lng": 101.458026369709
          }
        }
      },
      "icon": "https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/school-71.png",
      "icon_background_color": "#7B9EB0",
      "icon_mask_base_uri": "https://maps.gstatic.com/mapfiles/place_api/icons/v2/school_pinlet",
      "name": "Kompleks Alam Bina dan Seni Reka UiTM Puncak Alam",
      "photos": [
        {
          "height": 3024,
          "html_attributions": [
            "\u003Ca href=\"https://maps.google.com/maps/contrib/100370082464840267056\"\u003EShazrul Iqbal\u003C/a\u003E"
          ],
          "photo_reference": "ATplDJb7HDDG2c1o5_YTIQEEuz8G6SRaqpCD9yZV8i54CD2rcR8Ku9IIWAHhR287BN0Z6SgJllixFxJKfueDhdzW8tocNISg99GjXxiSzgcT6v_8SrI6u98MT6tMpEUAKUIRddvUKTwI6UCvQzLU86tx1nkPk5hOB2cQbisQd_E1dd9muHpw",
          "width": 3024
        }
      ],
      "place_id": "ChIJJ0CO-nJazDERcJANEs8KuZk",
      "plus_code": {
        "compound_code": "6F25+QQ Bandar Saujana Utama, Sungai Buloh, Selangor, Malaysia",
        "global_code": "6PM36F25+QQ"
      },
      "rating": 4.6,
      "reference": "ChIJJ0CO-nJazDERcJANEs8KuZk",
      "scope": "GOOGLE",
      "types": [
        "point_of_interest",
        "establishment"
      ],
      "user_ratings_total": 18,
      "vicinity": "Selangor"
    },
    {
      "business_status": "CLOSED_TEMPORARILY",
      "geometry": {
        "location": {
          "lat": 3.2018012,
          "lng": 101.459254
        },
        "viewport": {
          "northeast": {
            "lat": 3.2032399302915,
            "lng": 101.460626430292
          },
          "southwest": {
            "lat": 3.2005419697085,
            "lng": 101.457928469709
          }
        }
      },
      "icon": "https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/school-71.png",
      "icon_background_color": "#7B9EB0",
      "icon_mask_base_uri": "https://maps.gstatic.com/mapfiles/place_api/icons/v2/school_pinlet",
      "name": "CoSA UiTM Publication",
      "permanently_closed": true,
      "place_id": "ChIJxRIS9e5bzDEREeJz1i7QxHc",
      "plus_code": {
        "compound_code": "6F25+PP Puncak Alam, Selangor, Malaysia",
        "global_code": "6PM36F25+PP"
      },
      "reference": "ChIJxRIS9e5bzDEREeJz1i7QxHc",
      "scope": "GOOGLE",
      "types": [
        "point_of_interest",
        "establishment"
      ],
      "vicinity": "Centre of Studies for Architecture Fakulti Senibina, Perancangan dan Ukur Kompleks Alam Bina dan Seni Reka Universiti Teknologi MARA Cawangan Selangor, Kampus, Puncak Alam"
    },
    {
      "business_status": "CLOSED_TEMPORARILY",
      "geometry": {
        "location": {
          "lat": 3.2020103,
          "lng": 101.4589233
        },
        "viewport": {
          "northeast": {
            "lat": 3.2034409802915,
            "lng": 101.460360030292
          },
          "southwest": {
            "lat": 3.2007430197085,
            "lng": 101.457662069709
          }
        }
      },
      "icon": "https://maps.gstatic.com/mapfiles/place_api/icons/v1/png_71/school-71.png",
      "icon_background_color": "#7B9EB0",
      "icon_mask_base_uri": "https://maps.gstatic.com/mapfiles/place_api/icons/v2/school_pinlet",
      "name": "DASAD Design Lab",
      "permanently_closed": true,
      "place_id": "ChIJnVgU8q9bzDERPmi2BeHBHis",
      "plus_code": {
        "compound_code": "6F25+RH Puncak Alam, Selangor, Malaysia",
        "global_code": "6PM36F25+RH"
      },
      "rating": 5,
      "reference": "ChIJnVgU8q9bzDERPmi2BeHBHis",
      "scope": "GOOGLE",
      "types": [
        "school",
        "point_of_interest",
        "establishment"
      ],
      "user_ratings_total": 2,
      "vicinity": "UiTM, Puncak Alam"
    },
   "status" : "OK"
}

```

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [April 8, 2024, 7:39pm UTC](https://community.thunkable.com/t/get-premises-building-name-using-google-places-api/2934452/4 "2024-04-08T19:39:57Z")

</div>

For some reason that JSON is not valid (for example, if you paste it into [Best JSON Viewer and JSON Beautifier Online](https://codebeautify.org/jsonviewer)).

But the “name” property is located at **results[1].name**. So you’d need to get the “name” property of the first list item of the “results” property which is what you did above. That should work. Can you try just getting the “results[1].name” property of the object? Don’t use any list blocks for this second method. Make sure to check the green `error` block and the green `response` block in each case.

Post a new screenshot of your blocks for each of those methods.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [July 7, 2024, 7:40pm UTC](https://community.thunkable.com/t/get-premises-building-name-using-google-places-api/2934452/5 "2024-07-07T19:40:08Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
