title: Draw rectangle with only knowing two points
body: <p>I'm trying to write a program which draws a rectangle around two points. Going off of the <a href="https://developers.google.com/maps/documentation/javascript/examples/directions-complex" rel="nofollow noreferrer">Google Maps example</a>, I want to draw a rectangle around Penn Station (40.7506, 73.9939) and City Hall (40.7127, 74.0059). Essentially, I am wanting to mimick this cropped image of the two places:</p>
  
  <p><a href="https://i.stack.imgur.com/ogO5I.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ogO5I.png" alt="enter image description here"></a></p>
  
  <p>The borders of this image would be the rectangle. The part I'm having trouble is building one when I only know the two points as I mentioned above. Is there any way to do this?</p>