Forward & Reverse Geocoding

GRATIS CON POSSIBILITÀ DI UPGRADE
Verified
Da Geocoding | Aggiornamento 22 дня назад | Mapping
Popolarità

9.9 / 10

Latenza

93ms

Livello di servizio

100%

Health Check

100%

Torna a tutte le discussioni

How do i destructure the response?

Rapid account: Csokanandras 87
csokanandras87
год назад

Hello,

I am using next.js and JSON.stringify to convert the text() into a valid JSON object, but I can’t access the address and the inner properties?

How can I do that?

Rapid account: Geocode Support
GeocodeSupport Commented год назад

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().

Partecipa alla discussione - aggiungi un commento di seguito:

Accedi/Iscriviti per pubblicare nuovi commenti