I'm using data that I collected using the AntiMap log application for iPhone. It collects data using Latitude, Longitude, Compass, Speed, Distance, Time. I built an array to store all of this data, but I need to plot the points and draw lines connecting the points.
This is an example of the data:
40.544951,-75.674205,310,83.18,5.37,8096,
40.544951,-75.674205,310,83.18,5.37,8129,
40.544951,-75.674205,310,83.18,5.37,8163,
40.544951,-75.674205,310,83.18,5.37,8196,
40.544999,-75.673914,310,84.24,5.40,8228,
40.544999,-75.673914,310,84.24,5.40,8262,
40.544999,-75.673914,310,84.24,5.40,8295,
40.544999,-75.673914,310,84.24,5.40,8328,
40.544999,-75.673914,310,84.24,5.40,8362,
40.544999,-75.673914,310,84.24,5.40,8395,
40.544999,-75.673914,310,84.24,5.40,8429,
40.544999,-75.673914,310,84.24,5.40,8462,
40.544999,-75.673914,310,84.24,5.40,8495,
40.544999,-75.673914,310,84.24,5.40,8529,
40.544999,-75.673914,310,84.24,5.40,8562,
This is the code that I have so far:
String[] lines;
float max1, min1, max2, min2;
float a, b;
float[] x = new float[100000];
float[] y = new float[100000];
void draw() {
background(255);
stroke(0);
}
void setup() {
size( 1000, 1000);
background( 200) ;
lines = loadStrings("090213_0950_29.csv");
// println(lines.length);
// this gets the values from the files & calculates the min & max