Nueva versión del script https://www.jesusninoc.com/02/17/convertir-el-fichero-excel-con-la-lista-de-radares-de-espana-en-un-fichero-json/
1 2 3 4 |
cd C:\xampp\php $radares = '<?php $xml = simplexml_load_file("http://www.dgt.es/images/Tramos_INVIVE_12042017.xml"); $json = json_encode($xml); echo $json; ?>' | .\php.exe | ConvertFrom-Json $radares.PROVINCIA.CARRETERA | %{$_.DENOMINACION + "|" + $_.RADAR.PUNTO_INICIAL.PK} |