How to get user geolocation in Twitter4j?
<p>I want get the information of user geolocation in twitter using <a href="https://twitter4j.org" rel="nofollow">Twitter4J</a>.</p>

<p>I use <code>tweet.getUser.getLocation()</code> but that gives me the wrong geolocation. </p>

<pre><code>// create ConfigurationBuilder class variables "cb"

    // Create Twitter Factory
    TwitterFactory twitterFactory = new TwitterFactory(cb.build());
    Twitter twitter = twitterFactory.getInstance();
    try {
        Query query = new Query("범죄");
        QueryResult result;
        int twittNum = 1;
        do {
            result = twitter.search(query);
            List&lt;Status&gt; tweets = result.getTweets();
            for (Status tweet : tweets) {
                System.out.println("===========================================================================================================");
                System.out.println("["+twittNum+"] 번째 트윗");
                System.out.println("유저이름1:"+tweet.getUser().getName());
                System.out.println("트윗장소:"+tweet.getUser().getLocation());
                System.out.println("트윗언어:"+tweet.getUser().getLang());
                System.out.println("트윗시간?:"+tweet.getUser().getCreatedAt());
                System.out.println("===========================================================================================================");
                twittNum++;
            }
        } while ((query = result.nextQuery()) != null);
        System.exit(0);
    } catch (TwitterException te) {
        te.printStackTrace();
        System.out.println("Failed to search tweets: " + te.getMessage());
        System.exit(-1);
    }
}
</code></pre>