GeoDB Cities

부분 유료
Verified
분류별 Michael Mogley | 업데이트됨 17 days ago | Data
인기

9.9 / 10

지연 시간

57ms

서비스 수준

100%

Health Check

100%

모든 토론으로 돌아가기

Getting the following errors for the below code snippet.It says you arenot subscribed to this API

Rapid account: Roopareddy 90
roopareddy90
5 months ago

function checkPalces(event) {
event.preventDefault();
var hotelInTheCity = document.getElementById(“destination-hotel”).value;
if (!hotelInTheCity) {
console.log(“please enter the city to search hotel”);
return;
}
var placesNearLocationUrl =
https://wft-geo-db.p.rapidapi.com/v1/geo/cities/Q60/nearbyCities?radius=100”;
var options = {
method: “GET”,
headers: {
“X-RapidAPI-Key”: “505effbf24msh417b1aeaeb14b0ap1a3803jsne7b48bea444e”,
“X-RapidAPI-Host”: “wft-geo-db.p.rapidapi.com”,
},
};
fetch(placesNearLocationUrl, options)
.then(function (response) {
if (!response.ok) {
throw response.json();
}
return response.json();
})
.then(function (placesNearLocation) {
console.log(hotel);
});
}

Rapid account: Wirefreethought
wirefreethought Commented 5 months ago

Please edit your post to NOT display your key! This is a public forum! Please contact RapidAPI support to see what’s wrong with your subscription.

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

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