Using MSVS C#, I'm creating a KML file. For the sake of simplicity, assume that it has 2 Point placemarks with name tags A and B, respectively. The third placemark is a LineString using the coordinates from the points, with a name tag "A > B". I want the description of this placemark to say "Distance: xxx km", where xxx is the distance between A and B.
Is there a KML or Google Earth tag that I can write to the KML file that will output the distance when the file is loaded into Google Earth and I click on the line? Better yet, can I keep track of these as the app generates the KML file or in the KML file itself so that the document can have a description that has the total distance of all LineStrings?
Thanks.