GeoDB Cities

פרמיום
Verified
על ידי Michael Mogley | מְעוּדכָּן 21 days ago | Data
פּוֹפּוּלָרִיוּת

9.9 / 10

חֶבִיוֹן

54ms

רמת שירות

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.

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות