Spanish Noun: Oficial
How to address a representative of the authority Oficial‘ [? 'officer] is a sure bet whether he or she is ranked or not. They’ll gladly accept it nevertheless.
You can use this word for all kinds in Latin-America and any representative with uniform in Spain. ‘Oficial’ is also the translation for ‘Official’, so don’t get confused if you hear it in another context.
¿Hay algún problema oficial?
Is there a problem, officer?