Export track
-
Hi
I needed to export a track from the Android version of windy maps. As there is no built in support this is how I managed export to gpx format. It is a little bit tricky and requires some computer skills.- Copy the log file for the correct date from the mobile app to a computer running windows or linux. On my mobile the log files was found in the folder android/datacom.seznam.windymaps/files/logs
- Run the following UNIX commands from the command line on UNIX (or Windows with gnuwin32) installed.
echo time,latitude,longitude >gps.csv
grep -E "loc.*gps" TheLogFile.txt | cut -d; -f1,5,6 | cut -c2-8,28- | tr ";" "," | sort >>gps.csv - The gps.csv file contains time, latitude and longitude in a comma separated file format.
- Convert the gps.csv file to gpx format with e.g. https://www.gpsvisualizer.com/convert_input. Note that the date will be todays date, not the track date.
Note that this is what I used to export one track and no more testing has been done.
Regards Jan
-
@Jrox Hello, exporting tracks is not available at the moment, but we will consider it for the future development.
-
Hi Jan,
Thanks for the post! You saved me a lot of time. I've found a typo in point 2: [ cut -d; ] should be wrapped with ' ' as follows [ cut -d';' ] . All the rest worked fine.
Best regards,
Egor -
thanks!!! for tips&tricks...
i made a small script in vbscript for win.. to convert direct in gpx...
i hope for a future version of app with direct exportation in gpx..
I think it's simple to add this futures.. -
@albertinim Hello, if you mean exporting tracks in Windy Maps, then this feature is on our to-do list. Meanwhile, you can still export tracks on Windy.com using the Route planner :)
-
@korina perhaps a bit late now, but here's a simple PHP shell script that will do the job (in Linux). Usage: {'whatever you name the executable script' 'folder name/name of log file.txt' }
#!/usr/bin/php
' . $name . '
';
$footer = '';
fwrite($output, $header);
while(! feof($file))
{
$line = fgets($file);
preg_match($regex, $line, $result);
if (! empty($result)) {
$time = $date . "T" . $result[1] . "+08:00";
$lat = $result[2];
$lon = $result[3];
$elevation = round($result[4],1);
//echo '' . $elevation . '' . $time . '';
fwrite($output,'' . $elevation . '' . $time . '' . PHP_EOL);
}
}
fwrite($output, $footer);fclose($file);
fclose($output);
echo "FINISHED\n";I hope this may be useful to someone!
-
Seems to have truncated the copy!
#!/usr/bin/php ' . $name . ' '; $footer = ' '; fwrite($output, $header); while(! feof($file)) { $line = fgets($file); preg_match($regex, $line, $result); if (! empty($result)) { $time = $date . "T" . $result[1] . "+08:00"; $lat = $result[2]; $lon = $result[3]; $elevation = round($result[4],1); //echo '' . $elevation . '' . $time . ''; fwrite($output,'' . $elevation . '' . $time . '' . PHP_EOL); } } fwrite($output, $footer); /* $tracks = preg_grep($regex, $txt); for ($i=1; $i
-