From 9c8f514d98da8e74fcb9c3c7492362b24dc2242e Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Fri, 1 Sep 2023 18:31:36 -0400 Subject: [PATCH] `geocode`: add admin2 to list; show example using -f --formatstr option [skip ci] --- src/cmd/geocode.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cmd/geocode.rs b/src/cmd/geocode.rs index 0f4fc3707..d9ca5d95f 100644 --- a/src/cmd/geocode.rs +++ b/src/cmd/geocode.rs @@ -58,7 +58,7 @@ $ qsv geocode reverse LatLong -c CityState file.csv -o file_with_citystate.csv The same as above, but get the timezone instead of the city and state. -$ qsv geocode reverse LatLong --formatstr %timezone -c tz file.csv -o file_with_tz.csv +$ qsv geocode reverse LatLong -f %timezone -c tz file.csv -o file_with_tz.csv INDEX- Updates the local Geonames cities index used by the geocode command. @@ -131,8 +131,8 @@ geocode options: Alternatively, you can use dynamic formatting to create a custom format. To do so, set the --formatstr to a dynfmt template, enclosing field names in curly braces. - The following eight fields are available: - id, name, latitude, longitude, country, admin1, timezone, population + The following nine fields are available: + id, name, latitude, longitude, country, admin1, admin2, timezone, population e.g. "City: {name}, State: {admin1}, Country: {country} - {timezone}"