title: check if a coordinate is contained within a circle in google maps?
body: <p>I'm trying to make an application that tells me if a coordinate is contained in a <code>circle</code>. </p>
  
  <p>for that every time I click on a point on the map a I get the coordinate.I would like to know if that new coordinate is contained within the circle or not</p>
  
  <p>I would also like to know how I can make a circle occupy 5 meters around from a coordinate. in my example the radius is: <code>50000</code> but I do not know how to perform the conversion to set the value in meters.</p>
  
  <p>this is my code:</p>
  
  <p><a href="http://plnkr.co/edit/OI4sjcuS526rFYxPnvDv?p=preview" rel="noreferrer">http://plnkr.co/edit/OI4sjcuS526rFYxPnvDv?p=preview</a></p>
  
  <pre><code>function initMap() {
      var map = new google.maps.Map(document.getElementById('map'), {
          center: {lat:4.624335 , lng: -74.063644 },
          zoom: 5,
      });
  
      //circle coordinates
      var circle = new google.maps.Circle({
          map: map,
          radius: 50000,    
          fillColor: '#FFFFFF',
          opacity:0,
          center:{lat:4.624335 , lng: -74.063644 }
      });   
  
      google.maps.event.addListener(map, 'click', function(e) {
          //I get new coordinates ( e.latLng)
      });
  }
  </code></pre>
  
  <p>thanks!</p>
  
  <p><strong>Updated</strong></p>
  
  <p>They have marked this question as a duplicate, with this solution
  (<a href="http://jsfiddle.net/kaiser/wzcst/embedded/result/" rel="noreferrer">http://jsfiddle.net/kaiser/wzcst/embedded/result/</a>)</p>
  
  <p>but it does not really satisfy my problem, because as you can see in the image, the solution fails.</p>
  
  <p><a href="https://i.stack.imgur.com/vaJmg.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/vaJmg.jpg" alt="enter image description here"></a></p>