How can you calculate the start and stop coordinates of a polyline in ArcGIS online using Arcade?
With points you can use the following expression.
var CoorX = Round(geometry($feature).x, 6);
var originShift = 2.0 * PI * 6378137.0 / 2.0;
var lon = (CoorX / originShift) * 180.0;
// var lat = (y / originShift) * 180.0;
// lat = 180.0 / PI * (2.0 * Atan( Exp( lat * PI / 180.0)) - PI / 2.0);
return lon;
What is a comparable expression to use for a polyline feature? I am just trying to get the coordinates at the start and end of the polyline. I don't need any points in between.
Thanks in advance.