code: def geometry_within_radius(geometry, center, radius):
      
      if geometry['type'] == 'Point':
          return point_distance(geometry, center) <= radius
      elif geometry['type'] == 'LineString' or geometry['type'] == 'Polygon':
          point = {}
          # it's enough to check the exterior ring of the Polygon
          coordinates = geometry['coordinates'][0] if geometry['type'] == 'Polygon' else geometry['coordinates']
  
          for coordinate in coordinates:
              point['coordinates'] = coordinate
              if point_distance(point, center) > radius:
                  return False
      return True
docs: To valid whether point or linestring or polygon is inside a radius around a center
  
      Keyword arguments:
      geometry  -- point/linstring/polygon geojson object
      center    -- point geojson object
      radius    -- radius
  
      if(geometry inside radius) return true else false