Skip to main content
Tweeted twitter.com/StackGIS/status/1170577647295819777
improved grammar, formatting
Source Link
Erica
  • 9k
  • 4
  • 34
  • 80

How to know if a point is inside a rectangle on the map?

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 !.

How to know if a point inside a rectangle on the map?

I have four point that represent rectangle (a,b,c,d), I got this points from the mobile gps !

on my database I have this table:

bussId | longitude | latitude

.. .. ..

how could I know which business 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 contain longitude and latitude !

How to know if a point is inside a rectangle on the map?

I have four points that represent a rectangle (a,b,c,d). I got these points from mobile GPS.

In my database I have this table of business locations:

bussId | longitude | latitude
-----------------------------
  ..      ..          ..

How can I know which businesses are inside the rectangle?

I want to implement this function:

function isInsideRectangle(Point buss,Point a,Point b,Point c,Point d)

where the Point contains longitude and latitude.

added 8 characters in body
Source Link
david
  • 81
  • 1
  • 1
  • 3

I have four point that represent rectangle (a,b,c,d), I got this points from the mobile gps !

on my database I have this table:

bussId | longitude | latitude

.. .. ..

how could I know which business 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 contain longitude and latitude !

I have four point that represent rectangle (a,b,c,d), I got this points from the mobile gps !

on my database I have this table:

bussId | longitude | latitude

.. .. ..

how could I know which business inside the rectangle ?

I want to implement this function :

function isInsideRectangle(Point buss,Point a,Point b,Point d)

where as the Point contain longitude and latitude !

I have four point that represent rectangle (a,b,c,d), I got this points from the mobile gps !

on my database I have this table:

bussId | longitude | latitude

.. .. ..

how could I know which business 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 contain longitude and latitude !

Source Link
david
  • 81
  • 1
  • 1
  • 3

How to know if a point inside a rectangle on the map?

I have four point that represent rectangle (a,b,c,d), I got this points from the mobile gps !

on my database I have this table:

bussId | longitude | latitude

.. .. ..

how could I know which business inside the rectangle ?

I want to implement this function :

function isInsideRectangle(Point buss,Point a,Point b,Point d)

where as the Point contain longitude and latitude !