1

I want to get place_ids of hierarchical result, following the answer in Hierarchical & translated results of a placeId using Google Places

Everything goes fine at first, but in this request: https://maps.googleapis.com/maps/api/geocode/json?latlng=-34.63289,116.12236&key=MY_KEY&language=en&result_type=country|administrative_area_level_1|administrative_area_level_2|locality

country component is missing.

How can I fix this?

janith1024
  • 1,042
  • 3
  • 12
  • 25
astrophor
  • 11
  • 2
  • go into your developer console in credential there is an option call **REGENERATE KEY** ,regenerate key and then put it in your code.this will work. – Ankita Mehta Jul 13 '18 at 04:19
  • 1
    This is quite an old bug reported in Google issue tracker. Have a look at https://stackoverflow.com/a/46043732/5140781 – xomena Jul 13 '18 at 20:26

0 Answers0