Unicsv examines the first line of a file to determine the field
order and field separator in that file. On write, it tries to
figure out what data it has and writes headers and all the data it can.
Fields may be enclosed in double quotes. To include a double quote inside quotes escape it with another double quote.
If the first line contains any unenclosed tabs then the data lines are assumed to be tab separated.
Otherwise if the first line contains any unenclosed semicolons then fields are assumed to be separated by semicolons.
Otherwise if the first line contains any unenclosed vertical bars then fields are assumed to be separated by vertical bars.
Otherwise the fields are assumed to be separated by commas.
The list of keywords include:
alt = Elevation (in meters). For feet use "alt ft", "altft", "alt feet", or "altfeet".
arch = Geocache archived flag
avail = Geocache available flag
bng_e = British National Grid's easting
bng = full coordinate in BNG format (zone easting northing)
bng_pos = full coordinate in BNG format (zone easting northing)
bng_n = British National Grid's northing
bng_z = British National Grid's zone
caden = Cadence
comment = Notes
cont = Geocache container
cour = Heading / Course true
date = Date (yyyy/mm/dd)
depth = Depth (in meters). For feet use "depth ft", "depthft", "depth feet", or "depthfeet".
desc = Description
diff = Geocache difficulty
ele = Elevation (in meters). For feet use "ele ft", "eleft", "ele feet", or "elefeet".
e/w = 'e' for eastern hemisphere, 'w' for western
found = Geocache last found date
fix = 3d, 2d, etc.
gcid = Geocache cache id. This accepts GC-ID ("575006") and GC-Code ("GC1234G").
geschw = Geschwindigkeit (speed)
hdop = Horizontal dilution of precision
head = Heading / Course true
heart = Heartrate
height = Elevation (in meters). For feet use "height ft", "heightft", "height feet", or "heightfeet".
hint = Geocache cache hint
icon = Symbol (icon) name
lat = Latitude
lon = Longitude
name = Waypoint name ("Shortname")
n/s = 'n' for northern hemisphere, 's' for southern
notes = Notes
pdop = Position dilution of precision
placer = Geocache placer
placer_id =Geocache placer id
power = Cycling power (in Watts)
prox = Proximity (in meters). For feet use "prox ft", "proxft", "prox feet", or "proxfeet".
sat = Number of sats used for fix
speed = Speed, in meters per second. (See below)
symb = Symbol (icon) name
tempf = Temperature (degrees Fahrenheit)
temp = Temperature (degrees Celsius)
terr = Geocache terrain
time = Time (hh:mm:ss[.msec])
type = Geocache cache type
url = URL
utc_d = UTC date
utc_t = UTC time
utm_c = UTM zone character
utm_e = UTM easting
utm = full coordinate in UTM format (zone zone-ch easting northing)
utm_pos = full coordinate in UTM format (zone zone-ch easting northing)
utm_n = UTM northing
utm_z = UTM zone
vdop = Vertical dilution of precision
x = Longitude
x_pos = Longitude
y = Latitude
y_pos = Latitude
z = Elevation (in meters)
We support some enhanced Garmin attributes. They are also available in
gpx, gdb,
garmin_gpi and partly
garmin_txt. These entities are currently
not visible in MapSource (6.12.4), but are NOT dropped
when working with GDB (version 3) or GPX files.
Please note, that these do NOT provide a geocoding service; don't expect
to "convert" a street address to a latitude and longitude.
addr = Street address
city = City
country = Country
faci = Facility (not available in GPX)
phone = Phone number
post = Postal code
state = State
Fuller spellings (i.e. "longitude") may be used. You can also
use keywords with a whitespace instead of an underscore.
A typical file may be:
Name, Latitude, Longitude, Description
GCEBB,35.972033,-87.134700,Mountain Bike Heaven by susy1313
GC1A37,36.090683,-86.679550,The Troll by a182pilot & Family
If processing data from the UK, GPSBabel can process coordinates using X,Y values (often referred to as Eastings/Northings) as shown in or the full 12 figure alpha numeric, as shown in .
Note in you need to split your original X,Y values into the 100Km 2 character code,
eastings and northing values.
CSV input for UK data with XY coordinates
bng_e,bng_n,name,date
353729,177210,id_001,2018/02/03
356025,181221,id_002,2018/02/03
357962,181528,id_003,2018/03/03
CSV input for UK data with alphanumeric coordinates
bng_z,bng_e,bng_n,name,date
ST,53729,77210,id_001,2018/02/03
ST,56025,81221,id_002,2018/02/03
ST,57962,81528,id_003,2018/03/03
On the output side unicsv writes fixed number of columns (waypoint index, latitude and longitude)
followed by a variable column list depending on internal data.
With at least ONE valid timestamp in data a unicsv output may look like that:
No,Name,Latitude,Longitude,Description,Date,Time
1,"GCEBB",35.972033,-87.134700,"Mountain Bike Heaven by susy1313",2003/06/29,09:00:00
2,"GC1A37",36.090683,-86.679550,"The Troll by a182pilot & Family",,
For speed, a units specifier can be added to override the default. Here
are some values, but check parse_speed() in parse.cc for the authoritative
list.
m/s, mps: meters per secondkm/h, kmh: kilometers per hourkt, knots: knotsmph, mi/h, mih: miles per hour