Парсер файлов xml в одной папке средствами php

f1nik25

Проверенные
Сообщения
282
Реакции
178
Баллы
3,350
Всем привет! Требуется чловек который сможет напистаь скрипт на пыхе, для парсинга gpx файлов из папки в определенный текст. Есть такой сервис GPS VIsualizer, в которывй можно сунуть несколько gps треков и он выдаст отличный html файл с треками и фильтром. Сама система работает, прекрасно, но кажыдй раз генерировать такую страницу руками отвлекает(((
Что хотелось бы, чтобы срипт при открытии пробегал по папке и все gpx парсил в формат gsp visualizer. Скажу сразу разраб мне скрипт не да( и апи у него нет... если юзать адрес с формой то там не больше одного файла кушает, сказал связано с безопасностью.
ВОт так выглядит gpx файл
XML:
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<gpx
version="1.0"
creator="OziExplorer Version 3954m - http://www.oziexplorer.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.topografix.com/GPX/1/0"
xsi:schemaLocation="http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd">
<time>2020-01-12T09:36:59Z</time>
<bounds minlat="57.439115" minlon="39.736222" maxlat="57.624944" maxlon="40.078101"/>
<trk>
<desc>kinolog 3</desc>
<trkseg>
<trkpt lat="57.4394389" lon="39.7375321">
<ele>105.880005</ele>
<time>2020-01-11T09:07:04.000Z</time>
</trkpt>
<trkpt lat="57.4393902" lon="39.7378960">
<ele>109.730003</ele>
<time>2020-01-11T09:07:07.000Z</time>
</trkpt>
<trkpt lat="57.4393698" lon="39.7380787">
<ele>112.610001</ele>
<time>2020-01-11T09:07:11.000Z</time>
</trkpt>
<trkpt lat="57.4394008" lon="39.7380834">
<ele>113.089996</ele>
<time>2020-01-11T09:07:39.000Z</time>
</trkpt>
<trkpt lat="57.4394574" lon="39.7380976">
<ele>113.089996</ele>
<time>2020-01-11T09:08:18.000Z</time>
</trkpt>
<trkpt lat="57.4393948" lon="39.7380869">
<ele>113.089996</ele>
<time>2020-01-11T09:08:48.000Z</time>
</trkpt>
<trkpt lat="57.4393874" lon="39.7380844">
<ele>113.570000</ele>
<time>2020-01-11T09:09:15.000Z</time>
</trkpt>
<trkpt lat="57.4393781" lon="39.7380972">
<ele>113.570000</ele>
<time>2020-01-11T09:09:38.000Z</time>
</trkpt>
<trkpt lat="57.4393912" lon="39.7381243">
<ele>113.570000</ele>
<time>2020-01-11T09:09:48.000Z</time>
</trkpt>
<trkpt lat="57.4393795" lon="39.7381427">
<ele>113.570000</ele>
<time>2020-01-11T09:09:54.000Z</time>
</trkpt>
<trkpt lat="57.4393237" lon="39.7383749">
<ele>116.939995</ele>
<time>2020-01-11T09:10:07.000Z</time>
</trkpt>
<trkpt lat="57.4393160" lon="39.7384109">
<ele>120.299995</ele>
<time>2020-01-11T09:10:09.000Z</time>
</trkpt>
<trkpt lat="57.4393081" lon="39.7384469">
<ele>123.669998</ele>
<time>2020-01-11T09:10:11.000Z</time>
</trkpt>
<trkpt lat="57.4393002" lon="39.7384832">
<ele>127.030006</ele>
<time>2020-01-11T09:10:13.000Z</time>
</trkpt>
<trkpt lat="57.4392924" lon="39.7385191">
<ele>130.880005</ele>
<time>2020-01-11T09:10:15.000Z</time>
</trkpt>
<trkpt lat="57.4392770" lon="39.7385899">
<ele>134.240005</ele>
<time>2020-01-11T09:10:19.000Z</time>
</trkpt>
<trkpt lat="57.4392730" lon="39.7386079">
<ele>134.720001</ele>
<time>2020-01-11T09:10:20.000Z</time>
</trkpt>
<trkpt lat="57.4391477" lon="39.7447625">
<ele>136.159988</ele>
<time>2020-01-11T09:10:48.000Z</time>
</trkpt>
<trkpt lat="57.4391248" lon="39.7448228">
<ele>137.610001</ele>
<time>2020-01-11T09:10:55.000Z</time>
</trkpt>
<trkpt lat="57.4391255" lon="39.7448140">
<ele>138.089996</ele>
<time>2020-01-11T09:11:14.000Z</time>
</trkpt>
<trkpt lat="57.4391228" lon="39.7448260">
<ele>137.610001</ele>
<time>2020-01-11T09:11:29.000Z</time>
</trkpt>
<trkpt lat="57.4391155" lon="39.7448314">
<ele>137.610001</ele>
<time>2020-01-11T09:11:49.000Z</time>
</trkpt>
<trkpt lat="57.4391170" lon="39.7448350">
<ele>137.610001</ele>
<time>2020-01-11T09:12:10.000Z</time>
</trkpt>
<trkpt lat="57.4391736" lon="39.7448718">
<ele>137.610001</ele>
<time>2020-01-11T09:12:15.000Z</time>
</trkpt>
<trkpt lat="57.4391997" lon="39.7450956">
<ele>137.610001</ele>
<time>2020-01-11T09:12:23.000Z</time>
</trkpt>
<trkpt lat="57.4392155" lon="39.7451852">
<ele>137.610001</ele>
<time>2020-01-11T09:12:27.000Z</time>
</trkpt>
<trkpt lat="57.4392821" lon="39.7451633">
<ele>137.610001</ele>
<time>2020-01-11T09:12:37.000Z</time>
</trkpt>
<trkpt lat="57.4393885" lon="39.7452003">
<ele>137.610001</ele>
<time>2020-01-11T09:12:51.000Z</time>
</trkpt>
<trkpt lat="57.4393878" lon="39.7451956">
<ele>137.610001</ele>
<time>2020-01-11T09:12:54.000Z</time>
</trkpt>
<trkpt lat="57.4393844" lon="39.7451898">
<ele>137.610001</ele>
<time>2020-01-11T09:12:56.000Z</time>
</trkpt>
<trkpt lat="57.4394020" lon="39.7452028">
<ele>138.089996</ele>
<time>2020-01-11T09:13:08.000Z</time>
</trkpt>
<trkpt lat="57.4394035" lon="39.7452308">
<ele>138.089996</ele>
<time>2020-01-11T09:13:10.000Z</time>
</trkpt>
<trkpt lat="57.4394088" lon="39.7452904">
<ele>138.089996</ele>
<time>2020-01-11T09:13:19.000Z</time>
</trkpt>
<trkpt lat="57.4393986" lon="39.7452222">
<ele>138.089996</ele>
<time>2020-01-11T09:13:31.000Z</time>
</trkpt>
<trkpt lat="57.4393362" lon="39.7451083">
<ele>138.089996</ele>
<time>2020-01-11T09:13:38.000Z</time>
</trkpt>
<trkpt lat="57.4393905" lon="39.7449255">
<ele>138.089996</ele>
<time>2020-01-11T09:13:53.000Z</time>
</trkpt>
<trkpt lat="57.4394067" lon="39.7448846">
<ele>138.089996</ele>
<time>2020-01-11T09:13:56.000Z</time>
</trkpt>
<trkpt lat="57.4395626" lon="39.7446502">
<ele>138.569992</ele>
<time>2020-01-11T09:14:16.000Z</time>
</trkpt>
<trkpt lat="57.4396150" lon="39.7445883">
<ele>138.569992</ele>
<time>2020-01-11T09:14:33.000Z</time>
</trkpt>
<trkpt lat="57.4396485" lon="39.7445460">
<ele>138.569992</ele>
<time>2020-01-11T09:14:49.000Z</time>
</trkpt>
<trkpt lat="57.4396733" lon="39.7445400">
<ele>138.569992</ele>
<time>2020-01-11T09:15:22.000Z</time>
</trkpt>
<trkpt lat="57.4396804" lon="39.7445159">
<ele>138.569992</ele>
<time>2020-01-11T09:15:34.000Z</time>
</trkpt>
<trkpt lat="57.4396986" lon="39.7445044">
<ele>138.569992</ele>
<time>2020-01-11T09:15:47.000Z</time>
</trkpt>
<trkpt lat="57.4397001" lon="39.7444854">
<ele>139.529999</ele>
<time>2020-01-11T09:16:03.000Z</time>
</trkpt>
<trkpt lat="57.4396960" lon="39.7444833">
<ele>138.569992</ele>
<time>2020-01-11T09:16:22.000Z</time>
</trkpt>
<trkpt lat="57.4397837" lon="39.7444064">
<ele>138.569992</ele>
<time>2020-01-11T09:16:39.000Z</time>
</trkpt>
<trkpt lat="57.4398177" lon="39.7443727">
<ele>138.569992</ele>
<time>2020-01-11T09:16:44.000Z</time>
</trkpt>
<trkpt lat="57.4398376" lon="39.7443632">
<ele>138.569992</ele>
<time>2020-01-11T09:16:46.000Z</time>
</trkpt>
<trkpt lat="57.4398640" lon="39.7443737">
<ele>138.569992</ele>
<time>2020-01-11T09:16:49.000Z</time>
</trkpt>
<trkpt lat="57.4399628" lon="39.7444520">
<ele>138.569992</ele>
<time>2020-01-11T09:17:00.000Z</time>
</trkpt>
<trkpt lat="57.4401004" lon="39.7445123">
<ele>138.569992</ele>
<time>2020-01-11T09:17:15.000Z</time>
</trkpt>
<trkpt lat="57.4401473" lon="39.7445464">
<ele>138.569992</ele>
<time>2020-01-11T09:17:20.000Z</time>
</trkpt>
<trkpt lat="57.4402681" lon="39.7445863">
<ele>138.089996</ele>
<time>2020-01-11T09:17:33.000Z</time>
</trkpt>
<trkpt lat="57.4403325" lon="39.7446141">
<ele>138.089996</ele>
<time>2020-01-11T09:17:40.000Z</time>
</trkpt>
<trkpt lat="57.4404696" lon="39.7446992">
<ele>138.089996</ele>
<time>2020-01-11T09:17:56.000Z</time>
</trkpt>
<trkpt lat="57.4405986" lon="39.7447899">
<ele>138.089996</ele>
<time>2020-01-11T09:18:11.000Z</time>
</trkpt>
<trkpt lat="57.4407238" lon="39.7448731">
<ele>138.089996</ele>
<time>2020-01-11T09:18:28.000Z</time>
</trkpt>
<trkpt lat="57.4408583" lon="39.7449485">
<ele>138.089996</ele>
<time>2020-01-11T09:18:44.000Z</time>
</trkpt>
<trkpt lat="57.4409909" lon="39.7450477">
<ele>138.089996</ele>
<time>2020-01-11T09:19:00.000Z</time>
</trkpt>
<trkpt lat="57.4410369" lon="39.7450575">
<ele>138.089996</ele>
<time>2020-01-11T09:19:05.000Z</time>
</trkpt>
<trkpt lat="57.4411609" lon="39.7451241">
<ele>138.089996</ele>
<time>2020-01-11T09:19:22.000Z</time>
</trkpt>
<trkpt lat="57.4411711" lon="39.7451427">
<ele>138.089996</ele>
<time>2020-01-11T09:19:35.000Z</time>
</trkpt>
<trkpt lat="57.4412537" lon="39.7451920">
<ele>138.089996</ele>
<time>2020-01-11T09:19:49.000Z</time>
</trkpt>
<trkpt lat="57.4412649" lon="39.7451866">
<ele>138.089996</ele>
<time>2020-01-11T09:20:01.000Z</time>
</trkpt>
<trkpt lat="57.4413036" lon="39.7452033">
<ele>138.089996</ele>
<time>2020-01-11T09:20:06.000Z</time>
</trkpt>
<trkpt lat="57.4413630" lon="39.7452282">
<ele>139.050003</ele>
<time>2020-01-11T09:20:21.000Z</time>
</trkpt>
<trkpt lat="57.4413971" lon="39.7452754">
<ele>139.050003</ele>
<time>2020-01-11T09:20:35.000Z</time>
</trkpt>
<trkpt lat="57.4413735" lon="39.7453750">
<ele>139.050003</ele>
<time>2020-01-11T09:20:48.000Z</time>
</trkpt>
<trkpt lat="57.4413498" lon="39.7454592">
<ele>139.050003</ele>
<time>2020-01-11T09:21:03.000Z</time>
</trkpt>
<trkpt lat="57.4413887" lon="39.7453586">
<ele>139.050003</ele>
<time>2020-01-11T09:21:15.000Z</time>
</trkpt>
<trkpt lat="57.4415004" lon="39.7453609">
<ele>139.050003</ele>
<time>2020-01-11T09:21:30.000Z</time>
</trkpt>
<trkpt lat="57.4415375" lon="39.7453846">
<ele>139.050003</ele>
<time>2020-01-11T09:21:46.000Z</time>
</trkpt>
<trkpt lat="57.4415811" lon="39.7454288">
<ele>139.050003</ele>
<time>2020-01-11T09:22:08.000Z</time>
</trkpt>
<trkpt lat="57.4417043" lon="39.7454945">
<ele>139.050003</ele>
<time>2020-01-11T09:22:22.000Z</time>
</trkpt>
<trkpt lat="57.4419205" lon="39.7455924">
<ele>139.050003</ele>
<time>2020-01-11T09:22:39.000Z</time>
</trkpt>
<trkpt lat="57.4420328" lon="39.7455616">
<ele>139.050003</ele>
<time>2020-01-11T09:22:51.000Z</time>
</trkpt>
<trkpt lat="57.4420423" lon="39.7455577">
<ele>139.050003</ele>
<time>2020-01-11T09:23:04.000Z</time>
</trkpt>
<trkpt lat="57.4420523" lon="39.7455629">
<ele>139.050003</ele>
<time>2020-01-11T09:23:25.000Z</time>
</trkpt>
<trkpt lat="57.4420588" lon="39.7455597">
<ele>139.050003</ele>
<time>2020-01-11T09:23:38.000Z</time>
</trkpt>
<trkpt lat="57.4421118" lon="39.7454844">
<ele>139.050003</ele>
<time>2020-01-11T09:23:49.000Z</time>
</trkpt>
<trkpt lat="57.4421127" lon="39.7453163">
<ele>139.050003</ele>
<time>2020-01-11T09:24:02.000Z</time>
</trkpt>
<trkpt lat="57.4421140" lon="39.7452459">
<ele>139.050003</ele>
<time>2020-01-11T09:24:07.000Z</time>
</trkpt>
<trkpt lat="57.4421595" lon="39.7451153">
<ele>139.050003</ele>
<time>2020-01-11T09:24:18.000Z</time>
</trkpt>
<trkpt lat="57.4421632" lon="39.7451023">
<ele>139.050003</ele>
<time>2020-01-11T09:24:20.000Z</time>
</trkpt>
<trkpt lat="57.4421832" lon="39.7450453">
<ele>139.050003</ele>
<time>2020-01-11T09:24:23.000Z</time>
</trkpt>
<trkpt lat="57.4421931" lon="39.7450072">
<ele>139.050003</ele>
<time>2020-01-11T09:24:25.000Z</time>
</trkpt>
<trkpt lat="57.4422038" lon="39.7449547">
<ele>139.050003</ele>
<time>2020-01-11T09:24:27.000Z</time>
</trkpt>
<trkpt lat="57.4421906" lon="39.7448407">
<ele>139.050003</ele>
<time>2020-01-11T09:24:42.000Z</time>
</trkpt>
<trkpt lat="57.4421885" lon="39.7448392">
<ele>139.050003</ele>
<time>2020-01-11T09:24:45.000Z</time>
</trkpt>
<trkpt lat="57.4422298" lon="39.7446864">
<ele>139.050003</ele>
<time>2020-01-11T09:24:56.000Z</time>
</trkpt>
<trkpt lat="57.4422351" lon="39.7446678">
<ele>139.050003</ele>
<time>2020-01-11T09:24:57.000Z</time>
</trkpt>
<trkpt lat="57.4422388" lon="39.7446367">
<ele>139.050003</ele>
<time>2020-01-11T09:24:59.000Z</time>
</trkpt>
<trkpt lat="57.4422778" lon="39.7444192">
<ele>139.050003</ele>
<time>2020-01-11T09:25:12.000Z</time>
</trkpt>
<trkpt lat="57.4422904" lon="39.7443756">
<ele>139.050003</ele>
<time>2020-01-11T09:25:15.000Z</time>
</trkpt>
<trkpt lat="57.4423217" lon="39.7442762">
<ele>139.050003</ele>
<time>2020-01-11T09:25:26.000Z</time>
</trkpt>
<trkpt lat="57.4423405" lon="39.7442336">
<ele>139.050003</ele>
<time>2020-01-11T09:25:40.000Z</time>
</trkpt>
<trkpt lat="57.4423686" lon="39.7441240">
<ele>138.569992</ele>
<time>2020-01-11T09:25:53.000Z</time>
</trkpt>
<trkpt lat="57.4423902" lon="39.7440092">
<ele>138.569992</ele>
<time>2020-01-11T09:26:06.000Z</time>
</trkpt>
<trkpt lat="57.4423719" lon="39.7439047">
<ele>137.610001</ele>
<time>2020-01-11T09:26:35.000Z</time>
</trkpt>
<trkpt lat="57.4423723" lon="39.7438912">
<ele>137.610001</ele>
<time>2020-01-11T09:26:37.000Z</time>
</trkpt>
<trkpt lat="57.4423791" lon="39.7437286">
<ele>137.610001</ele>
<time>2020-01-11T09:26:51.000Z</time>
</trkpt>
<trkpt lat="57.4423660" lon="39.7436914">
<ele>137.610001</ele>
<time>2020-01-11T09:26:54.000Z</time>
</trkpt>
<trkpt lat="57.4423099" lon="39.7436355">
<ele>137.610001</ele>
<time>2020-01-11T09:26:57.000Z</time>
</trkpt>
<trkpt lat="57.4421957" lon="39.7434863">
<ele>137.610001</ele>
<time>2020-01-11T09:27:08.000Z</time>
</trkpt>
<trkpt lat="57.4421647" lon="39.7433922">
<ele>137.610001</ele>
<time>2020-01-11T09:27:21.000Z</time>
</trkpt>
<trkpt lat="57.4421548" lon="39.7433132">
<ele>137.610001</ele>
<time>2020-01-11T09:27:34.000Z</time>
</trkpt>
<trkpt lat="57.4421881" lon="39.7432010">
<ele>137.610001</ele>
<time>2020-01-11T09:27:47.000Z</time>
</trkpt>
<trkpt lat="57.4422197" lon="39.7431258">
<ele>137.610001</ele>
<time>2020-01-11T09:28:05.000Z</time>
</trkpt>
<trkpt lat="57.4422565" lon="39.7431007">
<ele>137.130005</ele>
<time>2020-01-11T09:28:18.000Z</time>
</trkpt>
<trkpt lat="57.4422605" lon="39.7430947">
<ele>137.130005</ele>
<time>2020-01-11T09:28:38.000Z</time>
</trkpt>
<trkpt lat="57.4422460" lon="39.7430504">
<ele>137.130005</ele>
<time>2020-01-11T09:28:52.000Z</time>
</trkpt>
<trkpt lat="57.4422197" lon="39.7429182">
<ele>137.130005</ele>
<time>2020-01-11T09:29:06.000Z</time>
</trkpt>
<trkpt lat="57.4422126" lon="39.7427943">
<ele>136.159988</ele>
<time>2020-01-11T09:29:13.000Z</time>
</trkpt>
<trkpt lat="57.4421660" lon="39.7426764">
<ele>135.679993</ele>
<time>2020-01-11T09:29:28.000Z</time>
</trkpt>
<trkpt lat="57.4421674" lon="39.7426542">
<ele>135.679993</ele>
<time>2020-01-11T09:29:50.000Z</time>
</trkpt>
<trkpt lat="57.4421680" lon="39.7426521">
<ele>135.679993</ele>
<time>2020-01-11T09:29:52.000Z</time>
</trkpt>
<trkpt lat="57.4421313" lon="39.7424301">
<ele>135.199997</ele>
<time>2020-01-11T09:30:08.000Z</time>
</trkpt>
<trkpt lat="57.4421370" lon="39.7422972">
<ele>134.720001</ele>
<time>2020-01-11T09:30:24.000Z</time>
</trkpt>
<trkpt lat="57.4421402" lon="39.7422785">
<ele>133.760010</ele>
<time>2020-01-11T09:30:41.000Z</time>
</trkpt>
<trkpt lat="57.4421358" lon="39.7422557">
<ele>133.760010</ele>
<time>2020-01-11T09:30:54.000Z</time>
</trkpt>
<trkpt lat="57.4421312" lon="39.7421937">
<ele>133.279999</ele>
<time>2020-01-11T09:31:10.000Z</time>
</trkpt>
<trkpt lat="57.4420784" lon="39.7420254">
<ele>132.800003</ele>
<time>2020-01-11T09:31:28.000Z</time>
</trkpt>
<trkpt lat="57.4420306" lon="39.7418411">
<ele>132.319992</ele>
<time>2020-01-11T09:31:42.000Z</time>
</trkpt>
<trkpt lat="57.4420448" lon="39.7417774">
<ele>131.839996</ele>
<time>2020-01-11T09:32:05.000Z</time>
</trkpt>
<trkpt lat="57.4420774" lon="39.7419450">
<ele>131.839996</ele>
<time>2020-01-11T09:32:20.000Z</time>
</trkpt>
<trkpt lat="57.4420751" lon="39.7419735">
<ele>131.360001</ele>
<time>2020-01-11T09:32:37.000Z</time>
</trkpt>
<trkpt lat="57.4420196" lon="39.7419941">
<ele>131.360001</ele>
<time>2020-01-11T09:32:48.000Z</time>
</trkpt>
<trkpt lat="57.4419321" lon="39.7420279">
<ele>132.800003</ele>
<time>2020-01-11T09:33:00.000Z</time>
</trkpt>
<trkpt lat="57.4418570" lon="39.7420294">
<ele>132.800003</ele>
<time>2020-01-11T09:33:14.000Z</time>
</trkpt>
<trkpt lat="57.4418458" lon="39.7420160">
<ele>132.800003</ele>
<time>2020-01-11T09:33:31.000Z</time>
</trkpt>
<trkpt lat="57.4417595" lon="39.7420129">
<ele>132.800003</ele>
<time>2020-01-11T09:33:40.000Z</time>
</trkpt>
<trkpt lat="57.4416895" lon="39.7419808">
<ele>132.800003</ele>
<time>2020-01-11T09:33:52.000Z</time>
</trkpt>
<trkpt lat="57.4416851" lon="39.7419226">
<ele>132.800003</ele>
<time>2020-01-11T09:34:18.000Z</time>
</trkpt>
<trkpt lat="57.4415815" lon="39.7417581">
<ele>132.800003</ele>
<time>2020-01-11T09:34:32.000Z</time>
</trkpt>
<trkpt lat="57.4414952" lon="39.7416074">
<ele>132.800003</ele>
<time>2020-01-11T09:34:44.000Z</time>
</trkpt>
<trkpt lat="57.4414164" lon="39.7414357">
<ele>131.360001</ele>
<time>2020-01-11T09:34:58.000Z</time>
</trkpt>
<trkpt lat="57.4413622" lon="39.7413416">
<ele>130.880005</ele>
<time>2020-01-11T09:35:12.000Z</time>
</trkpt>
<trkpt lat="57.4413433" lon="39.7413214">
<ele>130.880005</ele>
<time>2020-01-11T09:35:14.000Z</time>
</trkpt>
<trkpt lat="57.4413240" lon="39.7412346">
<ele>130.400009</ele>
<time>2020-01-11T09:35:29.000Z</time>
</trkpt>
<trkpt lat="57.4413160" lon="39.7412451">
<ele>130.400009</ele>
<time>2020-01-11T09:35:43.000Z</time>
</trkpt>
<trkpt lat="57.4412892" lon="39.7412566">
<ele>130.400009</ele>
<time>2020-01-11T09:35:54.000Z</time>
</trkpt>
<trkpt lat="57.4412220" lon="39.7413419">
<ele>130.400009</ele>
<time>2020-01-11T09:36:07.000Z</time>
</trkpt>
<trkpt lat="57.4412246" lon="39.7413533">
<ele>130.400009</ele>
<time>2020-01-11T09:36:17.000Z</time>
</trkpt>
<trkpt lat="57.4412764" lon="39.7413201">
<ele>129.919998</ele>
<time>2020-01-11T09:36:29.000Z</time>
</trkpt>
<trkpt lat="57.4412599" lon="39.7414149">
<ele>129.919998</ele>
<time>2020-01-11T09:36:42.000Z</time>
</trkpt>
<trkpt lat="57.4412879" lon="39.7413730">
<ele>131.360001</ele>
<time>2020-01-11T09:37:09.000Z</time>
</trkpt>
<trkpt lat="57.4412891" lon="39.7413928">
<ele>131.360001</ele>
<time>2020-01-11T09:37:24.000Z</time>
</trkpt>
<trkpt lat="57.4412712" lon="39.7413937">
<ele>131.360001</ele>
<time>2020-01-11T09:37:42.000Z</time>
</trkpt>
<trkpt lat="57.4412605" lon="39.7413993">
<ele>131.360001</ele>
<time>2020-01-11T09:37:58.000Z</time>
</trkpt>
<trkpt lat="57.4412600" lon="39.7414010">
<ele>131.360001</ele>
<time>2020-01-11T09:38:12.000Z</time>
</trkpt>
<trkpt lat="57.4412638" lon="39.7413996">
<ele>131.360001</ele>
<time>2020-01-11T09:38:26.000Z</time>
</trkpt>
<trkpt lat="57.4412633" lon="39.7413942">
<ele>131.360001</ele>
<time>2020-01-11T09:38:36.000Z</time>
</trkpt>
<trkpt lat="57.4412473" lon="39.7414172">
<ele>131.360001</ele>
<time>2020-01-11T09:38:45.000Z</time>
</trkpt>
<trkpt lat="57.4412467" lon="39.7414178">
<ele>131.360001</ele>
<time>2020-01-11T09:38:46.000Z</time>
</trkpt>
<trkpt lat="57.4412329" lon="39.7414565">
<ele>131.360001</ele>
<time>2020-01-11T09:38:55.000Z</time>
</trkpt>
<trkpt lat="57.4412392" lon="39.7414258">
<ele>131.360001</ele>
<time>2020-01-11T09:39:06.000Z</time>
</trkpt>
<trkpt lat="57.4412509" lon="39.7414047">
<ele>131.360001</ele>
<time>2020-01-11T09:39:22.000Z</time>
</trkpt>
<trkpt lat="57.4412576" lon="39.7414126">
<ele>131.360001</ele>
<time>2020-01-11T09:39:40.000Z</time>
</trkpt>
<trkpt lat="57.4412578" lon="39.7414269">
<ele>131.360001</ele>
<time>2020-01-11T09:39:59.000Z</time>
</trkpt>
<trkpt lat="57.4412622" lon="39.7414271">
<ele>131.360001</ele>
<time>2020-01-11T09:40:13.000Z</time>
</trkpt>
<trkpt lat="57.4412570" lon="39.7414094">
<ele>131.360001</ele>
<time>2020-01-11T09:40:25.000Z</time>
</trkpt>
</trkseg>
</trk>
</gpx>

А вот так он должен выглядеть после парсинга:
JavaScript:
// Track #2
                t = 2; trk[t] = {info:[],segments:[]};
                trk[t].info.name = 'Кинолог 3'; trk[t].info.desc = 'Леся'; trk[t].info.clickable = true;
                trk[t].info.color = 'blue'; trk[t].info.width = 3; trk[t].info.opacity = 0.9; trk[t].info.hidden = false; trk[t].info.z_index = null;
                trk[t].info.outline_color = 'black'; trk[t].info.outline_width = 0; trk[t].info.fill_color = '#00e601'; trk[t].info.fill_opacity = 0;
                trk[t].info.elevation = true;
                trk[t].segments.push({ points:[ [57.4394389,39.7375321,105.880005],[57.4393902,39.737896,109.730003],[57.4393698,39.7380787,112.610001],[57.4394008,39.7380834,113.089996],[57.4394574,39.7380976,113.089996],[57.4393948,39.7380869,113.089996],[57.4393874,39.7380844,113.57],[57.4393781,39.7380972,113.57],[57.4393912,39.7381243,113.57],[57.4393795,39.7381427,113.57],[57.4393237,39.7383749,116.939995],[57.439316,39.7384109,120.299995],[57.4393081,39.7384469,123.669998],[57.4393002,39.7384832,127.030006],[57.4392924,39.7385191,130.880005],[57.439277,39.7385899,134.240005],[57.439273,39.7386079,134.720001],[57.4391477,39.7447625,136.159988],[57.4391248,39.7448228,137.610001],[57.4391255,39.744814,138.089996],[57.4391228,39.744826,137.610001],[57.4391155,39.7448314,137.610001],[57.439117,39.744835,137.610001],[57.4391736,39.7448718,137.610001],[57.4391997,39.7450956,137.610001],[57.4392155,39.7451852,137.610001],[57.4392821,39.7451633,137.610001],[57.4393885,39.7452003,137.610001],[57.4393878,39.7451956,137.610001],[57.4393844,39.7451898,137.610001],[57.439402,39.7452028,138.089996],[57.4394035,39.7452308,138.089996],[57.4394088,39.7452904,138.089996],[57.4393986,39.7452222,138.089996],[57.4393362,39.7451083,138.089996],[57.4393905,39.7449255,138.089996],[57.4394067,39.7448846,138.089996],[57.4395626,39.7446502,138.569992],[57.439615,39.7445883,138.569992],[57.4396485,39.744546,138.569992],[57.4396733,39.74454,138.569992],[57.4396804,39.7445159,138.569992],[57.4396986,39.7445044,138.569992],[57.4397001,39.7444854,139.529999],[57.439696,39.7444833,138.569992],[57.4397837,39.7444064,138.569992],[57.4398177,39.7443727,138.569992],[57.4398376,39.7443632,138.569992],[57.439864,39.7443737,138.569992],[57.4399628,39.744452,138.569992],[57.4401004,39.7445123,138.569992],[57.4401473,39.7445464,138.569992],[57.4402681,39.7445863,138.089996],[57.4403325,39.7446141,138.089996],[57.4404696,39.7446992,138.089996],[57.4405986,39.7447899,138.089996],[57.4407238,39.7448731,138.089996],[57.4408583,39.7449485,138.089996],[57.4409909,39.7450477,138.089996],[57.4410369,39.7450575,138.089996],[57.4411609,39.7451241,138.089996],[57.4411711,39.7451427,138.089996],[57.4412537,39.745192,138.089996],[57.4412649,39.7451866,138.089996],[57.4413036,39.7452033,138.089996],[57.441363,39.7452282,139.050003],[57.4413971,39.7452754,139.050003],[57.4413735,39.745375,139.050003],[57.4413498,39.7454592,139.050003],[57.4413887,39.7453586,139.050003],[57.4415004,39.7453609,139.050003],[57.4415375,39.7453846,139.050003],[57.4415811,39.7454288,139.050003],[57.4417043,39.7454945,139.050003],[57.4419205,39.7455924,139.050003],[57.4420328,39.7455616,139.050003],[57.4420423,39.7455577,139.050003],[57.4420523,39.7455629,139.050003],[57.4420588,39.7455597,139.050003],[57.4421118,39.7454844,139.050003],[57.4421127,39.7453163,139.050003],[57.442114,39.7452459,139.050003],[57.4421595,39.7451153,139.050003],[57.4421632,39.7451023,139.050003],[57.4421832,39.7450453,139.050003],[57.4421931,39.7450072,139.050003],[57.4422038,39.7449547,139.050003],[57.4421906,39.7448407,139.050003],[57.4421885,39.7448392,139.050003],[57.4422298,39.7446864,139.050003],[57.4422351,39.7446678,139.050003],[57.4422388,39.7446367,139.050003],[57.4422778,39.7444192,139.050003],[57.4422904,39.7443756,139.050003],[57.4423217,39.7442762,139.050003],[57.4423405,39.7442336,139.050003],[57.4423686,39.744124,138.569992],[57.4423902,39.7440092,138.569992],[57.4423719,39.7439047,137.610001],[57.4423723,39.7438912,137.610001],[57.4423791,39.7437286,137.610001],[57.442366,39.7436914,137.610001],[57.4423099,39.7436355,137.610001],[57.4421957,39.7434863,137.610001],[57.4421647,39.7433922,137.610001],[57.4421548,39.7433132,137.610001],[57.4421881,39.743201,137.610001],[57.4422197,39.7431258,137.610001],[57.4422565,39.7431007,137.130005],[57.4422605,39.7430947,137.130005],[57.442246,39.7430504,137.130005],[57.4422197,39.7429182,137.130005],[57.4422126,39.7427943,136.159988],[57.442166,39.7426764,135.679993],[57.4421674,39.7426542,135.679993],[57.442168,39.7426521,135.679993],[57.4421313,39.7424301,135.199997],[57.442137,39.7422972,134.720001],[57.4421402,39.7422785,133.76001],[57.4421358,39.7422557,133.76001],[57.4421312,39.7421937,133.279999],[57.4420784,39.7420254,132.800003],[57.4420306,39.7418411,132.319992],[57.4420448,39.7417774,131.839996],[57.4420774,39.741945,131.839996],[57.4420751,39.7419735,131.360001],[57.4420196,39.7419941,131.360001],[57.4419321,39.7420279,132.800003],[57.441857,39.7420294,132.800003],[57.4418458,39.742016,132.800003],[57.4417595,39.7420129,132.800003],[57.4416895,39.7419808,132.800003],[57.4416851,39.7419226,132.800003],[57.4415815,39.7417581,132.800003],[57.4414952,39.7416074,132.800003],[57.4414164,39.7414357,131.360001],[57.4413622,39.7413416,130.880005],[57.4413433,39.7413214,130.880005],[57.441324,39.7412346,130.400009],[57.441316,39.7412451,130.400009],[57.4412892,39.7412566,130.400009],[57.441222,39.7413419,130.400009],[57.4412246,39.7413533,130.400009],[57.4412764,39.7413201,129.919998],[57.4412599,39.7414149,129.919998],[57.4412879,39.741373,131.360001],[57.4412891,39.7413928,131.360001],[57.4412712,39.7413937,131.360001],[57.4412605,39.7413993,131.360001],[57.44126,39.741401,131.360001],[57.4412638,39.7413996,131.360001],[57.4412633,39.7413942,131.360001],[57.4412473,39.7414172,131.360001],[57.4412467,39.7414178,131.360001],[57.4412329,39.7414565,131.360001],[57.4412392,39.7414258,131.360001],[57.4412509,39.7414047,131.360001],[57.4412576,39.7414126,131.360001],[57.4412578,39.7414269,131.360001],[57.4412622,39.7414271,131.360001],[57.441257,39.7414094,131.360001] ] });
                GV_Draw_Track(t);


Если это большая и сложная задача, прикинтье хоть стоимость)

То есть скрипт должен читать файлы в дирректории и выводить их все в один формат в один файл. Ну файл то я эти данные встрою) главное чтобы он их формировал)


Вот ссылка на парсер... но там все приходится делать ручками(((
 
Последнее редактирование:
Современный облачный хостинг провайдер | Aéza
Назад
Сверху Снизу