Forward & Reverse Geocoding

免费增值
Verified
通过 Geocoding | 已更新 hace 15 días | Mapping
人气

9.9 / 10

延迟

92ms

服务等级

100%

Health Check

100%

返回所有讨论

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

Rapid account: F Vanwoerden 23
f.vanwoerden23
hace 3 años

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 hace 3 años

That works, thank you for the quick help.

Rapid account: Geocode Support
GeocodeSupport Commented hace 3 años

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

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论