I am working in a Laravel application where Polygon Coordinates drawn on Google Map store in a column with data type polygon.
Later below code is used to search a Coordinate inside those polygons.
$point = new Point( $request->latitude, $request->longitude );
$zone = RestaurantZones::contains( 'coordinates', $point )->pluck( 'id' );
Now I would like to store Circle Data drawn on Google Map and search a Coordinate inside that Circle in a similar way.
In a circle, you can store it by creating two fields latitude and longitude or as you have mentioned coordinates also here need to store the circle's radius to find out whether the coordinates are inside that circle or not. Let's demonstrate this.
DRAW & STORE CIRCLE'S COORDINATES AND RADIUS
when you have stored coordinates in a spatial way can use this to find out whether a coordinate is inside the circle or not
And if coordinates are in separated in lat and lng then may you use this
May this help you Kindly read Google Map JS API to understand in a better way.