use this data
"https://simplemaps.com/data/world-cities"
download free version and convert excel to JSON with some online converter like "http://beautifytools.com/excel-to-json-converter.php"
use IP address
which is not good because using IP address of someone may not good
users think that you can hack them.