The class and service isn't geographically limited, so there is no reason why it isn't working, except that maybe your IP address isn't in the geoip database.
If you could post an output of what this page says (from the location where you are trying the class), it will help understand why it isn't working for you:
geoplugin.net/php.gp