The pet is located by GPS to determine whether it has walked out of the electronic fence area, and perform pet training and electronic fence functions.