I am very much a novice with Arcade Expressions and I was hoping someone may be kind enough to help with writing an expression that can calculate the number of miles in a layer ('DART_Bus_Route_KML') do not fall within a 0.25 mile radius of locations on another layer ('billboards').
I thought I'd try to use the technology that everyone raves about, ChatGPT, to help with writing the expression, and it wrote this:
var bus_miles = Length(geometry(DART_Bus_Route_KML))/1609.34;
var near_billboards = Intersects(geometry(DART_Bus_Route_KML), Buffer(geometry(billboards), 0.25));
var non_near_bus_miles = Sum(Filter(bus_miles, !near_billboards));
return non_near_bus_miles;
When running the expression, I get the error message: "Execution error - Line : 1, 32: Identifier not recognised".
Any suggestions on where our AI overlord may have made an error in his expression?
Thanks to anyone who may be able to help!