Ask your WordPress questions! Pay money and get answers fast! (more info)

Available URL parameters for new GMaps directions link scheme

  • SOLVED

Within my plugin Leaflet Maps Marker respectively Maps Marker Pro I automatically add a directions link to each map panel above the maps, which allows users to start a directions search directly on Google maps in a new window, e.g.
[[LINK href="http://maps.google.com/maps?daddr=Ewaldgasse%2C+Wien%2C+%C3%96sterreich&t=m&layer=1&doflg=ptk&om=0"]]http://maps.google.com/maps?daddr=Ewaldgasse%2C+Wien%2C+%C3%96sterreich&t=m&layer=1&doflg=ptk&om=0[[/LINK]] (or click on the car icon above demo maps on [[LINK href="https://demo.mapsmarker.com"]]https://demo.mapsmarker.com[[/LINK]] for an example)

I now noticed that with the new Google Maps interface, after that URL is called, it is changed to e.g.

[[LINK href="https://www.google.com/maps/dir//Ewaldgasse,+1110+Wien,[email protected],15.414459,15z/data=!3m1!4b1!4m8!4m7!1m0!1m5!1m1!1s0x476daa1810e5ac1d:0x3973304e73d97acd!2m2!1d16.4230421!2d48.1632836"]]https://www.google.com/maps/dir//Ewaldgasse,+1110+Wien,[email protected],15.414459,15z/data=!3m1!4b1!4m8!4m7!1m0!1m5!1m1!1s0x476daa1810e5ac1d:0x3973304e73d97acd!2m2!1d16.4230421!2d48.1632836[[/LINK]]
and the options initially provided (&t=, &doflg=...) do not have any effects anymore (reference for old ULR parameters used and implemented within my plugin: [[LINK href="https://web.archive.org/web/20110808101454/http://mapki.com/wiki/Google_Map_Parameters"]]https://web.archive.org/web/20110808101454/http://mapki.com/wiki/Google_Map_Parameters[[/LINK]] - demo settings panel within my plugin to change available options: [[LINK href="https://demo.mapsmarker.com/wp-admin/admin.php?page=leafletmapsmarker_settings#lmm-directions-section2"]]https://demo.mapsmarker.com/wp-admin/admin.php?page=leafletmapsmarker_settings#lmm-directions-section2[[/LINK]] - automatic login)

I thought about enforcing classic output by adding &output=classic to the direction links in order not to loose customisation options for google maps directions provided within my plugin, e.g.
[[LINK href="http://maps.google.com/maps?daddr=Ewaldgasse%2C+Wien%2C+%C3%96sterreich&t=m&layer=1&doflg=ptk&om=0&output=classic"]]http://maps.google.com/maps?daddr=Ewaldgasse%2C+Wien%2C+%C3%96sterreich&t=m&layer=1&doflg=ptk&om=0&output=classic[[/LINK]]

Anyway I this is not my preferred solution as the old google maps might confuse users and might be discontinued someday by Google. So I would rather use the equivalent URL parameters for the new Google Maps URL scheme (google.com/maps/dir/...)
Unfortunately I couldnt find a full documentation of all available paramters for the new URL scheme, only 1 examples

https://www.google.com/maps/dir/[customer address]/[our address]/am=t/
Can anyone please provide me with infos or a link to the documentation of all URL directions paramters available for the new Google Maps scheme and how to properly use them?
E.g.
am -> sets XYZ, possible values: A,B,C
blabla -> sets XXX, possible values: B,C,D
Full example link: https://www.google.com/maps/dir//Ewaldgasse,+1110+Wien,[email protected],15.414459,15z/am=X&blabla=B/

Thx,

Robert

Answers (2)

2015-02-04

Kyle answers:

Robert,

Have you seen this walkthrough: [[LINK href="http://gearside.com/easily-link-to-locations-and-directions-using-the-new-google-maps/"]]http://gearside.com/easily-link-to-locations-and-directions-using-the-new-google-maps/[[/LINK]] it does a good side-by-side comparison of the old/new ways for each point with example links.

What else are you looking for?


Robert Harm comments:

thanks but that is not quite what I am looking for. I am wondering which url parameters are still valid with the new google maps version and which not; and also if there are new ones...


Kyle comments:

Robert,

How is this [[LINK href="http://tech.reumer.net/Google-Maps/Documentation-of-plugin-Googlemap/parameters-of-plugin-google-maps.html"]]http://tech.reumer.net/Google-Maps/Documentation-of-plugin-Googlemap/parameters-of-plugin-google-maps.html[[/LINK]]


Kyle comments:

Oh wait, nevermind wrong plugin

2015-02-04

Bob answers:

not 100% Sure but may be you find there is something useful here.
https://developers.google.com/maps/documentation/javascript/3.exp/reference


Bob comments:

[[LINK href="https://developers.google.com/maps/documentation/directions/"]]https://developers.google.com/maps/documentation/directions/[[/LINK]]

this one was Last updated January 20, 2015 so may have latest info for directions

[[LINK href="https://developers.google.com/maps/documentation/javascript/markers"]]https://developers.google.com/maps/documentation/javascript/markers[[/LINK]]

Last updated January 15, 2015.


Bob comments:

Have you checked this article?http://moz.com/blog/new-google-maps-url-parameters


Robert Harm comments:

that article helped - thx!