Improve placemark name selection logic