My GPS Location

Find your current GPS coordinates from your browser. Get your latitude, longitude and address details instantly.

What are my coordinates?

Click the button below to detect your current GPS location

What is GPS location?

GPS (Global Positioning System) location refers to the coordinates that pinpoint your exact position on Earth. It uses a constellation of satellites orbiting Earth to determine your location with high precision.

Your GPS location consists of two main components:

  • Latitude: Your north-south position, measured in degrees from -90 (South Pole) to +90 (North Pole), with 0 at the equator
  • Longitude: Your east-west position, measured in degrees from -180 to +180, with 0 at the Prime Meridian (Greenwich, London)

Modern smartphones and browsers can access GPS data to provide location-based services, navigation, weather information and more.

GPS coordinates: how do they work? How accurate are they?

GPS works by receiving signals from multiple satellites (at least 4) and calculating your position based on the time it takes for each signal to reach your device. This process is called trilateration.

Accuracy levels:

  • Standard GPS: 3-5 meters accuracy under open sky conditions
  • Assisted GPS (A-GPS): Uses cell towers and Wi-Fi to improve accuracy and speed of location fix
  • DGPS (Differential GPS): Can achieve sub-meter accuracy using ground-based reference stations
  • RTK GPS: Real-Time Kinematic GPS can achieve centimeter-level accuracy

Factors affecting accuracy:

  • Number of visible satellites
  • Atmospheric conditions (ionosphere interference)
  • Urban canyons (tall buildings blocking signals)
  • Indoor vs outdoor positioning
  • Device hardware quality

How can I get GPS coordinates in Java, C#, Ruby, Python and NodeJS?

Here's how to get GPS coordinates programmatically in different languages:

JavaScript (Browser):

navigator.geolocation.getCurrentPosition(
  (position) => {
    const lat = position.coords.latitude;
    const lng = position.coords.longitude;
    console.log(`Latitude: ${lat}, Longitude: ${lng}`);
  },
  (error) => console.error(error)
);

Python:

import geocoder
g = geocoder.ip('me')
print(f"Latitude: {g.lat}, Longitude: {g.lng}")

Java (Android):

LocationManager lm = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
Location location = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);
double lat = location.getLatitude();
double lng = location.getLongitude();

C# (.NET):

var locator = new Geolocator();
var position = await locator.GetGeopositionAsync();
var lat = position.Coordinate.Point.Position.Latitude;
var lng = position.Coordinate.Point.Position.Longitude;

Ruby:

require 'geocoder'
result = Geocoder.search("your-ip-address").first
puts "Latitude: #{result.latitude}, Longitude: #{result.longitude}"

Node.js:

const geoip = require('geoip-lite');
const ip = "your-ip-address";
const geo = geoip.lookup(ip);
console.log(`Latitude: ${geo.ll[0]}, Longitude: ${geo.ll[1]}`);

How to mock GPS location details with Selenium and Appium?

TestingBot allows you to mock GPS location on both simulators/emulators and physical mobile devices during automated testing. This is essential for testing location-based features in your mobile applications.

Mocking GPS with Selenium (Chrome DevTools Protocol):

# Python example with Selenium
from selenium import webdriver

driver = webdriver.Chrome()
driver.execute_cdp_cmd("Emulation.setGeolocationOverride", {
    "latitude": 51.175570,
    "longitude": 3.945113,
    "accuracy": 100
})

Mocking GPS with Appium (iOS/Android):

# Python example with Appium
driver.set_location(51.175570, 3.945113, 10)  # lat, lng, altitude

With TestingBot's real device cloud, you can:

  • Test location-based app features with custom coordinates
  • Simulate movement between locations for navigation testing
  • Test geofencing functionality
  • Verify location permissions handling

Learn more about TestingBot's real device testing

Popular GPS coordinates of famous places

Here are GPS coordinates for some famous landmarks around the world:

Location Latitude Longitude
Eiffel Tower, Paris 48.8584 2.2945
Statue of Liberty, New York 40.6892 -74.0445
Big Ben, London 51.5007 -0.1246
Sydney Opera House -33.8568 151.2153
Christ the Redeemer, Rio -22.9519 -43.2105
Machu Picchu, Peru -13.1631 -72.5450
Great Wall of China 40.4319 116.5704
Taj Mahal, India 27.1751 78.0421
Colosseum, Rome 41.8902 12.4922
Burj Khalifa, Dubai 25.1972 55.2744