title: Join tables on a geo range
body: <p>I have 2 independent tables (Links &amp; Sections). The information inside link table is somewhat like this, </p>
  
  <pre><code>Links Table
  ----------------------------------------------------------------------------
  |    id    |    Description    | startLat | startLng | endLat   | endLng   |
  ----------------------------------------------------------------------------
  | 1000259  | Link Number 1     |52.891372 |-1.768254 |52.892545 |-1.775278 |
  | 1000359  | Link Number 2     |52.894892 |-1.780513 |52.894306 |-1.774793 |
  | 1000279  | Link Number 3     |52.894306 |-1.774793 |52.895000 |-1.765273 |
  | 1000258  | Link Number 4     |52.895000 |-1.765273 |52.895500 |-1.755278 |
  | 1000255  | Link Number 5     |52.895500 |-1.755278 |52.896500 |-1.745278 |
  | 1000555  | Link Number 6     |52.896500 |-1.745278 |52.897250 |-1.735278 |
  ----------------------------------------------------------------------------
  </code></pre>
  
  <p>And the Sections table appears like this, </p>
  
  <pre><code>Sections Table
  -----------------------------------------------------------------------------
  |    id    | Description    | fromLat    | fromLng    | toLat    | toLng    |
  -----------------------------------------------------------------------------
  | 625      | Section 1      | 52.893598  | -1.775120  | 52.885053|-1.756409 |
  | 713      | Section 2      | 52.897273  | -1.788324  | 52.898285|-1.724721 |
  | ...      | ...            | ...        | ...        | ...      | ...      |
  | ...      | ...            | ...        | ...        | ...      | ...      |
  -----------------------------------------------------------------------------
  </code></pre>
  
  <p>I want to run a query which gives me all the links which are covered by a section. So if I say how many links come under Section 2, I should receive all the links that are covered by the lat/lng of section information. </p>
  
  <p>P.S. Please note, Sections are longer than Links ... Any Help!!! </p>