The API does return a valid json object, so you could just use the adress object of the first result to fetch e.g. street and city or country, etc. So it would be better to use response.json() instead of response.text().
Присоединяйтесь к обсуждению – добавьте комментарий ниже:
Войдите / Зарегистрируйтесь, чтобы публиковать новые комментарии
The API does return a valid json object, so you could just use the adress object of the first result to fetch e.g. street and city or country, etc. So it would be better to use response.json() instead of response.text().