How to link to Google Maps with a particular longitude and latitude with HTML?

Spread the love

Sometimes, we want to link to Google Maps with a particular longitude and latitude with HTML.

In this article, we’ll look at how to link to Google Maps with a particular longitude and latitude with HTML.

How to link to Google Maps with a particular longitude and latitude with HTML?

To link to Google Maps with a particular longitude and latitude with HTML, we put the latitude and longitude in the query string.

For instance, we write

https://www.google.com/maps/search/?api=1&query=<lat>,<lng>

to put the latitude and longitude separated bu a comma as the value of the query query parameter.

Conclusion

To link to Google Maps with a particular longitude and latitude with HTML, we put the latitude and longitude in the query string.

Leave a Reply

Your email address will not be published.