iPhone location journals

Map the countries you’ve visited from your own location file

Drop in a file you already have. The map fills itself in from your points, and every country shows the dates behind it, so you can check each one.

Add your files. They stay in this page.

Drop in a GPX, KML, GeoJSON, Google Timeline JSON or Whereday Country Days CSV file, or several. The countries your points fall in are shaded on the map and listed with the first date, last date and number of distinct dates, so you can check each one. No account, upload or analytics.

This is a record of where a phone was, not proof of where you lived or were present. GPS points can be wrong or missing, and this page is not legal or tax evidence. For day counts, use the days-in-country calculator.

The synthetic example is synthetic-countries-trip.gpx: five invented points on 1, 3, 4, 6 and 7 January 2000, one in Portugal, two in Spain and two in France. It is not anyone’s recording.

How points become countries

  1. Read. GPX track points, route points and waypoints; Google Timeline visits and timed points (accepted records only); GeoJSON Point, LineString and MultiLineString coordinates; and KML Point and LineString coordinates (not Google Earth’s gx:Track elements; convert such a KML to GPX first). A Country Days CSV already names its countries, so it needs no lookup. The format is detected from the file’s content, not its name.
  2. Thin. To keep long tracks fast, the page keeps one point per 0.01° cell (about 1 km) for each date. Every file’s list shows how many points were read and how many were kept.
  3. Look up. Each point is tested against country outlines stored in this page, using a bounding-box check and then a point-in-polygon test. Nothing is sent to a geocoder or map service. Only the points themselves are tested: the line between two points is not, so a flight is not a visit to the countries it crosses.
  4. Border and water. A point inside one country but within about 10 km of another country’s outline is counted as “near a border”, not as a visit. A point in no outline, such as open water, is “unmatched”. A country that only has such points is listed under “near a border or coast, not counted”, with a button to add it by hand.
  5. Dates. A timestamp with a UTC offset (such as +02:00) uses the date as written. A timestamp ending in Z uses its UTC date. Google Timeline times are read as UTC dates. Each file shows which rule it used. Points with no usable date still count towards the country, but add no date.

The boundaries are Natural Earth 1:50m Admin 0 – Countries, version 5.1.2, which are in the public domain (terms of use). We simplified them to a tolerance of about 0.01° (roughly 1 km) and bundled them as a script, /assets/visited-countries-data.mjs: about 420 KB, about 150 KB gzipped, with 238 country and territory outlines (Antarctica included). The file formats are defined in the GPX 1.1 schema, GeoJSON (RFC 7946) and OGC KML 2.2.

Longitudes are wrapped so that 180° and −180° are the same meridian, and the outlines are already split there, so a track that crosses the date line is handled. Points at the poles are tested like any other and usually come out unmatched, except in Antarctica.

Which file to use

Where to get a location file for this page
Your data is inFile to useWhere to start
iPhoneWhereday GPX or Country Days CSV; Apple Maps and Significant Locations do not export a fileFind your iPhone location history, then back it up
Google TimelineExtracted Timeline JSON (device, semantic or raw)Which Timeline JSON file you have; Google’s Timeline export help
A GPS watch or route appGPXRecord and export a route as GPX
Many daily or trip filesOne merged GPX, or add them all here at onceMerge GPX files

Not sure what is inside a file? Check a GPX in the GPX viewer or a Timeline file in the Timeline inspector first. Renaming a file does not convert it. ZIP archives are not read: extract the JSON first.

What counts as visited

Here, a country counts if at least one of your points, after thinning, falls inside its outline and not within about 10 km of another country’s outline, or if you add it by hand. Time spent there does not matter, and neither does the reason for the stop. A layover counts only if your phone recorded a point there.

Limits

Your file stays in this page

Reading, matching, drawing the map and making the downloads all happen in your browser. This page blocks network connections and does not include the website’s analytics. The web server receives an ordinary request when you open the page and its scripts, but not your files, their names or the result. Clearing the page or closing the tab removes them; your original files are never changed.

Stop rebuilding the map.

Whereday records the countries you visit on your iPhone and keeps every day on the map. Timeline → Country Days lists the countries with their dates, and the map’s All range shows your places with day counts. It does not draw a shaded country map like this page. Viewing Country Days and adding manual stays are free. From version 1.8, new users keep their exports after tracking access expires; existing free users keep their previous export-unlock requirement. See pricing and how Country Days works.

Download free for iPhone