Mileage Calculator using ArcGIS Online REST API

Instructions
  • Enter at least 2 addresses by keying into each address line, or using the Agency dropdown to select an address.
  • Click Calculate to call the ArcGIS REST API. The Mileage input will display the calculated mileage for a route including each destination specified.
Warning

This sample uses a short-term token for ArcGIS, that has likely expired by the time you are accessing it. Autocomplete and Agency dropdown functionality will work, but mileage calculation will not.

If your actual mileage is different, enter that amount.