• I'm making an app to load some sets of GPS coordinates (latitude and longitude) to the storage area by uploading from the Web IDE, using 4 disc icon, and then read those coordinates from the app and calculate distances.
    Anyway, I made a CSV file in the Notepad++ with comma separated and saved with Unix LF option. Then I tried to read the data from the Web IDE console using following code, but didn't work.

    var f = require("Storage").open("coordinate.csv","r");
    var l = f.readLine();
    while (l!==undefined) {
      console.log(+parseFloat(l.split(',')[0]).toFixed(6)); 
      console.log(+parseFloat(l.split(',')[1]).toFixed(6));
      l = f.readLine();
    }
    

    I found an app called 'gpspoilog' from this tutorial page, and used it outdoor to create a CSV file by the app and used the suggested read code from the tutorial and it worked fine.

    From the storage file list (by clicking the 4-disc icon), I noticed the generated log file has a name 'gpspoilog.csv (StorageFile).csv (StorageFile)'

    So, I guess there are some differences between the data file generated by an app and manually uploaded one.

    I want to upload those GPS data manually and read them in my app. Is there any way to do it?

    Thanks.

About

Avatar for JeonLab @JeonLab started