Includes functionality for address normalization in the FIAS system. Part of the Universe.Framework / Содержит функционал нормализации адресов в системе FIAS. Входит в состав Universe.Framework Key features: - Normalizes addresses (standardizes them according to FIAS rules). - Integrates with Universe.Framework (likely a parent/base framework providing shared utilities). - Extends functionality (adds FIAS-specific features on top of the framework). About normalization. Normalization involves: - Converting address parts (cities, streets) into a standardized format. - Validating against FIAS database entries. - Handling abbreviations (e.g., "ул." → "улица").
$ dotnet add package Universe.NetCore.FIAS.NormalizerThe Universe.FIAS project is a .NET library designed to work with the Federal Information Address System (FIAS) database in Russia. FIAS is a federal-level address database used for standardizing and managing address data across various systems. This library provides tools to parse, process, and query FIAS data efficiently.
Npgsql dependency).The project is structured into several key classes and namespaces:
FiasDbContext (Database Context)AddrObjs - Address Objects: regions, districts, streets, cities;
b. AsHouses - houses;
c. Object statuses - AsActStatuses, AsCenterStatuses, AsOperStatuses, AsStrStatuses;
d. Other FIAS-related tables - AsVersions, AsAddrObjTypes,
where AS - it's meaning Address System.FiasEntity and Derived ClassesRepresents FIAS data structures:
AsAddrObj – represents for FIAS address objects: regions, districts, streets, cities;AsHouse – represents house records.FiasXmlParserAS_ADDROBJ.XML, AS_HOUSES.XML).XmlSerializer to deserialize data into C# objects.FiasImporterFiasService (or similar query service)FiasDownloader (if present)FiasExtensions// Initialize the database context
using var db = new FiasDbContext();
// Query addresses in a specific region
var houses = db.Houses
.Where(h => h.RegionCode == "63") // Moscow region code
.ToList();
// Import FIAS data from XML
var parser = new FiasXmlParser();
var objects = parser.Parse("AS_ADDROBJ.XML");
var importer = new FiasImporter(db);
importer.Import(objects);
Second sample:
var scope = new UniverseFiasScope(resolver, settings, container);
var searcher = new FiasUtil(scope);
var info = searcher.GetFiasInfo("ул. Молодогвардейская, д.244");
EntityFrameworkCore (for database operations)Npgsql.EntityFrameworkCore.PostgreSQL (PostgreSQL support)System.Xml (XML parsing)This library is useful for applications that need to work with Russian address data (e.g., logistics, government systems, CRM). It abstracts the complexities of FIAS XML parsing and database operations, providing a clean API for developers.