< pre class="snippet-code-js lang-js Prettyprint-override">
Code: Select all
const response = await fetch(
`https://maps.googleapis.com/maps/api/geocode/json?latlng=${lat}, ${long}&key=${key}`
);
const data= await response.json();
Code: Select all
const response = await fetch(
`https://maps.googleapis.com/maps/api/geocode/json?latlng=${lat}, ${long}&key=${key}`
);
const data= await response.json();