Socrata SODA within polygon is too complex -
using socrata soda api within_polygon error thrown stating complex.
{ "code" : "query.execution.querytoocomplex", "error" : true, "message" : "only simple comparison filters allowed", "data" : { "reason" : "validation.complex-filter" } }
here working version:
you're using old api endpoint, rather new 1 supports within_polygon(...)
. you'll want use this 1 instead. query works expected against new endpoint:
https://www.dallasopendata.com/resource/5nug-crr9.json?$where=within_polygon(location,%20%27multipolygon%20(((-96.79920%2032.77946,-96.807768%2032.7751,-96.7999%2032.76999,-96.79920%2032.77946)))%27)
for more details on migration process, check out this entry in api changelog.
Comments
Post a Comment