AFAIK there's none that covers that scenario. The
Google Map plugin doesn't allow directions.
All the Google Maps API's (embed, Javascript, Static Maps) require quite advanced Javascript knowledge or multiple steps to draw a path map.
You need to either resp. 1) get a developer key, 2) initialize via Javascript and set latitude & longitude points, or 3) manually plot the path between start & destination.
The quickest and easiest solution would be to take a screenshot of your Google map and put it in an
img
tag.
I also found
1 online generator which works for directions
yes i know the solution which shawn show with the link.
But i like solution (if it is possible) to add only a syntax (for example: (%routeplanner%) to the GS page and the
source of that like
<form action=”http://maps.google.com/maps” method=”get” target=”_blank”>
Enter your starting address:
<input type=”text” name=”saddr” />
<input type=”hidden” name=”daddr” value=”854 Deerfield Rd, Allen, TX” />
<input type=”submit” value=”get directions” />
</form>
with my modifications are inside a plugin which handle my changes.
Is it possible to do that with any plugin ?
Why i like solution like this is the i use a solution like this <form>.......</form> and if user make changes in the text area of the page and save changes it does not work anymore.
(2015-09-16, 03:31:36)phpman Wrote: [ -> ]yes i know the solution which shawn show with the link.
But i like solution (if it is possible) to add only a syntax (for example: (%routeplanner%) to the GS page and the
source of that like
<form action=”http://maps.google.com/maps” method=”get” target=”_blank”>
Enter your starting address:
<input type=”text” name=”saddr” />
<input type=”hidden” name=”daddr” value=”854 Deerfield Rd, Allen, TX” />
<input type=”submit” value=”get directions” />
</form>
with my modifications are inside a plugin which handle my changes.
Is it possible to do that with any plugin ?
Why i like solution like this is the i use a solution like this <form>.......</form> and if user make changes in the text area of the page and save changes it does not work anymore.
Wait a bit. I will make plugin for you.
I've updated my shortcodes plugin to enable directions support.
Version 1.1 now allows you to specify a start and end point and an option to specify whether a directions panel is displayed or not.
Just install and use the shortcode below on your page.
[googlemap z='10' w=600'' h='400' start="dundrum, dublin" end="crumlin, dublin" /]
Adding directions="true" will add a direction panel and list the route.
z is the zoom level
w,h width and height in pixels
start and finish are the start and end points.
(2015-09-16, 06:07:43)n00dles101 Wrote: [ -> ]I've updated my shortcodes plugin to enable directions support.
Version 1.1 now allows you to specify a start and end point and an option to specify whether a directions panel is displayed or not.
Just install and use the shortcode below on your page.
[googlemap z='10' w=600'' h='400' start="dundrum, dublin" end="crumlin, dublin" /]
Adding directions="true" will add a direction panel and list the route.
z is the zoom level
w,h width and height in pixels
start and finish are the start and end points.
Nice and universal solution.
phpman, I sent you the link to my small plugin. Test it.