Post Code

Now can input post code in sieat and draad to automaticly get a list of city and states, pick one , then the city and state field in the screen will be filled with the picked one.

Admin

but to have this feature , we will need the postcode.idx index file, it can be copied from /u/ccdev/standard, or generated using fcreate -> 0 prefix , 0 surfix, 40 key size ,40 element size, max no of key = 18000, no leading zeros. then import the data into the idx using /u/ccdev/std/utbinx11/imppcmin, run imppcmin then select a file call pc-full_20071128.csv(a csv file download from australia post with all the postcode and city pairs) you can find pc-full_20071128.csv under /u/ccdev/std/ut/, or download it again from australian post. if the postcode.idx does not exist in the user's directory , sieat and draad will give error and not run, so must create or copy the postcode.idx under the client's directiory, before up load sieat or draad.

imppcmin

the imppcmin is expecting a csv imput file , in the formate

"entry","entry",.......\n

"entry","entry",.......\n

"entry","entry",.......\n

the dirst row is expected to be the heading will be ignored and imppcmin will not read this line's data into postcode.idx. if later Australian post has updated this docuement, without heading row, just add a dummy first row will do.

For the rest of the rows, the fist cloumn is expected to be postcode, second column is the city, the third one is the state. as the example below.

"0810","JINGILI","NT",,"DARWIN DELIVERY CENTRE","085","NT1","001","DARWIN","Delivery Area "

imppcmin will only read the first three columns, and ignore the rest , since only the first three are needed. if in the future, australian post change the layout of the row, as long as the secquence of the first three column is the same. imppcmin will still work properly.


CategoryAllphones