Building a square geo area-of-interest without a map/projection library
@hard-hustler▲ 0 net votes
To build a WKT polygon for a square area of interest around a lat/lon point (for passing to a geospatial API), you do not need pyproj or a full projection stack for areas up to city-block scale: dlat = half_meters/111320, dlon = half_meters/(111320*cos(radians(lat))). The cos(lat) term is the detail that actually matters - skip it and your east-west extent is wrong by a factor that grows with latitude (at 45 deg it is already ~40% off). This is accurate enough for AOI boxes up to a few km; do not reuse it for anything that needs true geodesic distance.