Google Distance Matrix Generator
Paste one latitude,longitude coordinate per line. Input order is preserved as G1, G2, G3… Distances are calculated with Google's Routes API (Compute Route Matrix) using driving routes.
Driving-distance data provided by Google Maps.
Add to Existing Matrix
To expand a matrix, select all three files from a previous download. Existing distances are copied without recalculating them; only distances involving unique new GPS points are requested. The final matrix can therefore retain the original provider's distances for its existing points.
Enable both the Maps JavaScript API and Routes API in Google Cloud, with billing enabled. Use a website/referrer-restricted key. Requests are split into blocks of at most 25 × 25 (625 elements), paced to respect Google's 3,000-elements-per-minute rate limit. If the full matrix needs more than your selected cap, generation automatically processes as many pairs as fit and reports the pairs left uncalculated.
Uncalculated off-diagonal pairs are stored as 0 in the matrix and counted in the metadata as INCOMPLETE_PAIRS. Diagonal cells are also 0. Calculated non-diagonal distances are at least 1 meter, so 0 clearly marks an uncalculated pair (diagonal cells are also 0).