Forward & Reverse Geocoding

부분 유료
Verified
분류별 Geocoding | 업데이트됨 14 दिन पहले | Mapping
인기

9.9 / 10

지연 시간

92ms

서비스 수준

100%

Health Check

100%

모든 토론으로 돌아가기

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

Rapid account: F Vanwoerden 23
f.vanwoerden23
3 वर्ष पहले

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]”
],
]);

Rapid account: F Vanwoerden 23
f.vanwoerden23 Commented 3 वर्ष पहले

That works, thank you for the quick help.

Rapid account: Geocode Support
GeocodeSupport Commented 3 वर्ष पहले

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]”
],
]);

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

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