'Get all lat/lon points inside a bounding box area

I am able to generate a southwest-northeast bounding box from latitude, longitude and radius. How could I possibly get all the points within that bounding box area?

I have tried creating a shapely.geometry.polygon.Polygon object thinking I can extract the points with polygon.coords or polygon.interiors. I generated the polygon like this:

import shapely.geometry as sg

bbox = (55.74341900255196, 37.5950436686672, 55.79737829890708, 37.69096949784429)
polygon = sg.box(*bbox, ccw=True)

But nothing could possibly give all points inside the box.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source