How the route length is calculated
The calculator measures each pair of neighbouring points, line 1 to line 2, line 2 to line 3, and so on, and adds the segments up. Each segment uses Vincenty's formula on the WGS84 ellipsoid, the same model of the Earth that GPS uses, accurate to well under a millimetre.
Points are joined by the shortest path over the Earth's surface. A GPS track with a point every few metres therefore gives close to the distance actually travelled. A handful of points far apart gives the length of the straight legs between them, which is shorter than the road.
What you can paste
- One point per line, in any format the GPS Distance Calculator reads: decimal degrees, degrees-minutes-seconds, hemisphere letters, or a Google Maps or OpenStreetMap link.
- Two columns from a spreadsheet. Latitude and longitude separated by a tab, comma or semicolon.
- A header line such as
lat,lngat the top. It is skipped. - Blank lines. They are skipped, and line numbers still match what you see in the box.
Errors are never skipped
If a line is not a valid point, it is listed with its line number and the reason, and the total is hidden until it is fixed. Click a listed line to jump to it. This way a single mistyped coordinate cannot quietly shorten or lengthen the route.
Example
Jakarta (-6.2088, 106.8456) → Bogor (-6.5971, 106.8060) → Cianjur (-6.8168, 107.1425) → Bandung (-6.9175, 107.6191):
| Segment | Distance | Total so far |
|---|---|---|
| Jakarta → Bogor | 43.164 km | 43.164 km |
| Bogor → Cianjur | 44.435 km | 87.599 km |
| Cianjur → Bandung | 53.841 km | 141.440 km |
The straight line from Jakarta to Bandung is 116.019 km, so the detour through Bogor and Cianjur adds 25.4 km.
The CSV file
The CSV has one row per point with the columns line, latitude, longitude, the segment distance and the running total, in the unit you chose. Numbers have no thousands separators, so spreadsheets read them as numbers. The file is made in your browser.
Questions
How is the route distance calculated?
Each pair of neighbouring points is measured with Vincenty's formula on the WGS84 ellipsoid, the model of the Earth that GPS uses, and the segments are added up. Each segment is the shortest path over the Earth's surface between its two points.
Is this the distance by road?
Only as far as your points follow the road. The calculator joins the points in straight lines over the Earth's surface, so a track with points every few metres gives close to the real distance travelled, while a few points far apart give less.
Which formats can I paste?
One point per line, in any format the GPS Distance Calculator reads: decimal degrees (-6.2088, 106.8456), degrees-minutes-seconds, hemisphere letters, and Google Maps or OpenStreetMap links. Columns copied from a spreadsheet (separated by tabs) work too, and a header line such as "lat,lng" at the top is skipped.
What happens when a line is wrong?
The line is listed with its number and the reason, and you can click it to jump to that line. The total is only shown once every line is a valid point, so a mistyped point is never silently left out.
How many points can I paste?
Up to 50,000. The page shows the first 1,000 rows of the table, and the CSV file has all of them.
Are my coordinates sent anywhere?
No. The calculation and the CSV file are made in your browser; nothing is uploaded.
Support this site
The tools are free and need no account. If one saved you time, a small donation helps keep them running.
Want a tool or feature? Suggest it for free, or donate and write your request in the message. Supporters' requests are looked at first.