Skip to content

Commit

Permalink
fix: Solve Duplicate cities in Indonesia
Browse files Browse the repository at this point in the history
  • Loading branch information
dr5hn committed Oct 5, 2024
1 parent a43fd6c commit 1a2fe02
Showing 1 changed file with 1 addition and 96 deletions.
97 changes: 1 addition & 96 deletions sql/world.sql
Original file line number Diff line number Diff line change
Expand Up @@ -56275,104 +56275,9 @@ INSERT INTO `cities` (`id`, `name`, `state_id`, `state_code`, `country_id`, `cou
(56718, 'Klangenan', 1825, 'JB', 102, 'ID', -6.70944000, 108.44000000, '2019-10-05 22:53:39', '2019-10-05 22:53:39', 1, 'Q24884861'),
(56719, 'Klaten', 1802, 'JT', 102, 'ID', -7.70583000, 110.60639000, '2019-10-05 22:53:39', '2019-10-05 22:53:39', 1, 'Q24884861'),
(56720, 'Klungkung', 1826, 'BA', 102, 'ID', -8.53333000, 115.40000000, '2019-10-05 22:53:39', '2019-10-05 22:53:39', 1, 'Q24884861'),
(56721, 'Komodo', 1818, 'NT', 102, 'ID', -8.58950000, 119.49130000, '2019-10-05 22:53:39', '2019-10-05 22:53:39', 1, 'Q107640'),
(56722, 'Kota Administrasi Jakarta Barat', 1805, 'JK', 102, 'ID', -6.16760000, 106.76730000, '2019-10-05 22:53:39', '2019-10-05 22:53:39', 1, 'Q10116'),
(56723, 'Kota Administrasi Jakarta Pusat', 1805, 'JK', 102, 'ID', -6.17770000, 106.84030000, '2019-10-05 22:53:39', '2019-10-05 22:53:39', 1, 'Q10109'),
(56724, 'Kota Administrasi Jakarta Selatan', 1805, 'JK', 102, 'ID', -6.26600000, 106.81350000, '2019-10-05 22:53:39', '2019-10-05 22:53:39', 1, 'Q10114'),
(56725, 'Kota Administrasi Jakarta Timur', 1805, 'JK', 102, 'ID', -6.25210000, 106.88400000, '2019-10-05 22:53:39', '2019-10-05 22:53:39', 1, 'Q10111'),
(56726, 'Kota Administrasi Jakarta Utara', 1805, 'JK', 102, 'ID', -6.13390000, 106.88230000, '2019-10-05 22:53:39', '2019-10-05 22:53:39', 1, 'Q10113'),
(56727, 'Kota Ambon', 1800, 'MA', 102, 'ID', -3.70000000, 128.18333000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q10113'),
(56728, 'Kota Balikpapan', 1804, 'KI', 102, 'ID', -1.16667000, 116.88333000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q10113'),
(56729, 'Kota Banda Aceh', 1822, 'AC', 102, 'ID', 5.54167000, 95.33333000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q10113'),
(56730, 'Kota Bandar Lampung', 1811, 'LA', 102, 'ID', -5.41667000, 105.25000000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q10113'),
(56731, 'Kota Bandung', 1825, 'JB', 102, 'ID', -6.91750000, 107.62444000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q10113'),
(56732, 'Kota Banjar', 1825, 'JB', 102, 'ID', -7.36996000, 108.53209000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q10113'),
(56733, 'Kota Banjar Baru', 1819, 'KS', 102, 'ID', -3.41667000, 114.83333000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14181'),
(56734, 'Kota Banjarmasin', 1819, 'KS', 102, 'ID', -3.32444000, 114.59102000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14182'),
(56735, 'Kota Batam', 1807, 'KR', 102, 'ID', 1.05211000, 104.02851000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14182'),
(56736, 'Kota Batu', 1827, 'JI', 102, 'ID', -7.83272000, 112.53751000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14182'),
(56737, 'Kota Baubau', 1796, 'SG', 102, 'ID', -5.47700000, 122.61660000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14182'),
(56738, 'Kota Bekasi', 1825, 'JB', 102, 'ID', -6.28333000, 106.98333000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14182'),
(56739, 'Kota Bengkulu', 1793, 'BE', 102, 'ID', -3.81667000, 102.31667000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14182'),
(56740, 'Kota Bima', 1814, 'NB', 102, 'ID', -8.46728000, 118.75259000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14182'),
(56741, 'Kota Binjai', 1792, 'SU', 102, 'ID', 3.80000000, 108.23333000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14182'),
(56742, 'Kota Bitung', 1808, 'SA', 102, 'ID', 1.48333000, 125.15000000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14182'),
(56743, 'Kota Blitar', 1827, 'JI', 102, 'ID', -8.10000000, 112.16667000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14182'),
(56744, 'Kota Bogor', 1825, 'JB', 102, 'ID', -6.59167000, 106.80000000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14182'),
(56745, 'Kota Bontang', 1804, 'KI', 102, 'ID', 0.12526000, 117.49603000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14182'),
(56746, 'Kota Bukittinggi', 1828, 'SB', 102, 'ID', -0.27500000, 100.37500000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14182'),
(56747, 'Kota Cilegon', 1810, 'BT', 102, 'ID', -6.01667000, 106.01667000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14182'),
(56748, 'Kota Cimahi', 1825, 'JB', 102, 'ID', -6.89167000, 107.55000000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q10394'),
(56749, 'Kota Cirebon', 1825, 'JB', 102, 'ID', -6.75000000, 108.55000000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q10394'),
(56750, 'Kota Denpasar', 1826, 'BA', 102, 'ID', -8.66667000, 115.21663000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q10394'),
(56751, 'Kota Depok', 1825, 'JB', 102, 'ID', -6.40000000, 106.81667000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q10396'),
(56752, 'Kota Dumai', 1809, 'RI', 102, 'ID', 1.61592000, 101.49170000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q10396'),
(56753, 'Kota Gorontalo', 1812, 'GO', 102, 'ID', 0.53333000, 123.10000000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q10396'),
(56754, 'Kota Gunungsitoli', 1792, 'SU', 102, 'ID', 1.32731000, 97.55018000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q10396'),
(56755, 'Kota Jambi', 1815, 'JA', 102, 'ID', -1.61667000, 103.65000000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q7578'),
(56756, 'Kota Jayapura', 1798, 'PA', 102, 'ID', -2.64647000, 140.77779000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q7578'),
(56757, 'Kota Kediri', 1827, 'JI', 102, 'ID', -7.83333000, 112.01667000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q7578'),
(56758, 'Kota Kendari', 1796, 'SG', 102, 'ID', -3.98333000, 122.50000000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q7578'),
(56759, 'Kota Kotamobagu', 1808, 'SA', 102, 'ID', 0.68915000, 124.32678000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q7578'),
(56760, 'Kota Kupang', 1818, 'NT', 102, 'ID', -10.21667000, 123.60000000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q7578'),
(56761, 'Kota Langsa', 1822, 'AC', 102, 'ID', 4.47000000, 97.93000000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q7578'),
(56762, 'Kota Lhokseumawe', 1822, 'AC', 102, 'ID', 5.13333000, 97.06667000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q7578'),
(56763, 'Kota Lubuklinggau', 1816, 'SS', 102, 'ID', -3.29308000, 102.85503000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q7578'),
(56764, 'Kota Madiun', 1827, 'JI', 102, 'ID', -7.63333000, 111.53333000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q7578'),
(56765, 'Kota Magelang', 1802, 'JT', 102, 'ID', -7.50000000, 110.22500000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q7578'),
(56766, 'Kota Makassar', 1795, 'SN', 102, 'ID', -5.15000000, 119.45000000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14634'),
(56767, 'Kota Malang', 1827, 'JI', 102, 'ID', -7.97500000, 112.63333000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14634'),
(56768, 'Kota Manado', 1808, 'SA', 102, 'ID', 1.51667000, 124.88333000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14634'),
(56769, 'Kota Mataram', 1814, 'NB', 102, 'ID', -8.58330000, 116.11670000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14126'),
(56770, 'Kota Medan', 1792, 'SU', 102, 'ID', 3.65000000, 98.66667000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14126'),
(56771, 'Kota Metro', 1811, 'LA', 102, 'ID', -5.11856000, 105.29949000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14126'),
(56772, 'Kota Mojokerto', 1827, 'JI', 102, 'ID', -7.46667000, 112.43333000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14126'),
(56773, 'Kota Padang', 1828, 'SB', 102, 'ID', -0.98333000, 100.45000000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14126'),
(56774, 'Kota Padang Panjang', 1828, 'SB', 102, 'ID', -0.45000000, 100.43333000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14126'),
(56775, 'Kota Padangsidimpuan', 1792, 'SU', 102, 'ID', 1.37375000, 99.26843000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14126'),
(56776, 'Kota Pagar Alam', 1816, 'SS', 102, 'ID', -4.13055000, 103.26822000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14126'),
(56777, 'Kota Palangka Raya', 1794, 'KT', 102, 'ID', -1.76979000, 113.73126000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14409'),
(56778, 'Kota Palembang', 1816, 'SS', 102, 'ID', -3.00000000, 104.71667000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14409'),
(56779, 'Kota Palopo', 1795, 'SN', 102, 'ID', -2.97841000, 120.11078000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14409'),
(56780, 'Kota Palu', 1813, 'ST', 102, 'ID', -0.86972000, 119.90000000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q15826'),
(56781, 'Kota Pangkal Pinang', 1820, 'BB', 102, 'ID', -2.13333000, 106.13333000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q15826'),
(56782, 'Kota Parepare', 1795, 'SN', 102, 'ID', -4.03333000, 119.65000000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56783, 'Kota Pariaman', 1828, 'SB', 102, 'ID', -0.62682000, 100.12047000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56784, 'Kota Pasuruan', 1827, 'JI', 102, 'ID', -7.65000000, 112.90000000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56785, 'Kota Payakumbuh', 1828, 'SB', 102, 'ID', -0.23333000, 100.63333000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56786, 'Kota Pekalongan', 1802, 'JT', 102, 'ID', -6.90000000, 109.68333000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56787, 'Kota Pekanbaru', 1809, 'RI', 102, 'ID', 0.53333000, 101.46667000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56788, 'Kota Pematang Siantar', 1792, 'SU', 102, 'ID', 2.96667000, 99.05000000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56789, 'Kota Prabumulih', 1816, 'SS', 102, 'ID', -3.46202000, 104.22290000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56790, 'Kota Probolinggo', 1827, 'JI', 102, 'ID', -7.78333000, 113.21667000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56791, 'Kota Sabang', 1822, 'AC', 102, 'ID', 5.87944000, 95.33223000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636');
(56721, 'Komodo', 1818, 'NT', 102, 'ID', -8.58950000, 119.49130000, '2019-10-05 22:53:39', '2019-10-05 22:53:39', 1, 'Q107640');

INSERT INTO `cities` (`id`, `name`, `state_id`, `state_code`, `country_id`, `country_code`, `latitude`, `longitude`, `created_at`, `updated_at`, `flag`, `wikiDataId`) VALUES
(56792, 'Kota Salatiga', 1802, 'JT', 102, 'ID', -7.33278000, 110.48333000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56793, 'Kota Samarinda', 1804, 'KI', 102, 'ID', -0.43333000, 117.18333000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56794, 'Kota Sawah Lunto', 1828, 'SB', 102, 'ID', -0.60000000, 100.75000000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56795, 'Kota Semarang', 1802, 'JT', 102, 'ID', -7.03333000, 110.38333000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56796, 'Kota Serang', 1810, 'BT', 102, 'ID', -6.12563000, 106.14999000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56797, 'Kota Sibolga', 1792, 'SU', 102, 'ID', 1.73333000, 98.80000000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56798, 'Kota Solok', 1828, 'SB', 102, 'ID', -0.76667000, 100.61667000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56799, 'Kota Sorong', 5238, 'PD', 102, 'ID', -0.86507000, 131.25152000, '2019-10-05 22:53:40', '2024-08-27 05:24:17', 1, 'Q14636'),
(56800, 'Kota Subulussalam', 1822, 'AC', 102, 'ID', 2.75000000, 97.93333000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56801, 'Kota Sukabumi', 1825, 'JB', 102, 'ID', -6.95000000, 106.93333000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56802, 'Kota Sungai Penuh', 1815, 'JA', 102, 'ID', -2.10896000, 101.32175000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56803, 'Kota Surabaya', 1827, 'JI', 102, 'ID', -7.26667000, 112.71667000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56804, 'Kota Surakarta', 1802, 'JT', 102, 'ID', -7.55000000, 110.81667000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56805, 'Kota Tangerang', 1810, 'BT', 102, 'ID', -6.17944000, 106.62991000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56806, 'Kota Tangerang Selatan', 1810, 'BT', 102, 'ID', -6.29373000, 106.71244000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q14636'),
(56807, 'Kota Tanjung Balai', 1792, 'SU', 102, 'ID', 2.95833000, 99.79167000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q5987'),
(56808, 'Kota Tanjung Pinang', 1807, 'KR', 102, 'ID', 0.91683000, 104.44329000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q5987'),
(56809, 'Kota Tasikmalaya', 1825, 'JB', 102, 'ID', -7.35000000, 108.21667000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q5987'),
(56810, 'Kota Tebing Tinggi', 1792, 'SU', 102, 'ID', 3.32500000, 99.14167000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q5987'),
(56811, 'Kota Tegal', 1802, 'JT', 102, 'ID', -6.86860000, 109.11290000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q5987'),
(56812, 'Kota Ternate', 1801, 'MU', 102, 'ID', 0.89618000, 127.31016000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q19151'),
(56813, 'Kota Tidore Kepulauan', 1801, 'MU', 102, 'ID', 0.60962000, 127.56981000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q19153'),
(56814, 'Kota Tomohon', 1808, 'SA', 102, 'ID', 1.31307000, 124.83404000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q19153'),
(56815, 'Kota Tual', 1800, 'MA', 102, 'ID', -5.64301000, 132.74935000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q19153'),
(56816, 'Kota Yogyakarta', 1829, 'YO', 102, 'ID', -7.80000000, 110.37500000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q19153'),
(56817, 'Kotabumi', 1811, 'LA', 102, 'ID', -4.82505000, 104.88170000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q19153'),
(56818, 'Kraksaan', 1827, 'JI', 102, 'ID', -7.75845000, 113.39624000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q19153'),
(56819, 'Kresek', 1825, 'JB', 102, 'ID', -6.13139000, 106.37972000, '2019-10-05 22:53:40', '2019-10-05 22:53:40', 1, 'Q19153'),
Expand Down

0 comments on commit 1a2fe02

Please sign in to comment.