Uses the ArcGIS REST API to compute a distance between two points