Forward & Reverse Geocoding

免费增值
Verified
通过 Geocoding | 已更新 23 days ago | Mapping
人气

9.9 / 10

延迟

93ms

服务等级

100%

Health Check

100%

返回所有讨论

How do i destructure the response?

Rapid account: Csokanandras 87
csokanandras87
a year ago

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 a year ago

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

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论