-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
France's cities not matching its states code #685
Comments
Seeing the states data here : The cities match with the states of type : "metropolitan region", but all the other states (state in these region) have no cities matching. A quick fix would have been to filter the state to only get the "metropolitan region" ones with their matching cities, but we don't have access to the type in the code... The complete fix : make the cities match with the region and with the other state. |
+1 here |
@dosubot Please help me fix this and raise a PR. |
I understand the issue you're facing with the mismatch of state codes for cities in France. This seems to be a known issue as there's an open issue titled France No link between city and state databases which was last updated on December 17, 2023. To resolve this, you would need to update the state codes in your database to match the actual regions or departments. Here's a general approach to update the state codes for France, specifically for Paris to match 'IDF' for 'Ile-de-France':
<state>
<id>XXXX</id>
<name>Ile-de-France</name>
<country_id>FR</country_id> <!-- Assuming 'FR' is the country code for France -->
<country_code>FR</country_code>
<country_name>France</country_name>
<state_code>IDF</state_code>
<type>Region</type>
<!-- Add latitude and longitude if needed -->
</state>
<city>
<id>YYYY</id>
<name>Paris</name>
<state_id>XXXX</state_id> <!-- Match the ID of Ile-de-France -->
<state_code>IDF</state_code>
<country_id>FR</country_id>
<country_code>FR</country_code>
<country_name>France</country_name>
<!-- Add latitude and longitude if needed -->
</city>
Remember, the key steps are identifying the correct structure for your data, ensuring the entries for France's regions and cities are accurate, and then updating the state codes to reflect the actual administrative divisions. As for the structure of the database, the I hope this helps! If you need further assistance, feel free to ask. Sources
|
Duplicate of #473 |
You cannot find the cities of Paris for instance because when you select Paris, you get the state code of '75C' but the cities have the state code 'IDF' for 'Ile-de-France'.
The text was updated successfully, but these errors were encountered: