Distances 5 minUpdated December 3, 2026

How to calculate distances between coordinate pairs in a CSV

To calculate distances for a list of origin–destination pairs, put one pair of named locations and their latitude and longitude on each CSV row. In MapGO Workspace, open Upload → CSV, run Point to Point Distance, and export the results in kilometres and miles.

  1. Step 1. Put one origin and destination on each row

    Download london-service-pairs.csv to follow along. For your own data, open Upload → CSV in Workspace and download the Point-to-point template. Use Source, SourceLatitude, and SourceLongitude for the origin, and Destination, DestinationLatitude, and DestinationLongitude for its matched destination. Fill in both name columns, use decimal degrees, and save as a comma-separated CSV.

    The Point-to-point template and CSV upload area in Workspace
    The Point-to-point template supplies the column headers for both locations.
  2. Step 2. Check where the coordinates land

    For a quick map check, put the unique endpoints in a separate CSV with Latitude, Longitude, and a label column. Choose Upload → Map and drop in london-site-endpoints.csv. Choose Location under Label by, then zoom in. The example uses fictional business names in the distance file and real locations at the British Museum, Senate House, and the British Library in London, UK.

    Three London endpoints labelled on the street map in MapGO
    The endpoint check puts all three sample locations on land in central London.
  3. Step 3. Upload the paired CSV and submit

    Sign in, return to Upload → CSV, and drop in london-service-pairs.csv. The preview shows 3 locations loaded and the source and destination columns. Check that the Lat, Long, D.Lat, and D.Long values are in the right columns. MapGO selects Point to Point Distance when it recognises the destination coordinates. Click Submit.

    Three CSV rows with origins and destinations beside the selected point-to-point operation and Submit button
    The preview shows one matched pair per row.
  4. Step 4. Open the completed run

    Open Job History. Find the Point-to-Point entry for your CSV. Once it shows Completed, click Open results.

    The completed london-service-pairs.csv job with its Open results button
    Job History links to the Point-to-Point results in the dashboard.
  5. Step 5. Filter by file and export

    On the Point-to-Point results page, enter your CSV name in Search files so the table shows your run. Check the From, To, and Distance columns, then click Export CSV. Open the download in your spreadsheet to use the kilometre and mile columns separately.

    Filtered point-to-point results for the three London pairs with the Export CSV button
    The results table shows both units and the input file name.

Result

The exported CSV contained a result for each of the three London pairs. The dashboard displayed these values.

  • Alder Survey – Bloomsbury to Malet Site Services 0.21 km (0.13 mi)
  • Malet Site Services to St Pancras Field Office 0.99 km (0.62 mi)
  • Alder Survey – Bloomsbury to St Pancras Field Office 1.16 km (0.72 mi)

Questions

Does the result show driving or walking distance?

The result is the straight-line distance between the coordinates. Use a routing tool to find distance along roads or paths.

How do I measure from one depot to several sites?

Repeat the depot name and its coordinates in the source columns on each row. Enter a different destination on each row.

Why did the CSV load but the job fail?

Check the **Source** and **Destination** headers first. The upload preview can accept the four coordinate columns even when the name columns are missing. Use the template and include both names before resubmitting.

Open CSV Bulk Run to measure your own origin–destination pairs.

Open CSV Bulk Run

Updated December 3, 2026. More how-to guides