Hi just looking to see if anyone can help out.
I’m new to developing and this is my first Twitter app. I am learning lots as I am trying to develop this app, but I am abit stumped and have ran into a problem that I can’t find a answer.
This being getting lat & long from a hashtag search. - I know the user needs to have this enabled, but I trying to get the data for users that do.
What I have done so far;
Connected to Twitter API
Got my search hashtag working and data coming through, however the data only includes location and not lat & long.
What I need to do.
Find a way to get lat long data from the tweets on the hashtag.
$url = "https://api.twitter.com/1.1/search/tweets.json";
$requestMethod = "GET";
$getfield = '?q='.$search.'&result_type=recent&count=1';
$twitter = new TwitterAPIExchange($settings);
echo $twitter->setGetfield($getfield)
->buildOauth($url, $requestMethod)
->performRequest();
This is what I have so far, the data isn’t decoded (I want to get the correct data first) once recieved but can be viewed and understood a little bit.