Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the MID of a location in google maps?

I need to add the map in my wordpress site, but i have to put only the characters after ‘mid=’ Example:

-https://www.google.com/maps/d/viewer?msa=0&mid=zYSGCTGPw92M.kZ0t92LPNDTM the url of the address;

  • mid=zYSGCTGPw92M.kZ0t92LPNDTM the part of the url i need to see;
  • zYSGCTGPw92M.kZ0t92LPNDTM the code to put in google maps source field.

The problem is that now, whatever address i put in search field of google map, that MID does not change! So in the end i get to have the previous address again. Can anyone give me a hint, how does google maps work now?? How do i get that mid to change?

Thanks all, Best regards!

like image 233
Mirela Avatar asked Feb 11 '23 12:02

Mirela


1 Answers

To anyone that may get lost like i did, here is the answer -> http://support.themeple.co/Faq_quare/google-maps-element-the-right-url/

The procedure to create embed maps to insert in the theme:

Example Address: 3740 Dacoro Lane Castle Rock, CO 80109 -

The right url: https://www.google.com/maps/d/edit?mid=z3hN7mkYycnw.kUH548HocdUw

The code needed for 'Google Maps' element of the theme: z3hN7mkYycnw.kUH548HocdUw

How to get it:

1- Go to https://www.google.com/maps/d/u/0/ (My Maps)
2- Add New Map 
3-In the search field, type your address
4- In the box shown above the pointer, click Add to Map 
5- In the top left box, click on 'Untitled Map' and set a name for the new created map.
6- Link to share  
7- Give permission to be viewed by everyone on web
8-Copy link and share!
9- Go back to https://www.google.com/maps/d/u/0/ (My Maps) - Open Map 
10- Select your address from the list (check box)
11- Copy the code (after mid=) in the url bar!
12-Paste this code to your Google Maps element;

..and it's done!

Best regards!

like image 50
Mirela Avatar answered Mar 03 '23 12:03

Mirela