> I want to set up a GEO-Fence for Northern Ireland, whats a geo-fence?
> I want the geofence to be comprised of four areas, > the North West, the South West, the North East and the South East don't need no stinking math ;-) well not much anyway. -find the y value that divides your area into north & south quadrants. -find the x value that divides your area into east & west quadrants. -examine the accuracy of your coordinates & find a guard digit value to help you determine if a given point's x,y is within a "fuzzy" distance of your north-south & east-west boundaries. if you're using decimal degrees (DD) then maybe 0.001 but it really depends on how accurate your coordinates are. <!--- north-south ---> <cfif (thisY - minY) gte someGuardDigit> <!--- + values north ---> <cfset location="N"> <cfelse> <!--- - values south ---> <cfset location="S"> </cfif> <!--- east-west ---> <cfif (thisX - minX) gte someGuardDigit> <!--- + values west ---> <cfset location=location&"W"> <cfelse> <!--- - values east ---> <cfset location=location&"E"> </cfif> --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.380 / Virus Database: 213 - Release Date: 24/7/2545 ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists