Open GoogleCodeExporter opened 9 years ago
There are so many ways to do this, I wonder how many people would be happy with
a
default implementation? A "get_directions_link" tag would be a start. You can
do it
in 1.2.6 with this template code:
<?php $coordinates = GeoMashup::post_coordinates(); ?>
<?php if ( !empty( $coordinates ) ) : ?>
<p><a href="http://maps.google.com/maps?daddr=<?php echo $coordinates['lat'] . ',' .
$coordinates['lng']; ?>">Get Directions To Here</a></p>
<?php endif; ?>
Original comment by dylankk...@gmail.com
on 8 Aug 2009 at 12:37
I vote yes for direction link as an option. Tried the code, works fine, but it
would
be better if the link does not opens maps.google.com, instead just using the
existing
map. (sorry..bad english)
Original comment by souhu...@gmail.com
on 13 Mar 2010 at 2:40
Can you please tell where should I paste this code :
<?php $coordinates = GeoMashup::post_coordinates(); ?>
<?php if ( !empty( $coordinates ) ) : ?>
<p><a href="http://maps.google.com/maps?daddr=<?php echo $coordinates['lat'] . ',' .
$coordinates['lng']; ?>">Get Directions To Here</a></p>
<?php endif; ?>
Original comment by antondes...@gmail.com
on 21 Sep 2010 at 10:54
As the first commenter pointed out it would be good to implement the navigation
inside the map embedded in the post instead of opening goolge maps. For example
our hobby community have a wordpress installation which acts as a kind of
yellow page implementation for finding address of stores pertaining to our
hobby in our area where each shop address is shown in the Home page via Geo
Mashup plugin. However we also needed a map embedded inside the post which
contained the address of the shop which can allow the hobbyists to navigate
from the current location to the stores especially when they use mobile. For
only that particular feature we had to use one extra plugin "Google Maps for
WordPress". It would be good to implement navigation feature along with
"current location" support which would be extremely helpful while using mobile
devices and also desktops. Kindly consider adding this feature.
Original comment by mohanasu...@gmail.com
on 24 Dec 2010 at 10:10
[deleted comment]
There is an interesting implementation of an input field and a Get Directions
button using JQuery that YOOtheme has into the Google Maps element of its ZOO
CCK product (for Joomla!). User inputs an address into the field under the map
and clicks on the Get Directions and the JQuery code adds the driving
directions and updates the map to show the path from Point A to Point B
directly on the same page. It is a very cool feature. If Geo Mashup developed
functionality like this that a user could then implement easily into a template
using a shortcode, that would be awesome. Here's a link of an example (scroll
down to the bottom of the page at this link)
http://www.yootheme.com/zoo/apps/index.php?option=com_zoo&task=item&item_id=120&
category_id=36&Itemid=5
Original comment by hds3serv...@outlook.com
on 29 Jun 2014 at 6:09
Original issue reported on code.google.com by
bseidn...@gmail.com
on 19 Jul 2009 at 5:48