Get user's location only in English language

location
api

#1

I want to store each user’s location but the problem is that the location which I am getting using getUser().getLocation() returns unfiltered results. I only want the location to be in English, so is there any way to translate or set the location as null if not in English language.


#2

This looks like it is a function for a library, not the base Twitter API.

There’s no way that I’m aware of to filter for this within the API - you’ll have to perform this step inside your code.