I have four pointpoints that represent a rectangle (a,b,c,d),. I got thisthese points from the mobile gps !GPS.
onIn my database I have this table of business locations:
bussId | longitude | latitude
.. .. ..
bussId | longitude | latitude
-----------------------------
.. .. ..
how couldHow can I know which businessbusinesses are inside the rectangle ?
I want to implement this function :
function isInsideRectangle(Point buss,Point a,Point b,Point c,Point d)
where as the Point containcontains longitude and latitude !.