https://alexschreyer.net/web-programming/creating-a-kml-file-from-mysql-data-with-php/
Creating a KML file from MySQL data with PHP