Coordinates approximation

21 views
Skip to first unread message

Gianpiero Venditti

unread,
Sep 28, 2011, 8:55:31 AM9/28/11
to google-map...@googlegroups.com
Hello, I would like to know if there's some api to approximate coordinates to a certain location.

Let's say I place a marker in a map on the top of a palace, however i would rather it to be placed (and visualized) on the nearest street by approximating its coordinates.

Is there any api or other methods to accomplish this task?


Thanks in advance for the help.

Barry Hunter

unread,
Sep 28, 2011, 8:58:05 AM9/28/11
to google-map...@googlegroups.com
You could try the reverse geocoder.

> --
> You received this message because you are subscribed to the Google Groups
> "Google Maps JavaScript API v3" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-maps-js-api-v3/-/GxhpUOtfGkwJ.
> 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.
>

JKurtock

unread,
Sep 28, 2011, 6:00:49 PM9/28/11
to Google Maps JavaScript API v3
Another possibility is the directionsService. Not too surprisingly,
if your "start location" is the center of the palace, the actual start
of the directions array is on the street in front of the palace. This
method requires asking for directions to somewhere, but you might be
doing that anyway.

- Jeff
Reply all
Reply to author
Forward
0 new messages