HI,
Trying to compare all hotspots to check if they have a not too close ath.
If 2 are too close I remove 1 based on another param.
Problem is hotspots ath is between -180 and 180, so should I use getlooktodistance(distance,hotspot[a].ath,0,hotspot[b].ath,0) ?
Also what would be the best most efficient method to compare every hotspot to each other ?
Here is the action I use now, but it's not working as wanted :
Code
<action name="remove_unwanted_googlenav" protect="true">
for(set(i,0),i LT hotspot.count,inc(i),
if(hotspot[get(i)].style == googlestyle OR hotspot[get(i)].style == googlestyle_vr,
for(set(y,0),y LT hotspot.count,inc(y),
if(hotspot[get(i)].style == googlestyle OR hotspot[get(i)].style == googlestyle_vr,
if(hotspot[get(i)] != hotspot[get(y)],
calc(dif,hotspot[get(i)].hdir - hotspot[get(y)].hdir);
Math.abs(dif);
if(dif LE 30,
if(hotspot[get(i)].distance LT hotspot[get(y)].distance,
removehotspot(get(hotspot[get(y)].name),true);
,
removehotspot(get(hotspot[get(i)].name),true);
);
);
);
);
);
);
);
</action>
Display More
thanx for your help !