add distances calculated by program to places