[#316] ir/netmap: Rename City node attributes

Rename `City`/`CityCode` attribute keys to `Location`/`LocationCode`
respectively.

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-02-10 13:28:14 +03:00 committed by Leonard Lyubich
parent 9a425924cf
commit 19681693f7
2 changed files with 4 additions and 4 deletions

View file

@ -20,8 +20,8 @@ var errMissingRequiredAttr = errors.New("missing required attribute in DB record
// If DB entry R was found w/o errors, then new attributes are:
// * CountryCode: R.CountryCode().String();
// * Country: R.CountryName();
// * CityCode: R.LocationCode().String();
// * City: Record.LocationName();
// * LocationCode: R.LocationCode().String();
// * Location: Record.LocationName();
// * SubDivCode: R.SubDivCode();
// * SubDiv: R.SubDivName();
// * Continent: R.Continent().String().

View file

@ -33,8 +33,8 @@ const (
attrKeyCountryCode = "CountryCode"
attrKeyCountry = "Country"
attrKeyLocationCode = "CityCode"
attrKeyLocation = "City"
attrKeyLocationCode = "LocationCode"
attrKeyLocation = "Location"
attrKeySubDivCode = "SubDivCode"
attrKeySubDiv = "SubDiv"