Street Corners

887 views
Skip to first unread message

Bruno J

unread,
Aug 1, 2010, 3:11:24 PM8/1/10
to Google Maps JavaScript API v3
Hello,

I'm sorry if there's already an answer for this question out there,
but I couldn't find anything relevant.

I'd like to know how to find the coordinates (lat, long) of the corner
of two streets. For example, the coordinate of the corner of Worth
Street and Lafayette Stree (New York) is (40.715587, -74.003052). Is
there a method to, given any two streets, get their intersection
coordinate (if they intersect)?

Thanks in advance

geoco...@gmail.com

unread,
Aug 2, 2010, 12:59:06 AM8/2/10
to Google Maps JavaScript API v3
You need to geocode that address. The v2 google geocoder returns:
Lafayette St & Worth St, New York, NY 10013, USA (40.7155897,
-74.0030342)

http://www.geocodezip.com/example_geo2.asp?addr1=Worth%20Street%20and%20Lafayette%20Street,%20New%20York,%20NY&geocode=1


Whether or not intersections are available will depend on the data
provider (the country of interest).

I would assume the v3 geocoder and the geocoding service would pretty
much use the same data.

-- Larry

>
> Thanks in advance

Bruno J

unread,
Aug 2, 2010, 7:39:26 PM8/2/10
to Google Maps JavaScript API v3
Unfortunately I think the intersections are not avaible at Brasil
streets (the ones I was really interested in). Don't you know if
there's another way of discovering it? I tried do add markers all
along the streets using their numbers (like 0 Street A, 100 Street A,
200 Street A... and 0 Street B, 100 Street B...) to compare all
markers and find the closest ones (it would be an aproximation to the
intersection) but it seems the numbers are not ordered in the street
(as I think it should be). In some cases, the order of the numbers is
like 0, 100, 700, 300, 400, 200...

One example of streets I would like to know the intersection is:
R. Silva Só, Porto Alegre - RS, Brasil
and
Av. Ipiranga, Porto Alegre - RS, Brasil

On 2 ago, 01:59, "geocode...@gmail.com" <geocode...@gmail.com> wrote:
> On Aug 1, 12:11 pm, Bruno J <bruno...@gmail.com> wrote:
>
> > Hello,
>
> > I'm sorry if there's already an answer for this question out there,
> > but I couldn't find anything relevant.
>
> > I'd like to know how to find the coordinates (lat, long) of the corner
> > of two streets. For example, the coordinate of the corner of Worth
> > Street and Lafayette Stree (New York) is (40.715587, -74.003052). Is
> > there a method to, given any two streets, get their intersection
> > coordinate (if they intersect)?
>
> You need to geocode that address.  The v2 google geocoder returns:
> Lafayette St & Worth St, New York, NY 10013, USA (40.7155897,
> -74.0030342)
>
> http://www.geocodezip.com/example_geo2.asp?addr1=Worth%20Street%20and...

David Giglio

unread,
Aug 2, 2010, 7:48:24 PM8/2/10
to google-map...@googlegroups.com
Hey,

There is a new feature on google maps where you can drop at lat/lng marker. This would be useful for just doing a few of these, if that is all you need.

On the top right of google maps there is a little green marker that says 'new!' next to it. click that and it brings up a menu of features you can turn on, one of which is drop lat/lng marker. Then you just find your spot on the map, right click and select 'Drop Lat/Lng Marker' and it will show the coordinates.

Not sure if that will help you.

> --
> You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
> To post to this group, send email to google-map...@googlegroups.com.
> To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages