Navigation

    Windy Community

    • Register
    • Login
    • Search
    • Unread
    • Categories
    • Groups
    • Go to windy.com

    Export track

    Windy Maps
    5
    8
    577
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Jrox last edited by Jrox

      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.

      1. 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
      2. 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
      3. The gps.csv file contains time, latitude and longitude in a comma separated file format.
      4. 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

      Korina 1 Reply Last reply Reply Quote 0
      • Korina
        Korina Administrator @Jrox last edited by

        @Jrox Hello, exporting tracks is not available at the moment, but we will consider it for the future development.

        1 Reply Last reply Reply Quote 0
        • R
          regloom last edited by regloom

          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

          1 Reply Last reply Reply Quote 0
          • A
            albertinim last edited by

            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..

            Korina 1 Reply Last reply Reply Quote 0
            • Korina
              Korina Administrator @albertinim last edited by

              @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 :)

              N 1 Reply Last reply Reply Quote 0
              • N
                NeilKL @Korina last edited by

                @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!

                N 1 Reply Last reply Reply Quote 0
                • N
                  NeilKL @NeilKL last edited by

                  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
                  1 Reply Last reply Reply Quote 0
                  • N
                    NeilKL last edited by

                    windymap2gpx.png

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Windyty, S.E. - all rights reserved. Powered by excellent NodeBB
                    NodeBB & contributors, OSM & contributors, HERE maps
                    Terms and Conditions     Privacy Policy