Adding "directions to here" link into infowindow

4,230 views
Skip to first unread message

mmamedov

unread,
Jul 22, 2009, 12:53:41 PM7/22/09
to Google Maps JavaScript API v3
Hi,

I am new in Maps API, I started with V3. I have markers on the map,
and need to add links into infowindow of each marker for getting
directions from/to that point. Links might open in a new window - not
necessarily inside my map. I saw this functionality on V2 maps.

Should I manually construct URLs for directions, or is there a way you
could do it directly with the API?
Thanks.

pamela (Google Employee)

unread,
Jul 22, 2009, 5:34:55 PM7/22/09
to google-map...@googlegroups.com
There's no built-in functionality for that in the API right now. We
offer some tips here:
http://code.google.com/apis/maps/faq.html#directions_exists

- pamela

mmamedov

unread,
Jul 22, 2009, 5:49:08 PM7/22/09
to Google Maps JavaScript API v3
Are you planning to add GDirections or something similar to that into
V3?

On Jul 22, 4:34 pm, "pamela (Google Employee)" <pamela...@gmail.com>
wrote:
> There's no built-in functionality for that in the API right now. We
> offer some tips here:http://code.google.com/apis/maps/faq.html#directions_exists
>
> - pamela
>

pamela (Google Employee)

unread,
Jul 22, 2009, 5:50:20 PM7/22/09
to google-map...@googlegroups.com
Yes, we will add that functionality in the future. Star this issue:
http://code.google.com/p/gmaps-api-issues/issues/detail?id=1421

mike swift

unread,
Nov 10, 2011, 3:59:16 PM11/10/11
to google-map...@googlegroups.com
Has this ever been implemented?  What about other links such as search nearby?

geoco...@gmail.com

unread,
Nov 10, 2011, 6:06:27 PM11/10/11
to Google Maps JavaScript API v3
On Nov 10, 12:59 pm, mike swift <mswift1...@gmail.com> wrote:
> Has this ever been implemented?

Yes. Directions are available on the v3 API, please see the
documentation and the examples in the documentation.

-- Larry

mike swift

unread,
Nov 10, 2011, 6:30:35 PM11/10/11
to google-map...@googlegroups.com

Hi can you provide specific examples or links to specific items in the documentation I have read to all of the documentation I do not see how to building in the window includes default links from google maps

By default links I'm referring to link such as get directions or search nearby or save the map.

Thank 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.

MymsMan

unread,
Nov 11, 2011, 5:02:59 AM11/11/11
to google-map...@googlegroups.com
The API does not provide all of the bells and whistles available on the maps.google.com infowindow interface but it provides the building blocks necessary for you to write code to implement things like 'get directions'

You cannot, AFAIK, save to map using the Google My Places maps but you could save locations in your own database for subsequent redisplay
Reply all
Reply to author
Forward
0 new messages