Forward & Reverse Geocoding

부분 유료
Verified
분류별 Geocoding | 업데이트됨 לפני 21 ימים | Mapping
인기

9.9 / 10

지연 시간

92ms

서비스 수준

100%

Health Check

100%

모든 토론으로 돌아가기

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

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입