How can I find the nearest intersection via the Google Maps API?

Posted by dusoft on Stack Overflow See other posts from Stack Overflow or by dusoft
Published on 2009-02-16T21:29:49Z Indexed on 2010/04/01 10:43 UTC
Read the original article Hit count: 254

Filed under:
|
|
|

How can I find the closest intersection of the street I have coordinates of?

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.

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.

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.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about api