Quick code review

Please check if you can use aggregate functions in get_leading_placemark()