คลิกดูรายละเอียดและดาวน์โหลดจากลิ้งค์นี้ครับ https://github.com/aaronamm/thai-administrative-division-province-district-subdistrict-sql
ข้อมูลจาก Open Government Data data.go.th
ฐานข้อมูลมีจำนวนข้อมูลดังนี้
SQL statement to verify number of row
1 2 3 |
select count(id) from provinces; select count(id) from districts; select count(id) from subdistricts; |
Credit
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 |
-- -- Table structure for table `province_th` -- CREATE TABLE `province_th` ( `province_id` int(11) NOT NULL auto_increment, `province_name` varchar(255) NOT NULL, `province_lat` varchar(255) NOT NULL, `province_lon` varchar(255) NOT NULL, `province_zoom` int(11) NOT NULL, PRIMARY KEY (`province_id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=78 ; -- -- Dumping data for table `province_th` -- INSERT INTO `province_th` VALUES (1, 'กรุงเทพมหานคร', '13.7278956', '100.52412349999997', 13); INSERT INTO `province_th` VALUES (2, 'กระบี่', '8.0862997', '98.90628349999997', 13); INSERT INTO `province_th` VALUES (3, 'กาญจนบุรี', '14.0227797', '99.53281149999998', 13); INSERT INTO `province_th` VALUES (4, 'กาฬสินธุ์', '16.4314078', '103.5058755', 13); INSERT INTO `province_th` VALUES (5, 'กำแพงเพชร', '16.4827798', '99.52266179999992', 13); INSERT INTO `province_th` VALUES (6, 'ขอนแก่น', '16.4419355', '102.8359921', 13); INSERT INTO `province_th` VALUES (7, 'จันทบุรี', '12.61134', '102.10385459999998', 13); INSERT INTO `province_th` VALUES (8, 'ฉะเชิงเทรา', '13.6904194', '101.07795959999999', 13); INSERT INTO `province_th` VALUES (9, 'ชลบุรี', '13.3611431', '100.98467170000004', 13); INSERT INTO `province_th` VALUES (10, 'ชัยนาท', '15.1851971', '100.12512500000003', 13); INSERT INTO `province_th` VALUES (11, 'ชัยภูมิ', '15.8068173', '102.03150270000003', 13); INSERT INTO `province_th` VALUES (12, 'ชุมพร', '10.4930496', '99.18001989999993', 13); INSERT INTO `province_th` VALUES (13, 'เชียงราย', '19.9071656', '99.83095500000002', 13); INSERT INTO `province_th` VALUES (14, 'เชียงใหม่', '18.7877477', '98.99313110000003', 13); INSERT INTO `province_th` VALUES (15, 'ตรัง', '7.5593851', '99.61100650000003', 13); INSERT INTO `province_th` VALUES (16, 'ตราด', '12.2427563', '102.51747339999997', 13); INSERT INTO `province_th` VALUES (17, 'ตาก', '16.8839901', '99.12584979999997', 13); INSERT INTO `province_th` VALUES (18, 'นครนายก', '14.2069466', '101.21305110000003', 13); INSERT INTO `province_th` VALUES (19, 'นครปฐม', '13.8199206', '100.06216760000007', 13); INSERT INTO `province_th` VALUES (20, 'นครพนม', '17.392039', '104.76955079999993', 13); INSERT INTO `province_th` VALUES (21, 'นคราชสีมา', '14.9798997', '102.09776929999998', 13); INSERT INTO `province_th` VALUES (22, 'นครศรีธรรมราช', '8.4303975', '99.96312190000003', 13); INSERT INTO `province_th` VALUES (23, 'นครสวรรค์', '15.6930072', '100.12255949999997', 13); INSERT INTO `province_th` VALUES (24, 'นนทบุรี', '13.8621125', '100.51435279999998', 13); INSERT INTO `province_th` VALUES (25, 'นราธิวาส', '6.4254607', '101.82531429999995', 13); INSERT INTO `province_th` VALUES (26, 'น่าน', '18.7756318', '100.77304170000002', 13); INSERT INTO `province_th` VALUES (27, 'บุรีรัมย์', '14.9930017', '103.10291910000001', 13); INSERT INTO `province_th` VALUES (28, 'ปทุมธานี', '14.0208391', '100.52502759999993', 13); INSERT INTO `province_th` VALUES (29, 'ประจวบคีรีขันธ์', '11.812367', '99.79732709999996', 13); INSERT INTO `province_th` VALUES (30, 'ปราจีนบุรี', '14.0509704', '101.37274389999993', 13); INSERT INTO `province_th` VALUES (31, 'ปัตตานี', '6.869484399999999', '101.25048259999994', 13); INSERT INTO `province_th` VALUES (32, 'พระนครศรีอยุธยา', '14.3532128', '100.56895989999998', 13); INSERT INTO `province_th` VALUES (33, 'พะเยา', '19.1664789', '99.9019419', 13); INSERT INTO `province_th` VALUES (34, 'พังงา', '8.4407456', '98.51930319999997', 13); INSERT INTO `province_th` VALUES (35, 'พัทลุง', '7.6166823', '100.07402309999998', 13); INSERT INTO `province_th` VALUES (36, 'พิจิตร', '16.4429516', '100.34823289999997', 13); INSERT INTO `province_th` VALUES (37, 'พิษณุโลก', '16.8298048', '100.26149150000003', 13); INSERT INTO `province_th` VALUES (38, 'เพชรบุรี', '13.1111601', '99.93913069999996', 13); INSERT INTO `province_th` VALUES (39, 'เพชรบูรณ์', '16.4189807', '101.15509259999999', 13); INSERT INTO `province_th` VALUES (40, 'แพร่', '18.1445774', '100.14028310000003', 13); INSERT INTO `province_th` VALUES (41, 'ภูเก็ต', '7.9810496', '98.36388239999997', 13); INSERT INTO `province_th` VALUES (42, 'มหาสารคาม', '16.1850896', '103.30264609999995', 13); INSERT INTO `province_th` VALUES (43, 'มุกดาหาร', '16.542443', '104.72091509999996', 13); INSERT INTO `province_th` VALUES (44, 'แม่ฮ่องสอน', '19.2990643', '97.96562259999996', 13); INSERT INTO `province_th` VALUES (45, 'ยโสธร', '15.792641', '104.14528270000005', 13); INSERT INTO `province_th` VALUES (46, 'ยะลา', '6.541147', '101.28039469999999', 13); INSERT INTO `province_th` VALUES (47, 'ร้อยเอ็ด', '16.0538196', '103.65200359999994', 13); INSERT INTO `province_th` VALUES (48, 'ระนอง', '9.9528702', '98.60846409999999', 13); INSERT INTO `province_th` VALUES (49, 'ระยอง', '12.6833115', '101.23742949999996', 13); INSERT INTO `province_th` VALUES (50, 'ราชบุรี', '13.5282893', '99.81342110000003', 13); INSERT INTO `province_th` VALUES (51, 'ลพบุรี', '14.7995081', '100.65337060000002', 13); INSERT INTO `province_th` VALUES (52, 'ลำปาง', '18.2888404', '99.49087399999996', 13); INSERT INTO `province_th` VALUES (53, 'ลำพูน', '18.5744606', '99.0087221', 13); INSERT INTO `province_th` VALUES (54, 'เลย', '17.4860232', '101.72230020000006', 13); INSERT INTO `province_th` VALUES (55, 'ศรีสะเกษ', '15.1186009', '104.32200949999992', 13); INSERT INTO `province_th` VALUES (56, 'สกลนคร', '17.1545995', '104.1348365', 13); INSERT INTO `province_th` VALUES (57, 'สงขลา', '7.1756004', '100.61434699999995', 13); INSERT INTO `province_th` VALUES (58, 'สตูล', '6.6238158', '100.06737440000006', 13); INSERT INTO `province_th` VALUES (59, 'สมุทรปราการ', '13.5990961', '100.59983190000003', 13); INSERT INTO `province_th` VALUES (60, 'สมุทรสงคราม', '13.4098217', '100.00226450000002', 13); INSERT INTO `province_th` VALUES (61, 'สมุทรสาคร', '13.5475216', '100.27439559999993', 13); INSERT INTO `province_th` VALUES (62, 'สระแก้ว', '13.824038', '102.0645839', 13); INSERT INTO `province_th` VALUES (63, 'สระบุรี', '14.5289154', '100.91014210000003', 13); INSERT INTO `province_th` VALUES (64, 'สิงห์บุรี', '14.8936253', '100.39673140000002', 13); INSERT INTO `province_th` VALUES (65, 'สุโขทัย', '17.0055573', '99.82637120000004', 13); INSERT INTO `province_th` VALUES (66, 'สุพรรณบุรี', '14.4744892', '100.11771279999994', 13); INSERT INTO `province_th` VALUES (67, 'สุราษฎร์ธานี', '9.1382389', '99.32174829999997', 13); INSERT INTO `province_th` VALUES (68, 'สุรินทร์', '14.882905', '103.49371070000007', 13); INSERT INTO `province_th` VALUES (69, 'หนองคาย', '17.8782803', '102.74126380000007', 13); INSERT INTO `province_th` VALUES (70, 'หนองบัวลำภู', '17.2218247', '102.42603680000002', 13); INSERT INTO `province_th` VALUES (71, 'อ่างทอง', '14.5896054', '100.45505200000002', 13); INSERT INTO `province_th` VALUES (72, 'อำนาจเจริญ', '15.8656783', '104.62577740000006', 13); INSERT INTO `province_th` VALUES (73, 'อุดรธานี', '17.4138413', '102.78723250000007', 13); INSERT INTO `province_th` VALUES (74, 'อุตรดิตถ์', '17.6200886', '100.09929420000003', 13); INSERT INTO `province_th` VALUES (75, 'อุทัยธานี', '15.3835001', '100.02455269999996', 13); INSERT INTO `province_th` VALUES (76, 'อุบลราชธานี', '15.2286861', '104.85642170000006', 13); INSERT INTO `province_th` VALUES (77, 'บึงกาฬ', '18.3609104', '103.64644629999998', 13); |
ข้อมูลจาก www.ninenik.com/ฐานข้อมูลจังหวัด_และพิกัด_ดึงข้อมูลจาก_google_map_-454.html
ป้ายกำกับ:google map