country-state-city icon indicating copy to clipboard operation
country-state-city copied to clipboard

Morocoo | State Code

Open kamalkech opened this issue 3 years ago • 2 comments

in version 2.0.0 of country-state-city package, for example i found city agadir info is :

{
        "name": "Agadir",
        "countryCode": "MA",
        "stateCode": "ASZ",
        "latitude": "30.42018000",
        "longitude": "-9.59815000"
},

the state code is 09 not ASZ, mean agadir in state Souss-Massa: { "name": "Souss-Massa", "isoCode": "09", "countryCode": "MA", "latitude": "30.27506110", "longitude": "-8.13385580" }

hope to fixe this issues and anothers cities and share link when you import this list of data

Than you

kamalkech avatar Jan 31 '21 20:01 kamalkech

Hi @kamalkech

Regarding v2.0.0

  1. It is not backward compatible with previous versions.
  2. We have also removed proprietor Index Ids for uniquely identifying Country, State, City. Instead, now we are using standard iso-codes.

Please use earlier version if you still need previous state code.

harpreetkhalsagtbit avatar Feb 25 '21 12:02 harpreetkhalsagtbit

@harpreetkhalsagtbit thank you for response, i already check last version and i found too many data that not correct like many cities are not in the correct state. Hope in the futur features or new version fixe all those issues

kamalkech avatar Feb 25 '21 14:02 kamalkech