I have features like state, city and location. Currently i am inserting this in respective tables in DB and tranform it using its primary key.
eg. country,state,city = IN,Maharastra,Pune = 2,5,10 (primary key in DB)
transforming it as 002005010
Is this approach correct? If not suggest me correct one