Great to hear it’s resolved, Claude, and glad to have helped with the couple of 
things needed to get it going for you. 

Thanks for offering the additional info in case it may help others consider how 
to take advantage of such geo-fencing capability from within CFML.

/charlie



From: cfaussie@googlegroups.com [mailto:cfaussie@googlegroups.com] On Behalf Of 
rai...@ozemail.com.au
Sent: Friday, March 27, 2015 8:38 PM
To: cfaussie@googlegroups.com
Subject: RE: [cfaussie] Help With Dynamic Naming A CfScript Function

 

Hi Charlie

 

Thanks for your assistance and now the code to detect the distance between 2 
points using long / lat works a treat

 

Some background for the use of the code for those who are interested

 

Its being used to detect when a tracking device is within x distance from a 
nominated point. Its for geo fence alerting, in order words we take a co 
ordinate long / lat (which you can visualise as being the centre of a circle 
with a radius of x distance). The coordinates of the centre of the circle are 
set, which creates the gep fence.

 

The variable coordinates are the location of the mobile tracking device. Each 
time the tracking device reports its current location (coordinates) those 
coordinates are passed through the code to determine how far the reported 
location is from the centre of the coordinates representing the centre of the 
circle.

 

When the distance between the 2 points is less than the radius then by 
definition it means the portable device is now inside the geo fence circle area 
if the distance is greater than the radius then the reported location is 
outside the geo fence circle

 

You then create processes to run eg cfmail alerts for emails dependant on the 
business rules you need to set relating to when the circle has been entered / 
existed

 

<snip>

-- 
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cfaussie+unsubscr...@googlegroups.com.
To post to this group, send email to cfaussie@googlegroups.com.
Visit this group at http://groups.google.com/group/cfaussie.
For more options, visit https://groups.google.com/d/optout.

Reply via email to