[#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:
parent
9a425924cf
commit
19681693f7
2 changed files with 4 additions and 4 deletions
|
@ -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().
|
||||
|
|
|
@ -33,8 +33,8 @@ const (
|
|||
attrKeyCountryCode = "CountryCode"
|
||||
attrKeyCountry = "Country"
|
||||
|
||||
attrKeyLocationCode = "CityCode"
|
||||
attrKeyLocation = "City"
|
||||
attrKeyLocationCode = "LocationCode"
|
||||
attrKeyLocation = "Location"
|
||||
|
||||
attrKeySubDivCode = "SubDivCode"
|
||||
attrKeySubDiv = "SubDiv"
|
||||
|
|
Loading…
Reference in a new issue