countries-states-cities-database icon indicating copy to clipboard operation
countries-states-cities-database copied to clipboard

[QUESTION] are provinces supported by this db ?

Open fasenderos opened this issue 2 years ago • 3 comments

Hi, first of all thanks for this great resource.

Are the provinces supported by this db? It seems to be true from the description of this repo "World countries, states, regions, provinces, cities, towns ... ", but not from the demo.

E.g. Avigliana is in province of Torino and I'm expected this information in something like "province_name": "Torino", or I'm missing something?

image

Thanks in advance

fasenderos avatar Jun 28 '22 10:06 fasenderos

@fasenderos Nope, not yet. Only 3 level structure is being followed. I believe the province level which you're expecting is within 3rd level only (i.e. Cities)

dr5hn avatar Jul 02 '22 11:07 dr5hn

@fasenderos I was wrong. Provinces are specified within States table.

It's messed up actually, region and provinces are on the same level. I need to actually get rid of regions completely from states table and distribute the cities of those region among provinces.

Requires lots of manual work. Arghh..

Have you got any JSON or SQL source of data for Italy which has cities attached to provinces?

dr5hn avatar Aug 31 '22 11:08 dr5hn

@fasenderos I think i found one. https://raw.githubusercontent.com/lfbellante/package-laravel-italy/main/database/storage/comuni.json

Can you please let me know if this is correct source of information?

dr5hn avatar Aug 31 '22 11:08 dr5hn

Please follow #535

dr5hn avatar May 20 '23 13:05 dr5hn