bpdurand

finding route distances in batch

Discussion created by bpdurand on Feb 23, 2011
Latest reply on Jun 24, 2015 by michaelneer
After over a week of fighting with it, I have figured out how to find the "as the crow flies" distance between two addresses.  

Here is the simple python window code:
import arcpy
arcpy.env.workspace = "C:\Documents and Settings\bpdurand\My Documents\ArcGIS\Default.gdb"
arcpy.PointDistance_analysis("address","hospital","howfar")

Now what I need to do, is something similar but get route distance (via roads) and if possible route time.   This needs to be done in a many-to-one address relationship.   For example, I need to find out how far driving distance it is from multiple specific addresses (which will be geocoded) to one specific address.  More specific example, I need to know how far it will be for specific people to drive to a hospital or something similar.  FYI, can't really use nearest facility because the destination address will be specified.

I have been looking for something similar to PointDistance_analysis but I can not find anything.  Is what I am trying to do even possible?  Is there a function similar to PointDistance_analysis or will it be much more complicated, as it looks like it may.  If there is a function what is it?  If it will be more complicated, a link to an example or something similar would be appreciated.

Thank you,

Barry

Outcomes