Frequently Asked Questions
What is Geolocation?
Geopositioning is the process of determining or estimating the geographic position of an object or a person.
On this website, geolocation is used to retrieve the coordinates (latitude, longitude) of your current device (computer/laptop, phone or tablet) and display your position on an interactive map.
How do I enable Geolocation on my browser?
For privacy reasons, a website can not access your precise location before asking for your permission first. Your browser shows a request: accept it. If you denied it or nothing shows up, here is what to do on your device.
Android
When the website asks for your location, tap "Allow". Your phone's location must also be on (in quick settings, swipe down from the top of the screen).
If you denied it, in Chrome tap ⋮ > Settings > Site settings > Location, then allow localise-moi.com. Other browsers have a similar setting.
iPhone and iPad
When the website asks for your location, tap "Allow".
If you denied it, in Safari tap the page menu (the icon next to the website address), then "Website Settings" > "Location", and choose "Allow". Then reload the page.
If nothing shows up, open Settings > Privacy & Security > Location Services. Make sure it is on, then tap Safari Websites (or your browser, such as Chrome) and choose "While Using the App". Then go back to the website and try again.
Google Chrome (computer)
When the website asks for your location, click "Allow while visiting the site", or "Allow this time" to allow it only once.
If you denied it, click the icon on the left of the website address ("View site information"), turn on "Location", then reload the page. More information on Google Chrome Help.
Safari (Mac)
When the website asks for your location, click "Allow".
If you denied it, go to Safari > Settings > Websites > Location and allow this website. Safari also needs access to your location in System Settings > Privacy & Security > Location Services.
Mozilla Firefox
When the website asks for your location, click "Allow".
If you denied it, click the permissions icon on the left of the website address, remove the blocked location with the X, then reload the page. More information on Firefox Help.
Microsoft Edge
When the website asks for your location, click "Allow".
If you denied it, click the icon on the left of the website address, then "Permissions for this site", and set "Location" to "Allow". More information on Microsoft Help.
On a computer, location must also be turned on in Windows or Mac settings.
What is the difference between browser and IP geolocation?
Browser geolocation (also called HTML5 geolocation) is usually much more accurate than IP geolocation.
IP geolocation only uses your IP address. Specialized companies, such as MaxMind, maintain databases that map IP addresses to a city or region. On this website, Cloudflare, the site's host, provides this location. It needs no permission, but it is only approximate.
Browser geolocation asks for your permission, then uses, depending on the device, GPS, nearby WiFi networks and cell towers (4G, 5G), or the IP address.
Usually, IP geolocation places you in a nearby city, sometimes tens of kilometers away. Browser geolocation can place you within a few meters with GPS, or about a hundred meters with WiFi.
My position is not accurate!
Online geolocation relies on several techniques that are not always accurate (see the answer above). The map shows the estimated accuracy of your position. To improve it:
- On iPhone and iPad, turn on "Precise Location" in Settings > Privacy & Security > Location Services > Safari Websites (or your browser). Without it, your position is approximate on purpose, within a few kilometers.
- On Android, choose "Precise" rather than "Approximate" when your phone asks, or turn on "Use precise location" in your browser's location permission.
- On a computer, turn on WiFi, even without connecting to a network: the browser uses it to estimate your position.
- On a phone, GPS is more accurate outdoors, away from tall buildings.
Can I geolocate a phone or someone?
Localise-moi.com only enables you to geolocate your own device as you navigate on the website. It uses your browser or your IP address to retrieve coordinates.
This website can not geolocate a device remotely. You can not use a phone number to retrieve the location of the device.
This means that you can not geolocate/track someone either.
Why does my IP show the wrong city?
IP geolocation relies on databases that map IP addresses to approximate locations, but they are not always accurate. Common reasons for an incorrect city:
- Your ISP assigned you an IP address registered in a different city or region
- The geolocation database has not been updated recently
- You are using a mobile connection, which may route through a distant server
- Your ISP covers a large geographic area and the IP is registered at its headquarters
For a more accurate position, allow your browser to share your location: it uses GPS, WiFi or cell towers.
Does geolocation work with a VPN?
If you are using a VPN (Virtual Private Network), the IP geolocation will show the location of the VPN server, not your real location. This is because the website sees the VPN's IP address instead of yours.
However, browser geolocation usually still works with a VPN, because it mostly uses the GPS, WiFi networks or cell towers around your device. But if your position is estimated from the IP address (for example on a computer without WiFi), the VPN can skew it.
Why does geolocation require HTTPS?
Modern browsers only allow browser geolocation on websites served over HTTPS (secure connection). This is a security measure to protect your privacy.
Without HTTPS, a third party could intercept the request and obtain your precise location. All major browsers require it: Chrome and Safari since 2016, Firefox since 2017.
How accurate is geolocation on mobile vs desktop?
Mobile devices are generally more accurate because they have GPS chips that can pinpoint your location within a few meters. They can also use cell tower triangulation and WiFi signals.
Desktop computers usually lack GPS hardware. Browsers estimate your position using nearby WiFi networks and your IP address, which is typically accurate to a few hundred meters in urban areas but can be off by several kilometers in rural areas.
In both cases, IP geolocation alone is only accurate to the city level (sometimes 10-50 km off), while browser geolocation with GPS can be accurate within 5 meters.
[Developer] Can I use Geolocation on my website?
Yes, you can use browser geolocation or IP geolocation on your website.
Browser geolocation is more accurate but requires approval from the user (a browser popup asking something like "Allow website-url.com to access your location"), whereas IP geolocation does not require any permission. For IP geolocation, hosts such as Cloudflare provide each visitor's country and, when known, city, and specialized services such as MaxMind offer databases and APIs.
If you want to display the position on a map, you will have to use a JavaScript map library such as MapLibre or Google Maps for example.
[Developer] Which languages are used on this website?
Localise-moi.com is a static website, minimal on purpose:
- HTML and CSS, no framework
- JavaScript, no framework, with the Google Maps API for the interactive map and the places around you
- Cloudflare for hosting and IP geolocation
Browser geolocation uses the JavaScript function navigator.geolocation.getCurrentPosition. IP geolocation uses the location data Cloudflare provides for each visit.