Address

Addresses define where a service is delivered, and since the definition of each of the customers service is done on a "line by line" basis each line stores all the address information. In Telefakt we deal with both A and B addresses, in the case of a service which just provides some connection between two points, think of a customer just buying a fibre cable between two big cities, they can use it for whatever they want, they just rent the cable. We call these FROM and TO addresses, and this is crucial to be able to store all the necessary data about a lines location.

However in Telefakt there is some data duplication happening on lines in an order. Since each line defines their address in its entirety, meaning we don't actually have a table listing all possible addresses and assigning them primary keys which the LINEINFO table then just points to. Each line has all the address information, meaning the LINEINFO table contains all these columns which are used to define addresses. This does give the added option of delivering lines to different locations within one and the same order, however in reality this is never used since it then becomes more benefitial to use the concept of a compound order to link two orders at different locations together instead.

From addressTo addressComment
LINE_FROM_COUNTRYLINE_TO_COUNTRYCountry
LINE_FROM_POST_IDLINE_TO_POST_IDPostcode
LINE_FROM_CITYLINE_TO_CITYCity
LINE_FROM_ADDRESSLINE_TO_ADDRESSStreet name
LINE_FROM_STREET_NUMBERLINE_TO_STREET_NUMBERStreet number
LINE_FROM_STREET_LETTERLINE_TO_STREET_LETTERStreet letter
LINE_FROM_BOLIGNUMMERLINE_TO_BOLIGNUMMERHouser number
LINE_FROM_FLOORLINE_TO_FLOORFloor number
LINE_FROM_ROOMLINE_TO_ROOMRoom number
LINE_FROM_ADDRESS_IDLINE_TO_ADDRESS_IDGAB address ID
LINE_FROM_KOMMUNENUMMERLINE_TO_KOMMUNENUMMERMunicipality number - Norway specific
LINE_FROM_GARDSNUMMERLINE_TO_GARDSNUMMERCadastral unit number - Norway specific
LINE_FROM_BRUKSNUMMERLINE_TO_BRUKSNUMMERProperpty unit number - Norway specific
LINE_FROM_FESTENUMMERLINE_TO_FESTENUMMERLeasehold number - Norway specific
LINE_FROM_SEKSJONSNUMMERLINE_TO_SEKSJONSNUMMERCondominium unit number - Norway specific
LINE_FROM_UTMZONELINE_TO_UTMZONEUTM zone
LINE_FROM_UTMELINE_TO_UTMEUTM easting
LINE_FROM_UTMNLINE_TO_UTMNUTM northing
LINE_FROM_LATLINE_TO_LATLatitude
LINE_FROM_LONLINE_TO_LONLongitude

We are investigating ways to alleviate this problem but these columns are very widely used and can't be removed, so any fix/change will have to still leave these columns populated with data. We have a LOCATION object which you can initialise with different constructor functions and then use member functions to assign that location to all lines in an order etc. This object then hides all the complexity of the LINE_FROM and LINE_TO columns and present that data in a way that is easier to work with. This object is accesible in the database and is present in views such as API.V_SITE and can be accessed in PL/SQL to perform operations on orders and lines.

To help with validation and data entry there are supporting tables which store records of legal address data. This data is upadet on a quarterly basis with data from SMALLWORLD.

Table nameDescription
COUNTRYCountry information
POSTCODEPostcode information such as contry, city and source
GABSTREETNorwegian national registers of addresses
MUNICIPALITYRegister of Norwegian municipialities

Was this page helpful?