Forward & Reverse Geocoding

FREEMIUM
Verified
Durch Geocoding | Aktualisiert 25 giorni fa | Mapping
Popularität

9.9 / 10

Latenz

93ms

Service Level

100%

Health Check

100%

Zurück zu allen Diskussionen

How do i destructure the response?

Rapid account: Csokanandras 87
csokanandras87
un anno fa

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 un anno fa

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

Nehmen Sie an der Diskussion teil - fügen Sie unten einen Kommentar hinzu:

Anmelden / Registrieren, um neue Kommentare zu veröffentlichen