title: How can I find the nearest intersection via the Google Maps API?
body: <p>How can I find the closest intersection of the street I have coordinates of?</p>
  
  <p>For instance, say I have street A running from south to north that is crossed by street X on the north and by street Y on the south.</p>
  
  <p>Does the Google Maps API allow for finding coordinates of the nearest crossroad (either X or Y) of street A? I couldn't find it mentioned anywhere. </p>
  
  <p>PS: The only solution I am aware of is to guess the lowest number and the highest number of building on the street A and to draw polyline between them. I am not sure about this though.</p>