I made this script to read a kml file and take out the lats and longs and then put them into insert statments to make things go faster.
I used these libraries for this script
pip install lxml
and
pip install beautifulsoup4
Add the KML files from google my maps into the folder and run the script for each of the trails