code to select gps coordinates for labeling