AntiGuide: LoGsmHtml2Kml



PagePrincipale :: DerniersChangements :: ParametresUtilisateur :: Vous êtes 216.73.216.176 :: Signaler un abus :: le: 20250719 05:35:52
LoGsmHtml
exemple de sortie:

et si vous n'avez par GoogleEarth, deux images:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://earth.google.com/kml/2.1">
<Document>
    <name>0672899468.txt.kml par LoGsmHtml2Kml.vbs 20090710-0918 </name>
    <Style id="default+icon=0x467">
        <IconStyle>
            <Icon>
                <href>root://icons/palette-4.png</href>
                <x>224</x>
                <y>192</y>
                <w>32</w>
                <h>32</h>
            </Icon>
        </IconStyle>
        <LineStyle id="khLineStyle989_copy0; ">
            <color>7f0000ff</color>
            <width>4</width>
        </LineStyle>
    </Style>
    <StyleMap id="default+nicon=0x467+hicon=0x477_copy0">
        <Pair>
            <key>normal</key>
            <styleUrl>default+icon=0x467_copy0</styleUrl>
        </Pair>
        <Pair>
            <key>highlight</key>
            <styleUrl>default+icon=0x477_copy0</styleUrl>
        </Pair>
    </StyleMap>
    <Style id="default+icon=0x467_copy0">
        <IconStyle>
            <Icon>
                <href>root://icons/palette-3.png</href>
                <x>224</x>
                <w>32</w>
                <h>32</h>
            </Icon>
        </IconStyle>
    </Style>
    <StyleMap id="default+nicon=0x467+hicon=0x477">
        <Pair>
            <key>normal</key>
            <styleUrl>default+icon=0x467</styleUrl>
        </Pair>
        <Pair>
            <key>highlight</key>
            <styleUrl>default+icon=0x477</styleUrl>
        </Pair>
    </StyleMap>
    <Style id="Default + Icon = 0; x477_copy0; ">
        <IconStyle>
            <scale>1.1</scale>
            <Icon>
                <href>root://icons/palette-3.png</href>
                <x>224</x>
                <w>32</w>
                <h>32</h>
            </Icon>
        </IconStyle>
        <LabelStyle>
            <scale>1.1</scale>
        </LabelStyle>
    </Style>
    <Style id="Default+Icon=0x477">
        <IconStyle>
            <scale>1.1</scale>
            <Icon>
                <href>root://icons/palette-4.png</href>
                <x>224</x>
                <y>224</y>
                <w>32</w>
                <h>32</h>
            </Icon>
        </IconStyle>
        <LabelStyle>
            <scale>1.1</scale>
        </LabelStyle>
        <LineStyle id="khLineStyle989_copy1">
            <color>7f0000ff</color>
            <width>4</width>
        </LineStyle>
    </Style>
        <open>1</open>
  <Placemark>
                <name>20081010:1756</name>
      <description> 672899468 1 
 x°=2,3327 y°=48,808
 xp°=0 yp°=0
 dx°=1,537 dy°=48,808
 d°=48,8322 distKm=5425 elapseH=17,9372222222222
 vKm/H=302 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.332778,48.808056</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20081010:1803</name>
      <description> 672899468 2 
 x°=2,3163 y°=48,8086
 xp°=2,3327 yp°=48,808
 dx°=-0,0108 dy°=0,0005
 d°=0,0108 distKm=1 elapseH=0,115833333333335
 vKm/H=10 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.316389,48.808611</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20081011:1000</name>
      <description> 672899468 4 
 x°=2,6305 y°=47,6752
 xp°=2,3163 yp°=48,8086
 dx°=0,2116 dy°=-1,1334
 d°=1,1529 distKm=128 elapseH=-32,0411111111111
 vKm/H=-4 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.630556,47.675278</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20081011:1631</name>
      <description> 672899468 5 
 x°=2,5638 y°=47,7299
 xp°=2,6305 yp°=47,6752
 dx°=-0,0449 dy°=0,0547
 d°=0,0707 distKm=7 elapseH=6,52027777777778
 vKm/H=1 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.563889,47.730000</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20081012:1659</name>
      <description> 672899468 6 
 x°=2,3925 y°=48,6641
 xp°=2,5638 yp°=47,7299
 dx°=-0,1133 dy°=0,9341
 d°=0,941 distKm=104 elapseH=-23,5475
 vKm/H=-5 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.392500,48.664167</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20081012:1713</name>
      <description> 672899468 7 
 x°=2,3925 y°=48,6663
 xp°=2,3925 yp°=48,6641
 dx°=0 dy°=0,0022
 d°=0,0022 distKm=0 elapseH=0,247777777777774
 vKm/H=0 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.392500,48.666389</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20081012:1720</name>
      <description> 672899468 8 
 x°=2,3925 y°=48,6641
 xp°=2,3925 yp°=48,6663
 dx°=0 dy°=-0,0023
 d°=0,0022 distKm=0 elapseH=0,106666666666666
 vKm/H=2 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.392500,48.664167</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20081012:2227</name>
      <description> 672899468 9 
 x°=2,3163 y°=48,8086
 xp°=2,3925 yp°=48,6641
 dx°=-0,0502 dy°=0,1444
 d°=0,1529 distKm=16 elapseH=5,11944444444445
 vKm/H=3 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.316389,48.808611</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20081014:1312</name>
      <description> 672899468 10 
 x°=2,3463 y°=48,8
 xp°=2,3163 yp°=48,8086
 dx°=0,0197 dy°=-0,0087
 d°=0,0215 distKm=2 elapseH=-33,2491666666667
 vKm/H=-1 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.346389,48.800000</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20081014:1320</name>
      <description> 672899468 11 
 x°=2,3327 y°=48,808
 xp°=2,3463 yp°=48,8
 dx°=-0,009 dy°=0,008
 d°=0,012 distKm=1 elapseH=0,133333333333335
 vKm/H=10 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.332778,48.808056</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20081014:1330</name>
      <description> 672899468 12 
 x°=2,3327 y°=48,808
 xp°=2,3327 yp°=48,808
 dx°=0 dy°=0
 d°=0 distKm=0 elapseH=0,166666666666666
 vKm/H=0 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.332778,48.808056</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20081014:1340</name>
      <description> 672899468 13 
 x°=2,3463 y°=48,853
 xp°=2,3327 yp°=48,808
 dx°=0,0089 dy°=0,045
 d°=0,0458 distKm=5 elapseH=0,166666666666666
 vKm/H=30 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.346389,48.853056</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20081014:1350</name>
      <description> 672899468 14 
 x°=2,2938 y°=48,875
 xp°=2,3463 yp°=48,853
 dx°=-0,0346 dy°=0,0219
 d°=0,0409 distKm=4 elapseH=0,16888888888889
 vKm/H=26 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.293889,48.875000</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20081014:1400</name>
      <description> 672899468 15 
 x°=2,2158 y°=48,8991
 xp°=2,2938 yp°=48,875
 dx°=-0,0514 dy°=0,0241
 d°=0,0567 distKm=6 elapseH=0,16611111111111
 vKm/H=37 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.215833,48.899167</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20081014:1410</name>
      <description> 672899468 16 
 x°=2,1408 y°=48,8844
 xp°=2,2158 yp°=48,8991
 dx°=-0,0494 dy°=-0,0148
 d°=0,0514 distKm=5 elapseH=0,165277777777778
 vKm/H=34 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.140833,48.884444</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20081014:1420</name>
      <description> 672899468 17 
 x°=2,1158 y°=48,8997
 xp°=2,1408 yp°=48,8844
 dx°=-0,0165 dy°=0,0152
 d°=0,0224 distKm=2 elapseH=0,166388888888889
 vKm/H=14 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.115833,48.899722</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20081014:1430</name>
      <description> 672899468 18 
 x°=2,1005 y°=48,9
 xp°=2,1158 yp°=48,8997
 dx°=-0,0101 dy°=0,0002
 d°=0,01 distKm=1 elapseH=0,166666666666666
 vKm/H=6 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.100556,48.900000</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20081014:1440</name>
      <description> 672899468 19 
 x°=2,1158 y°=48,8997
 xp°=2,1005 yp°=48,9
 dx°=0,01 dy°=-0,0003
 d°=0,01 distKm=1 elapseH=0,166666666666666
 vKm/H=6 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.115833,48.899722</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:0926</name>
      <description> 672899468 23 
 x°=2,3738 y°=48,8441
 xp°=2,1158 yp°=48,8997
 dx°=0,1699 dy°=-0,0556
 d°=0,1787 distKm=19 elapseH=-29,2275
 vKm/H=-1 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.373889,48.844167</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:0932</name>
      <description> 672899468 24 
 x°=2,3738 y°=48,8441
 xp°=2,3738 yp°=48,8441
 dx°=0 dy°=0
 d°=0 distKm=0 elapseH=8,61111111111104E-02
 vKm/H=0 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.373889,48.844167</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:0942</name>
      <description> 672899468 25 
 x°=2,3775 y°=48,8433
 xp°=2,3738 yp°=48,8441
 dx°=0,0023 dy°=-0,0009
 d°=0,0025 distKm=0 elapseH=0,176111111111112
 vKm/H=1 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.377500,48.843333</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:0951</name>
      <description> 672899468 26 
 x°=2,3875 y°=48,8425
 xp°=2,3775 yp°=48,8433
 dx°=0,0065 dy°=-0,0009
 d°=0,0066 distKm=0 elapseH=0,144722222222223
 vKm/H=5 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.387500,48.842500</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1000</name>
      <description> 672899468 29 
 x°=2,4213 y°=48,7891
 xp°=2,3875 yp°=48,8425
 dx°=0,0223 dy°=-0,0534
 d°=0,0578 distKm=6 elapseH=0,154999999999999
 vKm/H=41 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.421389,48.789167</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1014</name>
      <description> 672899468 31 
 x°=2,773 y°=48,5427
 xp°=2,4213 yp°=48,7891
 dx°=0,2329 dy°=-0,2464
 d°=0,339 distKm=37 elapseH=0,234999999999999
 vKm/H=160 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.773056,48.542778</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1023</name>
      <description> 672899468 32 
 x°=3,2744 y°=48,2838
 xp°=2,773 yp°=48,5427
 dx°=0,3338 dy°=-0,2589
 d°=0,4224 distKm=46 elapseH=0,151111111111112
 vKm/H=310 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>3.274444,48.283889</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1024</name>
      <description> 672899468 33 
 x°=3,2816 y°=48,278
 xp°=3,2744 yp°=48,2838
 dx°=0,0048 dy°=-0,0059
 d°=0,0075 distKm=0 elapseH=1,19444444444454E-02
 vKm/H=70 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>3.281667,48.278056</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1033</name>
      <description> 672899468 34 
 x°=3,5241 y°=48,0677
 xp°=3,2816 yp°=48,278
 dx°=0,1621 dy°=-0,2103
 d°=0,2655 distKm=29 elapseH=0,145277777777778
 vKm/H=203 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>3.524167,48.067778</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1040</name>
      <description> 672899468 35 
 x°=3,9958 y°=47,8033
 xp°=3,5241 yp°=48,0677
 dx°=0,3169 dy°=-0,2645
 d°=0,4127 distKm=45 elapseH=0,125277777777775
 vKm/H=366 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>3.995833,47.803333</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1050</name>
      <description> 672899468 36 
 x°=4,178 y°=47,473
 xp°=3,9958 yp°=47,8033
 dx°=0,1232 dy°=-0,3303
 d°=0,3525 distKm=39 elapseH=0,162500000000001
 vKm/H=241 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>4.178056,47.473056</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1130</name>
      <description> 672899468 39 
 x°=4,6483 y°=46,4361
 xp°=4,178 yp°=47,473
 dx°=0,3242 dy°=-1,037
 d°=1,0864 distKm=120 elapseH=0,664722222222222
 vKm/H=181 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>4.648333,46.436111</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1138</name>
      <description> 672899468 40 
 x°=4,8508 y°=46,1633
 xp°=4,6483 yp°=46,4361
 dx°=0,1403 dy°=-0,2728
 d°=0,3067 distKm=34 elapseH=0,132222222222222
 vKm/H=257 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>4.850833,46.163333</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1200</name>
      <description> 672899468 42 
 x°=4,8616 y°=45,7527
 xp°=4,8508 yp°=46,1633
 dx°=0,0075 dy°=-0,4106
 d°=0,4106 distKm=45 elapseH=0,370277777777778
 vKm/H=123 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>4.861667,45.752778</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1210</name>
      <description> 672899468 43 
 x°=4,8216 y°=45,7491
 xp°=4,8616 yp°=45,7527
 dx°=-0,028 dy°=-0,0037
 d°=0,0281 distKm=3 elapseH=0,17
 vKm/H=18 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>4.821667,45.749167</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1220</name>
      <description> 672899468 44 
 x°=4,8324 y°=45,7533
 xp°=4,8216 yp°=45,7491
 dx°=0,0075 dy°=0,0041
 d°=0,0086 distKm=0 elapseH=0,164722222222224
 vKm/H=5 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>4.832500,45.753333</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1230</name>
      <description> 672899468 45 
 x°=4,8347 y°=45,7494
 xp°=4,8324 yp°=45,7533
 dx°=0,0015 dy°=-0,0039
 d°=0,0041 distKm=0 elapseH=0,16111111111111
 vKm/H=2 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>4.834722,45.749444</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1428</name>
      <description> 672899468 46 
 x°=4,8347 y°=45,7494
 xp°=4,8347 yp°=45,7494
 dx°=0 dy°=0
 d°=0 distKm=0 elapseH=1,97666666666667
 vKm/H=0 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>4.834722,45.749444</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1700</name>
      <description> 672899468 47 
 x°=4,8347 y°=45,7494
 xp°=4,8347 yp°=45,7494
 dx°=0 dy°=0
 d°=0 distKm=0 elapseH=2,52388888888889
 vKm/H=0 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>4.834722,45.749444</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1710</name>
      <description> 672899468 48 
 x°=4,8347 y°=45,7494
 xp°=4,8347 yp°=45,7494
 dx°=0 dy°=0
 d°=0 distKm=0 elapseH=0,168055555555558
 vKm/H=0 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>4.834722,45.749444</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1720</name>
      <description> 672899468 49 
 x°=4,8266 y°=45,75
 xp°=4,8347 yp°=45,7494
 dx°=-0,0057 dy°=0,0005
 d°=0,0056 distKm=0 elapseH=0,165277777777774
 vKm/H=3 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>4.826667,45.750000</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1730</name>
      <description> 672899468 50 
 x°=4,8216 y°=45,7491
 xp°=4,8266 yp°=45,75
 dx°=-0,0035 dy°=-0,0009
 d°=0,0035 distKm=0 elapseH=0,166666666666668
 vKm/H=2 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>4.821667,45.749167</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1740</name>
      <description> 672899468 51 
 x°=4,8216 y°=45,7491
 xp°=4,8216 yp°=45,7491
 dx°=0 dy°=0
 d°=0 distKm=0 elapseH=0,166666666666668
 vKm/H=0 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>4.821667,45.749167</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1800</name>
      <description> 672899468 53 
 x°=4,8616 y°=45,7527
 xp°=4,8216 yp°=45,7491
 dx°=0,0279 dy°=0,0036
 d°=0,0281 distKm=3 elapseH=0,333333333333332
 vKm/H=9 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>4.861667,45.752778</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1910</name>
      <description> 672899468 56 
 x°=4,153 y°=47,663
 xp°=4,8616 yp°=45,7527
 dx°=-0,4775 dy°=1,9102
 d°=1,969 distKm=218 elapseH=1,16805555555556
 vKm/H=187 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>4.153056,47.663056</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1920</name>
      <description> 672899468 57 
 x°=3,8236 y°=47,933
 xp°=4,153 yp°=47,663
 dx°=-0,2209 dy°=0,27
 d°=0,3488 distKm=38 elapseH=0,165277777777774
 vKm/H=234 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>3.823611,47.933056</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1940</name>
      <description> 672899468 59 
 x°=2,8516 y°=48,4855
 xp°=3,8236 yp°=47,933
 dx°=-0,6446 dy°=0,5525
 d°=0,8489 distKm=94 elapseH=0,334722222222226
 vKm/H=281 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.851667,48.485556</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:1949</name>
      <description> 672899468 60 
 x°=2,5444 y°=48,7286
 xp°=2,8516 yp°=48,4855
 dx°=-0,2028 dy°=0,243
 d°=0,3165 distKm=35 elapseH=0,15861111111111
 vKm/H=221 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.544444,48.728611</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:2000</name>
      <description> 672899468 61 
 x°=2,3844 y°=48,8375
 xp°=2,5444 yp°=48,7286
 dx°=-0,1054 dy°=0,1088
 d°=0,1515 distKm=16 elapseH=0,182499999999997
 vKm/H=92 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.384444,48.837500</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:2010</name>
      <description> 672899468 62 
 x°=2,3738 y°=48,8447
 xp°=2,3844 yp°=48,8375
 dx°=-0,007 dy°=0,0072
 d°=0,01 distKm=1 elapseH=0,156944444444449
 vKm/H=7 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.373889,48.844722</coordinates></Point>
  </Placemark>
  <Placemark>
                <name>20090709:2020</name>
      <description> 672899468 63 
 x°=2,3472 y°=48,8616
 xp°=2,3738 yp°=48,8447
 dx°=-0,0176 dy°=0,0169
 d°=0,0243 distKm=2 elapseH=0,169722222222219
 vKm/H=15 </description>
      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>
      <Point><coordinates>2.347222,48.861667</coordinates></Point>
  </Placemark>
