<script src="https://api-maps.yandex.ru/2.0/?load=package.full&lang=ru-RU" type="text/javascript"></script>
<script type="text/javascript">
                ymaps.ready(function(){
                    var geolocation = ymaps.geolocation;
                  alert(geolocation.country);
                  alert(geolocation.region);
                  alert(geolocation.city);
            });
</script>
Работает
Его надо в теги [ HTML run ]...[ /HTML ] вставлять, а не [ JS ]