How to normalize city name from many similar names
<p>I'm getting city name from a 3rd party API. That API doesn't return normalized city name. For example, sometimes its <code>San Francisco</code>, sometime its <code>San Francisco, CA</code>, sometimes its <code>San Francisco, USA</code>. I dont need street address etc.. I just need to normalize the city name to be something uniform. I'm looking for a service that could help me with this requirement.</p>

<p>P.S: Its not mobile app, its web app and the location doesn't come from the browser.</p>