#reactjs #react-native #google-maps
Вопрос:
Я использую карты Google для получения плитки с названием любого магазина, колледжа, клиники. Но я не могу получить название любого магазина, колледжа, названия клиники. Я получаю только полный адрес.
Я получаю
Вот мой код:
fetch( "https://maps.googleapis.com/maps/api/geocode/json?address=" e.nativeEvent.coordinate.latitude "," e.nativeEvent.coordinate.longitude "amp;key=" mapKey ) .then((response) =gt; response.json()) .then((responseJson) =gt; { console.log("responseJson---gt; ", responseJson) var locationName = responseJson.results[0].formatted_address; this.setState({ location: locationName }); // console.log("responseJson --gt; ", responseJson.results[0]) })
Я хочу, чтобы в качестве названия был «Парамедицинский колледж В. С.».
Спасибо.