Twitter api search users by location


I am having an extremely tough time to search users by location.If we check the documentation as given in
It says that “Try querying by topical interest, full name, company name, location, or other criteria. Exact match searches are not supported.”

I can search for users on twitter web client based on location like: "podcast near:“Dallas,TX” within:10mi"
But unfortunately, this query does not work with twitter api. Above query just returns all the results with only the “podcast” in it and seems to ignore the near and within params.

So how do I search by location in twitter api and is it at all supported?