To get the country in Pega, you have the following rules available to get the same.
Step 1: Make sure that DSS setting for Google Map API key is set with Right API Key.
Step 2: We have properties pyLatitude and pyLongitude at pxRequestor level. we should make sure that these values are assigned with values. To set these values you can use activity @baseclass.pzSetLatLongInPxRequestor. To get the address for the given latitude and longitude, please use the activity @baseclass.pzGetCurrentAddress. You can use the outcome address to parse further to get the exact location you are looking for (country,state etc)
You can use the above activities in your application to set and get the location according to requirement.