Add time and distance interval when inserting a location