12-26-2009, 05:38 AM
|
#8 (permalink)
|
|
The Wanderer
Join Date: Aug 2009
Posts: 18
Thanks: 1
|
Quote:
Originally Posted by russellharrower
Hi guys,
trying to work out the following
I have created a list of GeoLocations and I would like to create a simple system that tells me if a person is inside the area of the GeoLocation I have set for e.g.
If a person it in the area of
144.30'39.82/-38.16'22.00 by with of 144.31'12.99/-38.16'16.20
by
144.30'41.77/-38.16'37.09 by with of 144.31'12.74/-38.16'33.05
so if a person is in that area I want to show that info.
I have the script that collects the GeoLocation but not away to know if a person is in an area.
EDIT: Here is the picture of the area I want.

|
Try this, I worked with something like this once with graph dimensions once. I dont remember it exactly, but from how I've always consider it was to imagine it as a square. So point 1, 2, 3, and 4 are the cases...
PHP Code:
if( (144.30.39.82 <= -38.16.22.00) && /*Point #1*/ (144.31.12.99 <= -38.16.16.20) && /*Point #2*/ (144.30.41.77 <= -38.16.37.09) && /*Point #3*/ (144.31.12.74 <= -38.16.33.05) /*Point #4*/ ) { print("You are within this area"); }
|
|
|
|