I have a database table with POI's that i want to connect with a record in my Geo table (containing cities, countries).
- Within the POI table i have a Lat & Lon field.
- Within the Geo table i have 4 coordinates, for West/East and North/South
I'm using Laravel 5 / Eloquent and Mysql. The coordinates are stored as a decimal (11,8). I can add multiple columns if needed.
How can i check if a POI is located within those 4 coordinates?