How can you figure out if this:
$Now = array(
'lat' => '59.565423',
'long' => '7.347268'
);
is inside this:
$x = array(
'x1' => '59.570281', // point 1, north west - lat
'y1' => '7.341667', // ^^^^^^ - lon
'x2' => '59.570281', // point 2, north east - lat
'y2' => '7.351087', // ^^^^^^ - lon
'x3' => '59.568195', // point 3, south east - lat
'y3' => '7.351087', // ^^^^^^ - lon
'x4' => '59.568195', // point 4, south west - lat
'y4' => '7.341667' // ^^^^^^ - lon
);
Supposed to return 1 if inside or 0 if outside.