my $long = $location->{'geometry'}{'viewport'}{'location'}{'lng'}; my $lat = $location->{'geometry'}{'viewport'}{'location'}{'lat'};