added distance data and function to create the shapefile