DEV Community

Cover image for The simple and useful trick for Google Maps!
Edvinas Pranka
Edvinas Pranka

Posted on

The simple and useful trick for Google Maps!

Hi developers! 😍

Recently I found one simple but very useful trick in the Google maps. I hope it will be useful for you too. 😉

You can add the google maps direction link without using any Google API. Just putting the simple URL. And this method is completely free. 🎉

https://google.com/maps?daddr=<put your destination>

For example this is a direction to the New York City

In HTML it looks like this:

<a href="https://www.google.com/maps?daddr=new york city">
    Direction to the New York City
</a>
Enter fullscreen mode Exit fullscreen mode

Are you know the other interesting tricks for Google Maps? Share it in the comments below. 👇

Follow on Twitter
Check my GitHub
Let's connected on LinkedIn

Feedback and questions are very appreciated! ❤️

Top comments (0)