<Placemark><name>TrackPoints</name><description>2007-06-09:06:22:06</description>
<styleUrl>#default+nicon=0x467+hicon=0x477</styleUrl> 	<LineString><tessellate>1</tessellate>	<coordinates>2.3327,48.808 2.3163,48.8086 2.3163,48.8086 2.6305,47.6752 2.6305,47.6752 2.5638,47.7299 2.5638,47.7299 2.3925,48.6641 2.3925,48.6641 2.3925,48.6663 2.3925,48.6663 2.3925,48.6641 2.3925,48.6641 2.3163,48.8086 2.3163,48.8086 2.3463,48.8 2.3463,48.8 2.3327,48.808 2.3327,48.808 2.3327,48.808 2.3327,48.808 2.3463,48.853 2.3463,48.853 2.2938,48.875 2.2938,48.875 2.2158,48.8991 2.2158,48.8991 2.1408,48.8844 2.1408,48.8844 2.1158,48.8997 2.1158,48.8997 2.1005,48.9 2.1005,48.9 2.1158,48.8997 2.1158,48.8997 2.3738,48.8441 2.3738,48.8441 2.3738,48.8441 2.3738,48.8441 2.3775,48.8433 2.3775,48.8433 2.3875,48.8425 2.3875,48.8425 2.4213,48.7891 2.4213,48.7891 2.773,48.5427 2.773,48.5427 3.2744,48.2838 3.2744,48.2838 3.2816,48.278 3.2816,48.278 3.5241,48.0677 3.5241,48.0677 3.9958,47.8033 3.9958,47.8033 4.178,47.473 4.178,47.473 4.6483,46.4361 4.6483,46.4361 4.8508,46.1633 4.8508,46.1633 4.8616,45.7527 4.8616,45.7527 4.8216,45.7491 4.8216,45.7491 4.8324,45.7533 4.8324,45.7533 4.8347,45.7494 4.8347,45.7494 4.8347,45.7494 4.8347,45.7494 4.8347,45.7494 4.8347,45.7494 4.8347,45.7494 4.8347,45.7494 4.8266,45.75 4.8266,45.75 4.8216,45.7491 4.8216,45.7491 4.8216,45.7491 4.8216,45.7491 4.8616,45.7527 4.8616,45.7527 4.153,47.663 4.153,47.663 3.8236,47.933 3.8236,47.933 2.8516,48.4855 2.8516,48.4855 2.5444,48.7286 2.5444,48.7286 2.3844,48.8375 2.3844,48.8375 2.3738,48.8447 2.3738,48.8447 2.3472,48.8616 </coordinates></LineString>
</Placemark>
</Document>
</kml>


