Country To Cities and City To Country There is JSON File With a lot language reading class (Just for PHP at the moment)
Supported Languages
- PHP
- Python 2x
country2city.json File Structure
{
<string> : <list>, ...,
}
{
"Turkey" : ["Istanbul","Izmir",..], ...
}
$c2c = new Country2City();
$c2c->getCities("country name");
$c2c->findCountryFromCity("city name");
$c2c->getCountries();