=== MK Google Directions === Contributors: manoj_rana91986 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7N283YV4KLEQ2 Tags: google maps, directions, distance calculator, routes, driving directions Requires at least: 6.0 Tested up to: 7.1 Stable tag: 4.0.0 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Show routes, distance, travel time and step-by-step driving directions between two places using Google Maps. == Description == MK Google Directions shows the driving route between two places on a Google Map, using the Google Routes API and Places API (New). * Route line with start and end markers. * Distance and travel time, in kilometres or miles. * Step-by-step driving directions. * Address suggestions for visitors and on the map edit screen. * Default origin and destination for each map, which can be hidden from visitors. * Custom map width and height. * Multiple maps, including several on one page. * "MK Google Directions" block and `[MKGD]` shortcode. * Multiple map languages. For more details: [Click here](http://www.webtamarin.com/wordpress-plugins/mk-google-directions/) Created By: Manoj Rana == Google Cloud requirements == Your API key needs billing enabled and these APIs: Maps JavaScript API, Routes API and Places API (New). A Map ID is optional for testing and recommended for live sites. == External services == This plugin loads the Google Maps JavaScript API on pages that show a map. Addresses entered or saved are sent to Google to suggest places and calculate routes. Terms: https://cloud.google.com/maps-platform/terms Privacy: https://policies.google.com/privacy == Installation == 1. Upload the plugin to your /wp-content/plugins/ directory. 2. Activate the plugin through the 'Plugins' menu in WordPress. 3. In Google Cloud, enable billing, Maps JavaScript API, Routes API and Places API (New), then create an API key. 4. Go to MK-GD > Settings and save the API key, language and (optionally) your Map ID. 5. Go to MK-GD > Add New to create a map. 6. Add the "MK Google Directions" block to a post or page and select the map, or use the [MKGD id="postID"] shortcode. == Frequently Asked Questions == = How do I add a map to a post or page? = Use the "MK Google Directions" block, or the [MKGD id="postID"] shortcode. = Do my existing shortcodes still work after updating to 4.0.0? = Yes. Shortcodes and saved map settings are unchanged. The map must be published for visitors to see it. = The map shows but there is no route or no address suggestions. = Check that Routes API and Places API (New) are enabled for your API key, that billing is active, and that any key restrictions allow your domain. = Can visitors drag the route? = No. Route dragging was removed in 4.0.0. == Screenshots == 1. Map with origin, destination, distance and travel time. 2. Step-by-step driving directions below the map. 3. Map settings on the edit screen, with address search. 4. The MK Google Directions block in the editor. 5. Plugin settings: API key, Map ID and language. == Upgrade Notice == = 4.0.0 = Requires the Routes API and Places API (New). Routes can no longer be dragged. == Changelog == = 4.0.0 = * Moved to the Google Routes API and Places API (New). * Added an MK Google Directions block. * Added an optional Map ID setting. * New address search on the map edit screen. * Removed route dragging, which the new route rendering does not provide. = 3.2.0 = * Fixed unexpected output during activation. * Security: validate the shortcode ID, escape map output and sanitize admin request values. * Fixed distance and duration not displaying. * Fixed multiple maps on one page interfering with each other. * Google Maps now loads asynchronously and only where needed. * Permalinks are refreshed on activation. * Updated the bundled CMB2 library. = 1.0 = = 1.1 = * Released on 5/30/2011 = 2.0 = * Plugin upgraded to Wordpress 3.5. * Released on 04/23/2013 = 2.1 = * Content filter issues fixed. * Released on 04/30/2013 = 2.2 = * Unit system can be switched between Metric & Imperial. Now the distance can be get in miles or kilometers. * Released on 01/20/2014 = 2.2.1 = * Compatible on mobile devices. * Released on 06/09/2014 = 2.2.2 = * Option to set a default start location added. * Hide/Show start location field according to your needs. * Released on 07/07/2014 = 2.2.3 = * Option to set a default destination location added. * Hide/Show destination location field according to your needs. * Released on 07/08/2014 = 3.0 = * Use on latest Google Direction API's. * Use of custom post types to add any number of maps. * New UI and rewritten code-base. * Released on 05/19/2023 = 3.1 = * Fixed some CSS and coding bugs. * Released on 03/06/2024 = 3.1.1 = * Fixed stored cross-site scripting vulnerability . * Released on 02/25/2025