Exemplo n.º 1
0
        /*
         * get the trip distance from kml
         */
        public static double getDistance(IKmlPlacemark point)
        {
            String xml  = point.getDescription();
            String temp = System.Text.RegularExpressions.Regex.Split(xml, "Distance</td><td>")[1];

            return(double.Parse((String)temp.Split('<')[0]));
        }
Exemplo n.º 2
0
 public double getDistance(IKmlPlacemark point)
 {
     String xml = point.getDescription();
     String temp =System.Text.RegularExpressions.Regex.Split(xml, "Distance</td><td>")[1];
     return double.Parse((String) temp.Split('<')[0]);
 }