HomeSoftware


GPS Software to Save Latitude, Longitude, and Location Name to CSV
malaki86
I'm looking for a simple, yet very worthwhile utility program.

What I need the program to do is to simply save my current location (longitude & latitude) along with the name of where I'm at. It would save the information to a .CSV file. I can then import the CSV into multiple GPS programs which I run daily.

I already run GPSGate, so I have basically unlimited COM ports available for it.

I don't need it to display a map or anything. I just want something that, when I run it, will ask me for the name of the location I'm at, which I'll type in, then save it.

I run a front-end software, Centrafuse, which has a plugin available that does this exact thing. However, once I go to CoPilot Laptop, I want to get away from Centrafuse. In fact, the only reason I use it now is for a plugin available for it that adds a touch-screen keyboard to Garmin Mobile PC.

Any idea where to find such a beast?
MrUmbra
TripLog

I assume you are doing Windows. You didn't specify the format details but you can try the simple utility I wrote for you. I can change the record format without too much effort. The default is GPS on a com port; NMEA at 4800 baud but you can change the baud by specifying it as a command line parameter.

--- CHAS

[Scroll down for updated versions]
Attached Files
File Type: zip TripLog.zip (297.2 KB)
malaki86
Ooooooo - very nice - thank you!!!

Now for some extra stuff on it:

1 - Where does it save the .csv file to?

2 - When I pull into a new location, I need to lock in the coordinates then, but I can't normally sit and type out the name at that time. 99.9% of the time I have to drive around their building before I can actually type in the name. Can you change the util so that the main window only has something like a 'Save Location' button (instead of the current 'Enter' button). Once you hit that, it "locks" in the gps coordinates and pops-up a new dialog window asking for the name. It would then save the info from that dialog.

3 - I only ran it once, but will it 'remember' my comm port settings after the first time I run it, or do I need to set it @ each run?
MrUmbra
It saves the .csv file to the executable directory. Try running the utility on the Desktop so you can easily find the csv data file. It will reload .csv file on start up. If the file isn't there it creates a new file when the first entry is made..

It doesn't remember the com port. There are a few ways around that:

a) If you know the port will not change I'll compile a version with it 'hard wired'
b) A configuration file
c) A command line parameter
d) Registry entry (I don't do this to other peoples' computers)

Or just leave it as it is with the select GPS comport at start up.


I can do the position lock without too much effort; I'll work on it on a 'rainy day'.

Is the data format OK? I just guessed based upon your description of the desired utility.

--- CHAS
Larry
MrUmbra - you make this forum awesome!
t1d
Wow, MrUmbra, how very gracious of you! Ditto Larry.
malaki86
Quote:
Originally Posted by MrUmbra
It saves the .csv file to the executable directory. Try running the utility on the Desktop so you can easily find the csv data file. It will reload .csv file on start up. If the file isn't there it creates a new file when the first entry is made..

It doesn't remember the com port. There are a few ways around that:

a) If you know the port will not change I'll compile a version with it 'hard wired'
b) A configuration file
c) A command line parameter
d) Registry entry (I don't do this to other peoples' computers)

Or just leave it as it is with the select GPS comport at start up.


I can do the position lock without too much effort; I'll work on it on a 'rainy day'.

Is the data format OK? I just guessed based upon your description of the desired utility.

--- CHAS
I'd say just do a commandline format for setting the comm port, such as /p:4 /b:4800 - that would set both.

The output format is perfectly fine, especially if it reloads the csv file if it exists. I can adjust my current one to match your output.

You can't believe how thankful I am for this!!!
Marvin Hlavac
CHAS (a.k.a. MrUmbra), thanks for sharing!
Larry
I downloaded the trip logger and gave it a try on the way home. It works great. I love the simplicity.

Note: The file extension of the output file needs to be renamed from .cvs to .csv before opening it in Excel.



Screenshots added to show others how it looks.
  1. Choose a COM port (you may need to take some guesses or check device manager for the correctly one used by your GPS)
  2. If no signal is found - place your GPS in view of the sky for a few minutes.
  3. Lat/Long coordinates show up on the user interface.
  4. Enter Name of the location and click enter and you are on your way to building a csv file which is automatically saved to the same location as the exe.
Attached Images
choosecomport.png   main1.png   main2.png   main3.png  
MrUmbra
I fixed the transposed characters in the csv file extension. Must have been thinking about renewing my meds at the local CVS pharmacy.

I cut and pasted some start-up code from my NAV Guage application so you can now set the ComPort and baud from the command line. The format is:

TripLog.exe COMx n

Where x is the port number and n is the baud. Seperate the fields with space characters. i.e.

TripLog.exe COM10 115200 works with my iBlue GPS receiver

You can also set just the port or baud i.e.

TripLog.exe 115200
TripLog.exe COM6

I fixed a few things that were not quite right .. hope I didn't break anything in the process. I'm thinking about adding a time-stamp field to my version TripLog.

I'll make a special version for malaki86 with his 'sample and hold' requirement.

Speaking of the NAV Gauge, the version I provided about a year ago has been reworked, prettying up and fixing a few things that were wrong. I also added a sky polar plot page.

--- CHAS
Attached Files
File Type: zip TripLogV1.zip (254.0 KB)
File Type: zip NavGauge1.zip (388.1 KB)
MrUmbra
Special edition for malaki86.

I tried it on the road and decided this configuration was less prone to error.


If you push the Store button and decide not to enter the location,
push the Esc key.

You may have noticed you can edit entries.


--- CHAS
Attached Files
File Type: zip malaki86.zip (259.2 KB)
malaki86
You're gonna make me wanna kiss you!!!
Ken in Regina
Quote:
Originally Posted by malaki86
You're gonna make me wanna kiss you!!!
I'd buy a ticket to that performance!!

...ken...
SpadesFlush
Exactly what kinda forum is this??
MrUmbra
If you need more than three decimal places of precision:

--- CHAS
Attached Files
File Type: zip malaki86V1.zip (259.0 KB)
File Type: zip TripLogV2.zip (253.8 KB)
laptopgpsworld.com About