Lets say I have 2 kind of coordinate, first called center_point
and second called test_point
. I want to know if test_point
coordinate is inside near or not to center_point
coordinate by applying radius
threshold. If I write it, its like:
center_point = [{'lat': -7.7940023, 'lng': 110.3656535}]
test_point = [{'lat': -7.79457, 'lng': 110.36563}]
radius = 5 # in kilometer
How to check if the test_point
inside or outside the radius from center_point
in Python? how I perform this kind task in Python?
Result expected will say that test_point
inside or outside the radius
from center_point
coordinate.