In another example, a computer-readable storage medium including instruction for causing a programmable processor to apply stimulation to a nerve via each of a plurality of implantable electrodes arranged proximate to the nerve, determine an effect of the stimulation for each of the electrodes, and map a location of the nerve relative to the electrodes based on the effect of the stimulation of eac