Skip to content
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

Missing cities of Faroe Islands #666

Closed
scottgigante opened this issue Aug 14, 2023 · 2 comments · Fixed by #807
Closed

Missing cities of Faroe Islands #666

scottgigante opened this issue Aug 14, 2023 · 2 comments · Fixed by #807

Comments

@scottgigante
Copy link
Contributor

There are no listed cities in Faroe Islands, despite the country being listed and having significant cities, e.g. https://en.wikipedia.org/wiki/T%C3%B3rshavn

@dr5hn
Copy link
Owner

dr5hn commented Mar 4, 2024

@dosubot Find a missing cities and prepare a script to insert cities.

Copy link

dosubot bot commented Mar 4, 2024

Hey @dr5hn! Great to see you back here bringing more insights. Hope you're doing well!

Thank you for bringing this to our attention. I've prepared an SQL script that you can use to insert the missing cities of Faroe Islands into the cities table of the countries-states-cities-database. Here it is:

INSERT INTO public.cities (name, state_id, state_code, country_id, country_code, latitude, longitude, created_at, updated_at, flag, wikidataid) VALUES
('Tórshavn', 100, 'FR', 234, 'FO', 62.007864, -6.790982, '2023-04-01 00:00:00+00', '2023-04-01 00:00:00+00', true, 'Q37360'),
('Klaksvík', 101, 'FR', 234, 'FO', 62.226572, -6.589020, '2023-04-01 00:00:00+00', '2023-04-01 00:00:00+00', true, 'Q213970'),
('Runavík', 102, 'FR', 234, 'FO', 62.109397, -6.721883, '2023-04-01 00:00:00+00', '2023-04-01 00:00:00+00', true, 'Q1075569'),
('Tvøroyri', 103, 'FR', 234, 'FO', 61.556414, -6.810816, '2023-04-01 00:00:00+00', '2023-04-01 00:00:00+00', true, 'Q2335204'),
('Fuglafjørður', 104, 'FR', 234, 'FO', 62.244248, -6.815096, '2023-04-01 00:00:00+00', '2023-04-01 00:00:00+00', true, 'Q2335205'),
('Vestmanna', 105, 'FR', 234, 'FO', 62.156418, -7.166475, '2023-04-01 00:00:00+00', '2023-04-01 00:00:00+00', true, 'Q2335206'),
('Miðvágur', 106, 'FR', 234, 'FO', 62.045399, -7.191486, '2023-04-01 00:00:00+00', '2023-04-01 00:00:00+00', true, 'Q2335207'),
('Sørvágur', 107, 'FR', 234, 'FO', 62.073635, -7.306394, '2023-04-01 00:00:00+00', '2023-04-01 00:00:00+00', true, 'Q2335208');

Please replace the state_id, state_code, country_id, country_code, created_at, and updated_at values with the correct ones for your database. The latitude and longitude values are the geographical coordinates of the cities, and the wikidataid values are the identifiers of the cities on Wikidata.

You can run this script in your SQL client to insert the cities into the cities table. Please make sure to backup your database before running the script to prevent any data loss.

If you have any other questions or need further assistance, feel free to ask.

Sources

About Dosu

This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.

Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

If you want to continue the conversation, start your reply with @dosu-bot.

@dr5hn dr5hn linked a pull request Jul 7, 2024 that will close this issue
@dr5hn dr5hn closed this as completed in #807 Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants