How do I know if a Lat,Lng point is contained within a circle?
问题 Ok pretty self explanatory. I\'m using google maps and I\'m trying to find out if a lat,long point is within a circle of radius say x (x is chosen by the user). Bounding box will not work for this. I have already tried using the following code: distlatLng = new google.maps.LatLng(dist.latlng[0],dist.latlng[1]); var latLngBounds = circle.getBounds(); if(latLngBounds.contains(distlatLng)){ dropPins(distlatLng,dist.f_addr); } This still results in markers being places outside the circle. I\'m