JavaScript CSV to GPX Converter

Описание:

Конвертиране на CSV файлове с данни за точки в GPX формат

Инструкции:

Входният файл трябва да бъде в следния формат:

point 1,latitude1,longitude2
point 2,latitude2,longitude2
...
point n,latituden,longituden

Примерно съдържание на входния файл с 3 точки:

София,42.6977082,23.3218675
Пловдив,42.1354079,24.74529039999993
Варна,43.2140504,27.914733299999966

Съдържание на изходния файл:

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<gpx xmlns="http://www.topografix.com/GPX/1/1" creator="JavaScript CSV To GPX Converter" version="1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.garmin.com/xmlschemas/GpxExtensions/v3 http://www.garmin.com/xmlschemas/GpxExtensions/v3/GpxExtensionsv3.xsd http://www.topografix.com/GPX/1/1 http://www.topografix.com/GPX/1/1/gpx.xsd">
<metadata>
 <link href="http://www.garmin.com">
  <text>Garmin International</text>
 </link>
 <time>2016-07-09T08:18:41.752Z</time>
 <bounds maxlat="0" maxlon="0" minlat="0" minlon="0" />
</metadata>
 <wpt lat="42.6977082" lon="23.3218675">
 <time>2016-07-09T08:18:41.752Z</time>
  <name>София</name>
  <sym>Waypoint</sym>
  <extensions>
   <gpxx:WaypointExtension xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3">
    <gpxx:DisplayMode>SymbolAndName</gpxx:DisplayMode>
    <gpxx:Categories>
     <gpxx:Category>Category 1</gpxx:Category>
    </gpxx:Categories>
   </gpxx:WaypointExtension>
  </extensions>
 </wpt>
 <wpt lat="42.1354079" lon="24.74529039999993">
 <time>2016-07-09T08:18:41.752Z</time>
  <name>Пловдив</name>
  <sym>Waypoint</sym>
  <extensions>
   <gpxx:WaypointExtension xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3">
    <gpxx:DisplayMode>SymbolAndName</gpxx:DisplayMode>
    <gpxx:Categories>
     <gpxx:Category>Category 1</gpxx:Category>
    </gpxx:Categories>
   </gpxx:WaypointExtension>
  </extensions>
 </wpt>
 <wpt lat="43.2140504" lon="27.914733299999966">
 <time>2016-07-09T08:18:41.752Z</time>
  <name>Варна</name>
  <sym>Waypoint</sym>
  <extensions>
   <gpxx:WaypointExtension xmlns:gpxx="http://www.garmin.com/xmlschemas/GpxExtensions/v3">
    <gpxx:DisplayMode>SymbolAndName</gpxx:DisplayMode>
    <gpxx:Categories>
     <gpxx:Category>Category 1</gpxx:Category>
    </gpxx:Categories>
   </gpxx:WaypointExtension>
  </extensions>
 </wpt>
</gpx>

Хранилище:

https://github.com/Nanich87/JavaScript-CSV-To-GPX-Converter

Визуализация:

javascript-csv-to-gpx-converter

Демо:

https://htmlpreview.github.io/?https://github.com/Nanich87/JavaScript-CSV-To-GPX-Converter/blob/master/src/javascript-csv-to-gpx-converter.html

https://cdn.rawgit.com/Nanich87/JavaScript-CSV-To-GPX-Converter/master/src/javascript-csv-to-gpx-converter.html