A: 40.7128, -74.0060B: 34.0522, -118.2437Runs entirely in your browser — your inputs never leave this page.
How this tool works
- 1
Streams high-frequency GPS position fixes via navigator.geolocation.watchPosition and calculates instantaneous distance and heading.
Common uses
- Hiking toward a mountain peak or trail marker
- Tracking distance remaining on a road trip
- Geocaching navigation
Frequently asked questions
Position calculations occur on-device. Map tile caching minimizes cellular bandwidth.
More in Distance & Driving
- Distance Between 2 PlacesMeasure great-circle geodesic distance (crow-flies) alongside turn-by-turn driving distance, travel duration, and detour percentage.
- Crow-Flies vs DrivingVisualize the direct geodesic arc compared side-by-side with road network routing, showing terrain detour factors.
- Distance Between CitiesInstant lookup of straight-line and highway miles between any two US or global cities or ZIP codes.
- Multi-Stop Route OptimizerPlan trips with up to 25 waypoints. Drag stops to reorder, optimize for fastest driving path, toggle round-trip, and export to CSV.
- Distance Matrix GridCompute an N x N distance and travel time matrix for 2 to 50 locations. Visualize with interactive heatmap and export CSV.
- Halfway Point FinderFind the exact geographic or driving midpoint between two people. Discover cities, hotels, and restaurants to meet in the middle.
- Map Radius ToolDraw accurate geodesic distance circles around any location from 100 feet to 3,000 miles. Layer multiple radius rings with custom colors.
- Drive Time IsochronesGenerate 10, 15, 30, 45, 60, and 90-minute reachable travel time polygons for driving, bicycling, or walking.
- Map Area CalculatorClick to draw any polygon on the map to calculate land area in acres, square feet, hectares, square miles, or square kilometers.
- Bearing & CompassCalculate initial bearing, final bearing, rhumb line heading, and magnetic declination between any two global coordinates.
- Horizon DistanceCalculate how far away the physical Earth horizon is based on observer eye elevation above sea level, accounting for atmospheric refraction.
Watching the Miles Count Down on a Drive from Chicago to Milwaukee
A family is driving from Chicago to Milwaukee for a weekend with relatives and the kids keep asking the classic question: how much farther now? The driver opens the Distance From Me tracker before leaving the driveway, sets Milwaukee as the target, and lets GPS do the work. At the start of the trip, the tool shows a crow-flies distance of about 81 miles and a heading of roughly 350 degrees, which is almost due north with a slight lean to the west. For the first few blocks, downtown skyscrapers make the position hop around a little, a normal GPS quirk among tall buildings. By the time they merge onto the highway the dot has settled onto the road, and from there the updates arrive smoothly every few seconds, which is when the countdown the kids love really begins.
The road trip itself is longer than 81 miles, because Interstate 94 curves and the ramps and interchanges add distance; the drive is roughly 92 road miles. That gap between the straight line and the road is the first thing the family notices, especially when the crow-flies number barely moves while they crawl through city traffic. As they settle onto the freeway, the tracker updates continuously, and after about half an hour of highway driving the straight-line distance has fallen to roughly 55 miles, even though the car has covered closer to 30 road miles.
The heading arrow proves just as useful as the number. When the freeway bends east around Racine, the arrow swings to show Milwaukee now sits a little to the left of the direction of travel, then settles back toward north as the road straightens. The live speed readout, taken from GPS rather than the dashboard, also settles an argument about whether traffic is really moving at 60 miles per hour or closer to 45, which changes how they feel about stopping for lunch.
By the time they reach the suburbs, the family is using the tool like a countdown timer. Because the last stretch of freeway runs almost straight at the city, the crow-flies number and the remaining road miles nearly match, and when the tracker reads under 10 miles they know their exit is coming up soon. Parked outside the house, the distance reads a few tenths of a mile, the leftover offset of a target set to the city center. For the drive home they set the target to their own street, and the countdown runs the other way. The kids have already claimed the job of announcing every ten-mile mark on the return trip, in the serious voices of railway announcers, which makes the long familiar drive home feel noticeably shorter than the drive out.
Common mistakes to avoid
- Reading crow-flies distance as your ETA. The number is a straight line, not road distance or time. Rivers, lakes, and mountain roads can make the real journey far longer, so pair it with a route planner when you need an arrival time.
- Letting the GPS go stale. If location permission is off or the phone loses its sky view in a tunnel, a parking garage, or a dense downtown, the tracker keeps showing your last known spot. Check that the position is still updating before trusting the distance.
- Watching the number instead of the road. A live tracker is tempting to stare at while driving. Set the target before you leave, mount the phone legally where you can glance at it, and let a passenger read the updates aloud.
Pro tips
- Set your destination before starting the trip so the tracker is ready the moment you pull away.
- On a hike, use the distance and heading to judge whether you are truly closing in on the trailhead or just walking parallel to it.
- A shrinking distance with a wandering heading arrow usually means the road is bending, not that you are lost.
Distances, Routes & Drive Times: How Mapping Math Works
Why the Earth refuses to be flat, how calculators measure true distances, how road networks find your route, and what those drive-time blobs on the map really mean. Written for Live "Distance From Me" Real-Time Tracker and the everyday mapping tasks around it.
The Earth Is Not Flat (and Your Math Must Know It)
For a walk to the corner store, flat math is fine. For a drive from Chicago to Denver, it is not. The Earth bulges at the equator and flattens at the poles — an oblate ellipsoid about 13 miles wider than it is tall. Ignore that shape and long distances come out wrong by miles.
Surveyors model the planet with the WGS84 ellipsoid: an equatorial radius of 3,963 miles and a polar radius of 3,950 miles. Every serious distance tool, including the ones on this site, measures along this curved surface rather than through the planet's interior.
The practical rule is simple. Under about 10 miles, flat-map math and true geodesic math agree to within a few feet. Past 100 miles, the gap grows fast. A flight from New York to London measured on a flat map would miss by over 200 miles — which is why aviation never uses flat math.
Haversine vs. Vincenty: Two Ways to Measure
The Haversine formula treats the Earth as a perfect sphere. It is a few lines of code, runs instantly, and gets within about 0.5% of the true distance. For store locators and "places near me" features, that is plenty. Most web maps use it under the hood.
Vincenty's method goes further. It walks the actual WGS84 ellipsoid, iterating until the answer converges, and lands within millimeters on distances of thousands of miles. The cost is complexity: the math needs a dozen steps and can fail to converge for nearly antipodal points, though modern implementations handle that gracefully.
Which should you trust? For driving estimates and everyday questions, both agree closely enough that you will never notice. For surveying, aviation, and scientific work, Vincenty or its modern successor Karney's algorithm is the standard. This site uses ellipsoidal math wherever precision matters.
One more subtlety: "distance" has flavors. Great-circle distance is the shortest path over the surface. Rhumb-line distance holds one compass bearing the whole way — longer, but easier to steer by hand, which is why sailors used it for centuries.
This page shows the first two chapters. Read the complete Distance & Drive Time field guide →