Answer the question
In order to leave comments, you need to log in
How to determine if a point is in a circle?
Good afternoon, tell me how to determine if a point is in a circle, the
radius of the circle is set in meters through the property
var Circle = new google.maps.Circle({
strokeColor: 'blue',
strokeOpacity: 0.8,
strokeWeight: 2,
fillColor: 'blue',
fillOpacity: 0.35,
map: myMap,
center: {lat: 50.013770, lng: 36.214603},
radius: 70000,
draggable: true
});
var x = Circle.getCenter().lat();
var y = Circle.getCenter().lng();
var r = 0.63; //радиус, высчитывал как 1 меридиан 111,111 км, а у меня 70 км, и приблизительно получилось такое значение
var xt = 50.431005;
var yt = 30.538288;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question