Add verify permissions for getting location
syntax err fix
Return empty string if there was no loc constraint