How to get the location in OpenMRS

This looks like a duplicate for How to get the location in OpenMRS