The users can embed a basic map, a Street View image, driving directions, or a search into your website or blog from Google Maps. When the viewers are signed in to Google, they can also see their home and work, saved places, and more in your map.

Google had rolled out a feature to Android users that allowed them to send directions of any location to their smartphone, right from the desktop.

Apple has also added the public transit directions to its Maps. Company's software VP Craig Federighi announced the long-awaited feature, which covers bus, ferry, subway, and train routes, on stage at Apple's WWDC keynote.

Get the code

Open Google Maps.
Make sure the map or Street View image you'd like to embed shows up on the map.
In the top left corner, click the main menu.
Click Share or embed map.
At the top of the box that appears, choose the Embed map tab.
Choose the size you want, then copy the code and paste it into the source code of your website or blog.