This page provides an example of how to use the Google Maps API to calculate driving, cycling or walking distances between many start locations and many end locations. Enter the postcodes, addresses or lat/longs in the start and end locations fields, separated by new lines and the travel distances and times will be calculated below. The results are tab separated and can be pasted directly into Excel.
Due to a change in how Google Maps calculates the usage of their directions service and the large number of requests this page generates, the cost of running this page is getting prohibitively expensive. I have limited the usage to 10,000 elements a day, so this page may well not work for you. The quota is reset at about 8am UK time, so come back then or at the weekend.
I've also added the ability to specify your own API key below so any charges will be applied to your own account.
Start locations End locations Locations are: Addresses / UK postcodes Latitude/longtiude (formatted as latitude,longitude) Calculate for: All combinations Each row (calculates row 1 on left to row 1 on right then row 2 on left to row 2 on right etc) Travelling by: Driving Walking Public transport Cycling As the crow flies Units: Kilometres Miles Addresses are in Multiple countries Afghanistan Åland Islands Albania Algeria American Samoa Andorra Angola Anguilla Antarctica Antigua and Barbuda Argentina Armenia Aruba Australia Austria Azerbaijan Bahamas Bahrain Bangladesh Barbados Belarus Belgium Belize Benin Bermuda Bhutan Bolivia Bonaire, Sint Eustatius and Saba Bosnia and Herzegovina Botswana Bouvet Island Brazil British Indian Ocean Territory Brunei Darussalam Bulgaria Burkina Faso Burundi Cambodia Cameroon Canada Cape Verde Cayman Islands Central African Republic Chad Chile China Christmas Island Cocos (Keeling) Islands Colombia Comoros Congo Democratic Republic of the Congo Cook Islands Costa Rica Côte d'Ivoire Croatia Cuba Curaçao Cyprus Czech Republic Denmark Djibouti Dominica Dominican Republic Ecuador Egypt El Salvador Equatorial Guinea Eritrea Estonia Ethiopia Falkland Islands Faroe Islands Fiji Finland France French Guiana French Polynesia French Southern Territories Gabon Gambia Georgia Germany Ghana Gibraltar Greece Greenland Grenada Guadeloupe Guam Guatemala Guernsey Guinea Guinea-Bissau Guyana Haiti Heard Island and McDonald Islands Holy See (Vatican City State) Honduras Hong Kong Hungary Iceland India Indonesia Iran Iraq Ireland Isle of Man Israel Italy Jamaica Japan Jersey Jordan Kazakhstan Kenya Kiribati North Korea South Korea Kuwait Kyrgyzstan Lao People's Democratic Republic Latvia Lebanon Lesotho Liberia Libya Liechtenstein Lithuania Luxembourg Macao Macedonia Madagascar Malawi Malaysia Maldives Mali Malta Marshall Islands Martinique Mauritania Mauritius Mayotte Mexico Micronesia Moldova Monaco Mongolia Montenegro Montserrat Morocco Mozambique Myanmar Namibia Nauru Nepal Netherlands New Caledonia New Zealand Nicaragua Niger Nigeria Niue Norfolk Island Northern Mariana Islands Norway Oman Pakistan Palau Palestine Panama Papua New Guinea Paraguay Peru Philippines Pitcairn Poland Portugal Puerto Rico Qatar Réunion Romania Russian Federation Rwanda Saint Barthélemy Saint Helena, Ascension and Tristan da Cunha Saint Kitts and Nevis Saint Lucia Saint Martin Saint Pierre and Miquelon Saint Vincent and the Grenadines Samoa San Marino Sao Tome and Principe Saudi Arabia Senegal Serbia Seychelles Sierra Leone Singapore Sint Maarten Slovakia Slovenia Solomon Islands Somalia South Africa South Georgia and the South Sandwich Islands South Sudan Spain Sri Lanka Sudan Suriname Svalbard and Jan Mayen Swaziland Sweden Switzerland Syrian Arab Republic Taiwan Tajikistan Tanzania Thailand Timor-Leste Togo Tokelau Tonga Trinidad and Tobago Tunisia Turkey Turkmenistan Turks and Caicos Islands Tuvalu Uganda Ukraine United Arab Emirates UK United States United States Minor Outlying Islands Uruguay Uzbekistan Vanuatu Venezuela Viet Nam British Virgin Islands U.S. Virgin Islands Wallis and Futuna Western Sahara Yemen Zambia Zimbabwe Your Google Maps API key Calculate Stop
Start End Distance Minutes Hours : Minutes The map will appear here when you begin a route calculation
Copy and paste the data into your favourite spreadsheet application or download the data to your computer