Is there an endpoint to retrieve batch results of neighborhood boundaries with a list of Lat, Lng? I recieve:
414 Request-URI Too Large
when looping through Lat, Lng points in dataframe in “Query by Location” using this code:
lat = df[“Lat”]
lng = df[“Long”]
querystring = {“longitude”:lat,“latitude”:lng}
headers = {
‘x-rapidapi-host’: “vanitysoft-boundaries-io-v1.p.rapidapi.com”,
‘x-rapidapi-key’: “my-key”
}
response = requests.request(“GET”, url, headers=headers, params=querystring)
print(response.text)
Junte-se à discussão - adicione o comentário abaixo:
Hello,
We follow the best practice with limiting URL Length, which means a URL should never be longer than 2,048 character.
What is your latitude, and longitude parameter value used when you receive a HTTP 414 error? you should probably truncate the values to a significant digit
for example:
},“params”:{
“longitude”:"-92.3629",
“latitude”:“34.6937”
}
and not something like which may results in the 414 error of URL limit.
},“params”:{
“longitude”:"-92.36290000000000",
“latitude”:“34.6937000000000000”
}