Hi,<div><br></div><div>How do I go about expanding a bounding box around a point by 3km and then getting the coordinates of that bounding box?</div><div><br></div><div>I know how to search for points within a 3km box like so:</div>
<div><br></div><div>WHERE ST_DWithin(ST_Transform(sub.centroid_geom, 32755),ST_Transform(suba.centroid_geom, 32755), 3000)</div><div><br></div><div>But I don't know how to get the coordinates of the box.</div><div><br>
</div><div>I need to find the coordinates so I can make calls to the Google Maps Geocoding Api, but to tell it to focus it's results within the bounding box.  So I would need the North East Longitude/Latitude and the South West Longitude/Latitude from the Bounding Box.</div>
<div><br></div><div>I'm sure it's simple, but I just can't figure out how to do it.</div><div><br></div><div>Cheers,</div><div><br></div><div>-Joel<br clear="all"><br>-- <br>Joel Pearson<br>Software Engineer<br>
Agile Digital Engineering Pty Ltd<br>A.B.N. 98 106 361 273<br>A: 5/28 Eyre St Kingston ACT 2604<br>P: +61 1300-858-277<br>F: +61 1300-858-477<br>M: +61 (0) 405-417-843<br>E: <a href="mailto:joel.pearson@agiledigital.com.au" target="_blank">joel.pearson@agiledigital.com.au</a><br>
W: <a href="http://www.agiledigital.com.au" target="_blank">http://www.agiledigital.com.au</a><br>
</div>