- To add a new city, add the city to the
allCities.geo.json
andallCities.lite.json
in the respective state and country folder. - To remove a city, remove it from the
allCities.geo.json
andallCities.lite.json
in the respective state and country folder. - To update a city, update it in the
allCities.geo.json
andallCities.lite.json
in the respective state and country folder.
- To add a new state, add the state data to the
allStates.geo.json
andallStates.lite.json
in the respective country folder. Also, you need to add a new folder with name in the format<stateName>-<stateIsoCode>
in the country folder and add cities respectively as mentioned above. - To remove a state, remove the state data from
allStates.geo.json
andallStates.lite.json
in the respective country folder and then remove the state folder. - To udpate a state, update the state data in the
allStates.geo.json
andallStates.lite.json
in the respective country folder. - If the state name is updated then you also need to rename the state folder.
- If the state isoCode is updated then you need to update it in all the cities of that state.
- To add a new country, add the country data to the
allCountries.geo.json
,allCountries.lite.json
,allCountries.timezones.json
. Also, you need to add a new folder with a name using the format<countryName>-<countryIsoCode>
in the country folder and then add states and cities respectively as mentioned above. - To remove a country, remove the country data from
allCountries.geo.json
,allCountries.lite.json
,allCountries.timezones.json
and then remove the state folder. - To udpate a country, update the data in the
allCountries.geo.json
,allCountries.lite.json
,allCountries.timezones.json
in the respective country folder. - If the country name is updated then you also need to rename the country folder.
- If the country isoCode is updated then you need to update it in all the states and cities of that country.