I need help validating addresses to ensure they are complete.
Here’s the concept: A warehouse admin will input the shipping address provided by customer service. If the address is intended for an office location, the address must include the words “Street” (Jalan) and the name of the office/company to be considered complete.
Example:
PT/Kantor Muda Gemilang, Jalan Dr. Husein Kartasasmita No. 365, Kel. Banjar, Kec. Banjar, Kota
(This is complete because it contains both the name of the office/company and the word “Street” (Jalan).)
If the input is:
PT/Kantor Muda Gemilang, Dr. Husein Kartasasmita No. 365, Kel. Banjar, Kec. Banjar, Kota
(This is incomplete because it only includes the word “Kantor” (Office) but does not have the word *“Street” (Jalan) )
Yes, that’s right, apart from validating office/PT addresses, there are other addresses that must be validated, for example school addresses and many more