Drawing GPS coordinates
in
Programming Questions
•
2 years ago
I recently discovered Processing and thought of a little project I'd like to try for myself and was hoping I could find some help here!
I've got some LAT/LON coordinate data in a standard text file which I'd like to display, but all of the examples I've found rely on the .gpx format.
A sample of the data is below, it's just a datetime stamp, latitude, longitude:
07-01-2010 01:05:01,34.5940361022949,98.4206924438477
07-01-2010 01:05:58,34.5942306518555,98.4199905395508
My question has a couple of parts, I know how to read this file/data into processing, but how do I split each line and only read the latitude and longitude values?
Once I've got those values declared as their own variables, would using the map() function be the best method to display them? I've read the reference on it and it's a little fuzzy to me.
Any examples or tips anyone could post would be awesome.
I've got some LAT/LON coordinate data in a standard text file which I'd like to display, but all of the examples I've found rely on the .gpx format.
A sample of the data is below, it's just a datetime stamp, latitude, longitude:
07-01-2010 01:05:01,34.5940361022949,98.4206924438477
07-01-2010 01:05:58,34.5942306518555,98.4199905395508
My question has a couple of parts, I know how to read this file/data into processing, but how do I split each line and only read the latitude and longitude values?
Once I've got those values declared as their own variables, would using the map() function be the best method to display them? I've read the reference on it and it's a little fuzzy to me.
Any examples or tips anyone could post would be awesome.
1