Given a latitude and longitude, and distance, I want to find a bounding box
问题 Given a latitude and longitude, and distance, I want to find a bounding box where the distances are less than the given distance. This questions was asked here: How to calculate the bounding box for a given lat/lng location? I donot want this partcularly accurate, so I have modified and simplified it to def boundingBox(latitudeInDegrees, longitudeInDegrees, halfSideInKm): lat = math.radians(latitudeInDegrees) lon = math.radians(longitudeInDegrees) halfSide = 1000*halfSideInKm RADIUS_OF_EARTH