What country am I in?

Press Find me and the map shows the country you are in, with its borders, its code and its time zone. Type a place or click the map for anywhere else.

How to use it

  1. Press Find me and allow the browser to use your location.
  2. Read the country in the first card. The map shows its outline, code and time zone.
  3. To check another place, type it in the box, or click the map, or drag the pin.
  4. Copy the link in the address bar to share the result.

5 practical uses

  1. Confirm which side of a border you are on when a road, a trail or a river crossing is the frontier.
  2. Check the country a photo or a GPS log was taken in from its coordinates.
  3. Know the local time zone and the country code before a call or a customs form.
  4. Settle a pub argument on a ferry, a flight or a long-distance train.
  5. Check where a shipment or a vehicle tracker is reporting from.

The maths behind it

The device gives a latitude and longitude. The page tests the point against every country outline with a point-in-polygon test: a ray from the point crosses the outline an odd number of times when the point is inside. A bounding-box check first rules out most countries. The geocoder does the same on the full-resolution OpenStreetMap boundaries and names the place.

How accurate it is

A phone with GPS is accurate to a few metres outdoors; a laptop on Wi-Fi is often within a hundred metres, and a wired desktop may be placed at the nearest exchange, a town away. Near a boundary, drag the pin to check. The outline comes from Natural Earth (1:50m), which is drawn for a world map and can be a little off at a coast or a land border. Disputed areas follow the mapmaker's convention.

Privacy

The page never stores your position. The link in the address bar carries the coordinates so you can share or bookmark the result; clear it if you would rather not.

Questions and answers

Does the page store my location?

No. The position stays in your browser. Only the coordinates go to the OpenStreetMap geocoder, which names the place. The link in the address bar carries the coordinates so that you can share the result; clear it if you prefer not to.

Why does it say I am in the sea?

The device gave a position with a large error, or you are near a coast and the outline at 1:50m puts the point offshore. Drag the pin onto land, or type the place.

Which country is shown for a disputed area?

The outline follows the Natural Earth convention, which shows the country that administers the area. The name from the geocoder follows OpenStreetMap, which can differ.

Embed this tool on your website

Paste this code where the tool should appear. It shows the tool alone, without this page's text, and links back here. It is free to use; the map data credit stays on the map.

<iframe src="https://waymorphic.com/tools/what-country-am-i-in?embed=1" width="100%" height="760" style="border:0;border-radius:12px;max-width:100%" loading="lazy" allow="geolocation; fullscreen; clipboard-write" title="What country am I in? – Waymorphic Map"></iframe>

Change height to suit your page. To open the tool with a place already set, add the settings from this page's address bar (the part after #) to the end of the src. The embedded tool asks the visitor's browser for their location only when they press the button, and the allow attribute lets that work inside the frame.