' par flavigny@free.fr, voir version plus bas
' reprise des emails de LogsmHtml
'
' paramètres à ajuster:
version="LoGsmHtml2Kml.vbs 20090710-1020"
mbox="0672899468.txt"

' gestion on error HORS SERVICE, toute erreur est fatale pendant le développement!
' on error resume next 
on error goto 0

'

dim fs
set fs=createobject("scripting.filesystemobject")

dim mbox

'end if
'
dim xp
dim yp

xp=0
yp=0

jp=""


if mbox="" then mbox=inputbox("nom du fichier résumé?")
if mbox="" then wscript.quit

' extraire de nom du fichier
nomfi=mbox
while instr(nomfi,"\")>0
   nomfi=mid(nomfi,instr(nomfi,"\")+1)
wend

' extraire le numéro de téléphone
' numero="0672899468"
numero=left(nomfi,instr(nomfi,".")-1)
if left(numero,1)="0" then numero=mid(numero,2)


'
dim ptvus
ptvus=0
' C:\Users\adminpo\Desktop\ViaMichelin\LoGsmJava2Kml\0643214680-abcd

 

dim fi
dim fo
nomfi=nomfi & ".kml"

set fo=fs.createtextfile(nomfi,true)


'msgbox "mbox: " & mbox & " " & len(mbox) & vbcrlf & "nomfi: " & nomfi & " " & len(nomfi)  & vbcrlf & "mobile: " & mobile

dim li

'' copier le debut


fo.writeline "<?xml version=""1.0"" encoding=""UTF-8""?>"
fo.writeline "<kml xmlns=""http://earth.google.com/kml/2.1"">"
fo.writeline "<Document>"
fo.writeline "    <name>" & nomfi & " par " & version & " </name>"
fo.writeline "    <Style id=""default+icon=0x467"">"
fo.writeline "        <IconStyle>"
fo.writeline "            <Icon>"
fo.writeline "                <href>root://icons/palette-4.png</href>"
fo.writeline "                <x>224</x>"
fo.writeline "                <y>192</y>"
fo.writeline "                <w>32</w>"
fo.writeline "                <h>32</h>"
fo.writeline "            </Icon>"
fo.writeline "        </IconStyle>"
fo.writeline "        <LineStyle id=""khLineStyle989_copy0; "">"
fo.writeline "            <color>7f0000ff</color>"
fo.writeline "            <width>4</width>"
fo.writeline "        </LineStyle>"
fo.writeline "    </Style>"
fo.writeline "    <StyleMap id=""default+nicon=0x467+hicon=0x477_copy0"">"
fo.writeline "        <Pair>"
fo.writeline "            <key>normal</key>"
fo.writeline "            <styleUrl>default+icon=0x467_copy0</styleUrl>"
fo.writeline "        </Pair>"
fo.writeline "        <Pair>"
fo.writeline "            <key>highlight</key>"
fo.writeline "            <styleUrl>default+icon=0x477_copy0</styleUrl>"
fo.writeline "        </Pair>"
fo.writeline "    </StyleMap>"
fo.writeline "    <Style id=""default+icon=0x467_copy0"">"
fo.writeline "        <IconStyle>"
fo.writeline "            <Icon>"
fo.writeline "                <href>root://icons/palette-3.png</href>"
fo.writeline "                <x>224</x>"
fo.writeline "                <w>32</w>"
fo.writeline "                <h>32</h>"
fo.writeline "            </Icon>"
fo.writeline "        </IconStyle>"
fo.writeline "    </Style>"
fo.writeline "    <StyleMap id=""default+nicon=0x467+hicon=0x477"">"
fo.writeline "        <Pair>"
fo.writeline "            <key>normal</key>"
fo.writeline "            <styleUrl>default+icon=0x467</styleUrl>"
fo.writeline "        </Pair>"
fo.writeline "        <Pair>"
fo.writeline "            <key>highlight</key>"
fo.writeline "            <styleUrl>default+icon=0x477</styleUrl>"
fo.writeline "        </Pair>"
fo.writeline "    </StyleMap>"
fo.writeline "    <Style id=""Default + Icon = 0; x477_copy0; "">"
fo.writeline "        <IconStyle>"
fo.writeline "            <scale>1.1</scale>"
fo.writeline "            <Icon>"
fo.writeline "                <href>root://icons/palette-3.png</href>"
fo.writeline "                <x>224</x>"
fo.writeline "                <w>32</w>"
fo.writeline "                <h>32</h>"
fo.writeline "            </Icon>"
fo.writeline "        </IconStyle>"
fo.writeline "        <LabelStyle>"
fo.writeline "            <scale>1.1</scale>"
fo.writeline "        </LabelStyle>"
fo.writeline "    </Style>"
fo.writeline "    <Style id=""Default+Icon=0x477"">"
fo.writeline "        <IconStyle>"
fo.writeline "            <scale>1.1</scale>"
fo.writeline "            <Icon>"
fo.writeline "                <href>root://icons/palette-4.png</href>"
fo.writeline "                <x>224</x>"
fo.writeline "                <y>224</y>"
fo.writeline "                <w>32</w>"
fo.writeline "                <h>32</h>"
fo.writeline "            </Icon>"
fo.writeline "        </IconStyle>"
fo.writeline "        <LabelStyle>"
fo.writeline "            <scale>1.1</scale>"
fo.writeline "        </LabelStyle>"
fo.writeline "        <LineStyle id=""khLineStyle989_copy1"">"
fo.writeline "            <color>7f0000ff</color>"
fo.writeline "            <width>4</width>"
fo.writeline "        </LineStyle>"
fo.writeline "    </Style>"
' fo.writeline "    <Folder>"
' fo.writeline "        <name>Lieux temporaires</name>"
' fo.writeline "        <name>LoGsmHtml</name>"
 fo.writeline "        <open>1</open>"
'fo.writeline "        <Folder>"
'fo.writeline "            <name>2007-06-09:06:22:06</name>"
'fo.writeline "            <open>1</open>"
'fo.writeline "            <Placemark>"
'fo.writeline "                <name>TrackPoints</name>"
'fo.writeline "                <description>2007-06-09:06:22:06</description>"
'fo.writeline "                <styleUrl>#default+nicon=0x467+hicon=0x477</styleUrl>"
'fo.writeline "            </Placemark>"



set fi=fs.opentextfile(mbox ,1)

dim trouve
trouve=false

while not fi.atendofstream
 pre=nu
  li=fi.readline()
'#:33672899468 le:2008-10-10T17:56:14Z+0200 X:+2.332778 Y:+48.808056 R:331 xy<br>
'#:33672899468 le:2008-10-10T18:03:11Z+0200 X:+2.316389 Y:+48.808611 R:835 xy<br>

   if instr(li,numero)>0  then 

          ptvus=ptvus+1

       ' extraire date
      ladate=""
      iou=instr(li,"le:")
      if iou>0 then 
           ladate=mid(li,iou)
           ladate=left(ladate,instr(ladate," "))
       end if

j=mid(ladate,4,10)

       ' extraire x
      x=""
      iou=instr(li,"X:")
      if iou>0 then 
           x=mid(li,iou+3)
           x=trim(left(x,instr(x," ")))
       end if
       
       ' extraire y
      y=""
      iou=instr(li,"Y:")
      if iou>0 then 
           y=mid(li,iou+3)
           y=trim(left(y,instr(y," ")))
       end if

if (x<>"") and (y<>"")  then

' delay
' même jour ?
  if (jp="") or (j=jp) then 
    d=0
   else 
    d=-24
   end if

   h=cdbl(mid(ladate,15,2))
   m=cdbl(mid(ladate,18,2))
   s=cdbl(mid(ladate,21,2))
   t=h+m/60+s/3600

   elapse=d-tp+t
   tp=t
   jp=j

' distance
if instr(x,".")>0 then 
   xx=left(x,instr(x,".")-1) & "," & mid(x,instr(x,".")+1)
   else
   xx=x
  end if
   xxx=cdbl(xx)

if instr(y,".")>0 then 
   yy=left(y,instr(y,".")-1) & "," & mid(y,instr(y,".")+1)
   else
   yy=y
  end if
   yyy=cdbl(yy)

    dx=(xxx-xp)  *cos(yyy*3.14/180)
    dy=yyy-yp
    d2=sqr((dx*dx+dy*dy))
    k2=d2*40000/360

    v2=k2/elapse

      '    fo.writeline numero & " " & iteration & " " & x & " " & y & " " & v2 & " " & ladate
   datecourte=mid(left(ladate,len(ladate)-10),4)
   datecourte=left(datecourte,4)  & mid(datecourte,6,2) & mid(datecourte,9,2)& ":" & mid(datecourte,12,2) & mid(datecourte,15,2)
   
          fo.writeline "  <Placemark>"
          fo.writeline "                <name>" & datecourte  & "</name>"

          fo.writeline "      <description> " & numero &  " " & ptvus & " "  & vbcrlf & " x°=" & int(10000*xxx)/10000 & " y°=" & int(10000*yyy)/10000 & vbcrlf & " xp°=" & int(10000*xp)/10000 & " yp°=" & int(10000*yp)/10000 & vbcrlf & " dx°=" & int(10000*dx)/10000 & " dy°=" & int(10000*dy)/10000 & vbcrlf & " d°=" & int(10000*d2)/10000 & " distKm=" & int(k2) & " elapseH=" & elapse & vbcrlf & " vKm/H=" & int(v2) & " </description>"
          fo.writeline "      <styleUrl>#default+nicon=0x467+hicon=0x477_copy0</styleUrl>"
          fo.writeline "      <Point><coordinates>" & x & "," & y & "</coordinates></Point>"
' -------------------------
xpg=int(10000*xp)/10000
iou=instr(xpg,",")
if iou>0 then xpg=left(xpg,iou-1)&"."&mid(xpg,iou+1)

ypg=int(10000*yp)/10000
iou=instr(ypg,",")
if iou>0 then ypg=left(ypg,iou-1)&"."&mid(ypg,iou+1)

xg=int(10000*xxx)/10000
iou=instr(xg,",")
if iou>0 then xg=left(xg,iou-1)&"."&mid(xg,iou+1)

yg=int(10000*yyy)/10000
iou=instr(yg,",")
if iou>0 then yg=left(yg,iou-1)&"."&mid(yg,iou+1)


    '   fo.writeline " 	<LineString><tessellate>1</tessellate>	<coordinates>" & xpg & "," & ypg & " " & xg & "," & yg & "</coordinates></LineString>"
 if ptvus>1 then line=line &  xpg & "," & ypg & " " & xg & "," & yg & " "

' -------------------------
          fo.writeline "  </Placemark>"
   xp=xxx
   yp=yyy
end if

 end if 
wend
    fo.writeline "<Placemark><name>TrackPoints</name><description>2007-06-09:06:22:06</description>"
    fo.writeline "<styleUrl>#default+nicon=0x467+hicon=0x477</styleUrl> 	<LineString><tessellate>1</tessellate>	<coordinates>" & line & "</coordinates></LineString>"
    fo.writeline "</Placemark>"

msgbox "termine " & ptvus
'fo.writeline "        </Folder>"
'fo.writeline "    </Folder>"
fo.writeline "</Document>"
fo.writeline "</kml>"

fo.close
 ' wscript.quit