Forward & Reverse Geocoding

GRATIS CON POSSIBILITÀ DI UPGRADE
Verified
Da Geocoding | Aggiornamento un mese fa | Mapping
Popolarità

9.9 / 10

Latenza

203ms

Livello di servizio

100%

Torna a tutte le discussioni

Error: "Endpoint/v1/forward does not exist"

avatar
f.vanwoerden23
un anno fa

This might be a very stupid question, but as I’m a first time user of rapidAPI I’m having problems anyway.

When calling the forward endpoint via PHP & Guzzle using the url provided I get a 404 response and the message that the endpoint does not exist.

What am I doing wrong and how can I fix it?

$url = “https://forward-reverse-geocoding.p.rapidapi.com/v1/forward?" . implode(”&", $encodedParameters) . “&country=NL&accept-language=nl&countrycodes=NL&polygon_threshold=0.0”

$client->request(‘POST’, $url, [
‘headers’ => [“x-rapidapi-host” => “forward-reverse-geocoding.p.rapidapi.com”,
“x-rapidapi-key” => “[key]”
],
]);

avatar
f.vanwoerden23 commented un anno fa

That works, thank you for the quick help.

avatar
GeocodeSupport commented un anno fa

The endpoint only allows GET requests. POST requests are not allowed and will result in a 404 http error.

So please try:

$url = “https://forward-reverse-geocoding.p.rapidapi.com/v1/forward?" . implode(”&", $encodedParameters) . “&country=NL&accept-language=nl&countrycodes=NL&polygon_threshold=0.0”

$client->request(‘GET’, $url, [
‘headers’ => [“x-rapidapi-host” => “forward-reverse-geocoding.p.rapidapi.com”,
“x-rapidapi-key” => “[key]”
],
]);

Partecipa alla discussione - aggiungi un commento di seguito:

Accedi/Iscriviti per pubblicare nuovi commenti
Valutazione: 3.7 - Voti: 3