location.th.inc 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. // Thailand
  3. function location_province_list_th() {
  4. return array('10' => "Bangkok",
  5. '11' => "Samut Prakan",
  6. '12' => "Nonthaburi",
  7. '13' => "Pathum Thani",
  8. '14' => "Phra Nakhon Si Ayutthaya",
  9. '15' => "Ang Thong",
  10. '16' => "Lop Buri",
  11. '17' => "Sing Buri",
  12. '18' => "Chai Nat",
  13. '19' => "Saraburi",
  14. '20' => "Chon Buri",
  15. '21' => "Rayong",
  16. '22' => "Chanthaburi",
  17. '23' => "Trat",
  18. '24' => "Chachoengsao",
  19. '25' => "Prachin Buri",
  20. '26' => "Nakhon Nayok",
  21. '27' => "Sa Kaeo",
  22. '30' => "Nakhon Ratchasima",
  23. '31' => "Buri Ram",
  24. '32' => "Surin",
  25. '33' => "Si Sa Ket",
  26. '34' => "Ubon Ratchathani",
  27. '35' => "Yasothon",
  28. '36' => "Chaiyaphum",
  29. '37' => "Amnat Charoen",
  30. '39' => "Nong Bua Lam Phu",
  31. '40' => "Khon Kaen",
  32. '41' => "Udon Thani",
  33. '42' => "Loei",
  34. '43' => "Nong Khai",
  35. '44' => "Maha Sarakham",
  36. '45' => "Roi Et",
  37. '46' => "Kalasin",
  38. '47' => "Sakon Nakhon",
  39. '48' => "Nakhon Phanom",
  40. '49' => "Mukdahan",
  41. '50' => "Chiang Mai",
  42. '51' => "Lamphun",
  43. '52' => "Lampang",
  44. '53' => "Uttaradit",
  45. '54' => "Phrae",
  46. '55' => "Nan",
  47. '56' => "Phayao",
  48. '57' => "Chiang Rai",
  49. '58' => "Mae Hong Son",
  50. '60' => "Nakhon Sawan",
  51. '61' => "Uthai Thani",
  52. '62' => "Kamphaeng Phet",
  53. '63' => "Tak",
  54. '64' => "Sukhothai",
  55. '65' => "Phitsanulok",
  56. '66' => "Phichit",
  57. '70' => "Ratchaburi",
  58. '71' => "Kanchanaburi",
  59. '72' => "Suphanburi",
  60. '73' => "Nakhon Pathom",
  61. '74' => "Samut Sakhon",
  62. '75' => "Samut Songkhram",
  63. '76' => "Phetchabun",
  64. '78' => "Phetchaburi",
  65. '77' => "Prachuap Khiri Khan",
  66. '80' => "Nakhon Si Thammarat",
  67. '81' => "Krabi",
  68. '82' => "Phang Nga",
  69. '83' => "Phuket",
  70. '84' => "Surat Thani",
  71. '85' => "Ranong",
  72. '86' => "Chumpon",
  73. '90' => "Songkhla",
  74. '91' => "Satun",
  75. '92' => "Trang",
  76. '93' => "Phattalung",
  77. '94' => "Pattani",
  78. '95' => "Yala",
  79. '96' => "Narathiwat",
  80. 'S' => "Pattaya");
  81. }
  82. /**
  83. * Returns minimum and maximum latitude and longitude needed to create a bounding box.
  84. */
  85. function location_bounds_th() {
  86. return array(
  87. 'minlng' => 97.3234,
  88. 'minlat' => 5.697633,
  89. 'maxlng' => 105.57965,
  90. 'maxlat' => 20.5392,
  91. );
  92. }