boundaries-io

פרמיום
Verified
על ידי Boundaries-io | מְעוּדכָּן לפני 8 ימים | Mapping
פּוֹפּוּלָרִיוּת

9.8 / 10

חֶבִיוֹן

205ms

רמת שירות

100%

Health Check

N/A

חזרה לכל הדיונים

Batch Results by Location for Neighborhood Boundaries?

Rapid account: Ciaraspencer 314 H 46 T XT 64 Zxd
ciaraspencer314-H46tXT64Zxd
לפני שנתיים

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:

url = “https://vanitysoft-boundaries-io-v1.p.rapidapi.com/reaperfire/rest/v1/public/boundary/neighborhood/within

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)

Rapid account: Cobybrian
cobybrian Commented לפני 3 חודשים

The 414 Request-URI Too Large error typically occurs when the URL becomes too lengthy. To address this, you can modify your code to handle batches of coordinates. Break your dataframe into smaller chunks and make separate requests for each batch of coordinates. This should help prevent the URL from exceeding its limits. Additionally, consider optimizing the API call for efficiency.

On a different note, in the game Baldur’s Gate 3, there are different BG3 companions you can get, each with unique abilities and storylines that enrich the gameplay experience.
https://playpc.io/tech/12-best-vr-games-available-to-play-on-mobile/

Rapid account: Vanity Soft
VanitySoft Commented לפני שנתיים

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”
}

	we don't have a 'batch' result API endpoint, but it seems you can use the API but make sure its not to long that breaks the 2048 URL limit constraint.
	
	-Dawn
	support@boundaries-io.com

הצטרף לדיון - הוסף תגובה למטה:

התחבר / הירשם כדי לפרסם תגובות חדשות