I guess you're gonna have to write it 
it's probably worth having a minimal working example and asking people, possibly in stack exchange too as well as Twitter
You can add location information to your Tweets, such as your city or precise location, from the web and via third-party applications. You always have the option to delete your Tweet location history. Learn more
it's probably worth having a minimal working example and asking people, possibly in stack exchange too as well as Twitter