What are my GPS coordinates?

A small and easy tool that gives you your current GPS coordinates.

GPS coordinates tool

Just press the Show GPS button and allow the access to your location.

JavaScript to get GPS coordinates

Here the JavaScript code behind the tool.

if (navigator.geolocation) {
  navigator.geolocation.getCurrentPosition(function (position) {
    console.log("Latitude: " + position.coords.latitude);
    console.log("Longitude: " + position.coords.longitude);
} else {
  console.log('Geolocation is not supported in your browser.');
Next Previous