[ASK] How to get real location from user ? not optional location

location
php
geo

#1

How to get real location from user ? not optional location…

$waktu = $result->created_at;
$idTweet = $result->id_str;
$tweet =$result->text;
$sumberAkses =$result->source;
$idUser =$result->user->id_str;
$userName=$result->user->screen_name;
$nama=$result->user->name;
$deskripsi=$result->user->description;
$Verifikasi=$verifikasi;
$jmlFollower =$result->user->followers_count;
$lokasi =$result->user->location;
$zonaWaktu =$result->user->time_zone;

#2

Sorry, what do you mean by this?

It looks like you have posted some PHP code that is mapping variables out of Tweet objects.

Location is optional both in user profile objects and in Tweet object geo attributes, and it is totally down to the user to choose to share their location in either of those two objects.

Only a small percentage of Tweets have geo data associated with them. It is not possible to extract a user location if that information is not actively being shared.


#3

Mapping that was to be executed, and I’ve been getting results.
It’s just that I do not get The real location of the user.
I think twitter has the user’s location without sharing the location of the user. It turns out I was mistaken. I’m understand now.