I'm using PyKml module in order to form kml inside my Python script. I want to display path which consists of array of coordinates and also display all points as placemarks. Currently, I'm trying (without success) to do it following way
doc = K.kml(
K.Document(
K.Placemark(
K.Point(
K.name("pl1"),
K.coordinates("52.4858, 25.9218, 1051.05105105")
)
),
K.Placemark(
K.name("path1"),
K.LineStyle(
K.color(0x7f00ffff),
K.width(10)
),
K.LineString(
K.coordinates(
coord_str
)
)
)
)
)
Path looks OK, but when I start adding Placemarks, Google Maps displays only first one. What should I use to display all Placemarks on my path? Do I need some sort of metaprogramming(i.e. add placemarks in object definition automatically)? Or perhaps something else?