TrueWay Geocoding

FREEMIUM
Verified
Par TrueWay Team | Mise à jour il y a un an | Mapping
Popularité

9.8 / 10

Latence

329ms

Niveau de service

100%

Retour à toutes les discussions

Returns "BAD_REQUEST"

avatar
208109412
il y a 2 ans

Such a cool API and free even! It works perfectly on the rapidapi site when testing it, but returns “BAD_REQUEST” when testing it in my own project.

Also—and this is true for all apis on this website—the fetch method return needs to be converted to json before being console.logged e.g.

fetch(url)
.then(function(res) { res.json() })
.then(function(data) { console.log(data) })

avatar
trueway commented il y a 2 ans

This is a problem with delimiter(comma) encoding. Location parameter looks like this: “-33.9888553%2C18.4787872”. But must be: “-33.9888553,18.4787872”.

Participez à la discussion - ajoutez un commentaire ci-dessous:

Connectez-vous / Inscrivez-vous pour publier de nouveaux commentaires
Note : 5 - Votes : 1