I have a class that uses Google's places service. A user can enter an address and Google will return information about it.

Later on I wish to find out lat and lng coordinates on this place, so I have this method which utalizes Google's places service to get the coords.

I return a deferred as this may take some time.

```
p.getLatLong = function() {

    var dfd = $.Deferred();

        this.placesService.getDetails({
            reference: this.pacReference
        }, function(details, status){
            if(details){
                dfd.resolve({'lat' : details.geometry.location.lat(), 'lng' : details.geometry.location.lng()});
            }
            else{
                dfd.reject();
            }
        })
    }

    return dfd;
};

```

I want to be able to access the above method and just return the coords or null (if the dfd is rejected) but the method returns a deferred.

How can I just return the result of the dfd rather than the dfd itself?

I do not wish to have to call:

```
this.geo.getLatLng().done(function(data){console.log(data})

```

But something like this:

```
console.log(this.geo.getLatLng());

```