Added function to find trail segment ID in properties (issue #26)