Recently I've been reading regards the simplekml module that python 2.7 has. So far I've found this to create a point:
import simplekml
kml = simplekml.Kml()
kml.newpoint(name="Kirstenbosch", coords=[(18.432314,-33.988862)])
kml.save("botanicalgarden.kml")
This displays the name Kirstenbosch at the coordinates listed. I've been wondering if this can be extended as it only displays the name.
For example how would I edit the code above to display on the kml screen.
Name
Coordinates
Population
Average age
I've tried adding population =,average age= to the code but It won't display it only displays the name. Can extra information be displayed on the kml?? Can anyone show me how to display the below list on the kml screen in google earth for the following as an example??
['Kirstenbosch',18.432314,-33.988862, 150000, 32]
Which correlates to name coordinates population and average age
Google's description suggests that a placemark can have:
You can add this information in python using