yunion.io/x/cloudmux@v0.3.10-0-alpha.1/pkg/apis/compute/regiondata.go (about) 1 // Copyright 2019 Yunion 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 package compute 16 17 import ( 18 "yunion.io/x/cloudmux/pkg/cloudprovider" 19 ) 20 21 var ( 22 // China 23 RegionBeijing = cloudprovider.SGeographicInfo{ 24 Latitude: 39.90419989999999, 25 Longitude: 116.4073963, 26 City: CITY_BEI_JING, 27 CountryCode: COUNTRY_CODE_CN, 28 } 29 RegionNingxia = cloudprovider.SGeographicInfo{ 30 Latitude: 37.198731, 31 Longitude: 106.1580937, 32 City: CITY_NING_XIA, 33 CountryCode: COUNTRY_CODE_CN, 34 } 35 RegionShanghai = cloudprovider.SGeographicInfo{ 36 Latitude: 31.17, 37 Longitude: 121.47, 38 City: CITY_SHANG_HAI, 39 CountryCode: COUNTRY_CODE_CN, 40 } 41 RegionGuangzhou = cloudprovider.SGeographicInfo{ 42 Latitude: 23.12911, 43 Longitude: 113.264385, 44 City: CITY_GUANG_ZHOU, 45 CountryCode: COUNTRY_CODE_CN, 46 } 47 RegionDalian = cloudprovider.SGeographicInfo{ 48 Latitude: 38.91400300000001, 49 Longitude: 121.614682, 50 City: CITY_DA_LIAN, 51 CountryCode: COUNTRY_CODE_CN, 52 } 53 RegionGuiyang = cloudprovider.SGeographicInfo{ 54 Latitude: 26.6470035286, 55 Longitude: 106.6302113880, 56 City: CITY_GUI_YANG, 57 CountryCode: COUNTRY_CODE_CN, 58 } 59 RegionNeimenggu = cloudprovider.SGeographicInfo{ 60 Latitude: 41.0178713, 61 Longitude: 113.094978, 62 City: CITY_NEI_MENG_GU, 63 CountryCode: COUNTRY_CODE_CN, 64 } 65 RegionQingdao = cloudprovider.SGeographicInfo{ 66 Latitude: 36.067108, 67 Longitude: 120.382607, 68 City: CITY_QING_DAO, 69 CountryCode: COUNTRY_CODE_CN, 70 } 71 RegionZhangjiakou = cloudprovider.SGeographicInfo{ 72 Latitude: 40.767544, 73 Longitude: 114.886337, 74 City: CITY_ZHANG_JIA_KOU, 75 CountryCode: COUNTRY_CODE_CN, 76 } 77 RegionHuhehaote = cloudprovider.SGeographicInfo{ 78 Latitude: 40.842358, 79 Longitude: 111.749992, 80 City: CITY_HU_HE_HAO_TE, 81 CountryCode: COUNTRY_CODE_CN, 82 } 83 RegionHangzhou = cloudprovider.SGeographicInfo{ 84 Latitude: 30.274084, 85 Longitude: 120.155067, 86 City: CITY_HANG_ZHOU, 87 CountryCode: COUNTRY_CODE_CN, 88 } 89 RegionShenzhen = cloudprovider.SGeographicInfo{ 90 Latitude: 22.543097, 91 Longitude: 114.057861, 92 City: CITY_SHEN_ZHEN, 93 CountryCode: COUNTRY_CODE_CN, 94 } 95 RegionChengdu = cloudprovider.SGeographicInfo{ 96 Latitude: 30.572815, 97 Longitude: 104.066803, 98 City: CITY_CHENG_DU, 99 CountryCode: COUNTRY_CODE_CN, 100 } 101 RegionHeyuan = cloudprovider.SGeographicInfo{ 102 Latitude: 23.7292717, 103 Longitude: 114.6965786, 104 City: CITY_HE_YUAN, 105 CountryCode: COUNTRY_CODE_CN, 106 } 107 RegionWulanchabu = cloudprovider.SGeographicInfo{ 108 Latitude: 41.0178065, 109 Longitude: 113.094978, 110 City: CITY_WU_LAN_CHA_BU, 111 CountryCode: COUNTRY_CODE_CN, 112 } 113 RegionChongqing = cloudprovider.SGeographicInfo{ 114 Latitude: 29.431585, 115 Longitude: 106.912254, 116 City: CITY_CHONG_QING, 117 CountryCode: COUNTRY_CODE_CN, 118 } 119 RegionNanjing = cloudprovider.SGeographicInfo{ 120 Latitude: 32.0584065670, 121 Longitude: 118.7964897811, 122 City: CITY_NAN_JING, 123 CountryCode: COUNTRY_CODE_CN, 124 } 125 126 // Asia 127 RegionTaiwan = cloudprovider.SGeographicInfo{ 128 Latitude: 25.0443, 129 Longitude: 121.509, 130 City: CITY_TAI_WAN, 131 CountryCode: COUNTRY_CODE_CN, 132 } 133 RegionHongkong = cloudprovider.SGeographicInfo{ 134 Latitude: 22.396427, 135 Longitude: 114.109497, 136 City: CITY_HONG_KONG, 137 CountryCode: COUNTRY_CODE_CN, 138 } 139 RegionTokyo = cloudprovider.SGeographicInfo{ 140 Latitude: 35.709026, 141 Longitude: 139.731995, 142 City: CITY_TOKYO, 143 CountryCode: COUNTRY_CODE_JP, 144 } 145 RegionOsaka = cloudprovider.SGeographicInfo{ 146 Latitude: 34.6937378, 147 Longitude: 135.5021651, 148 City: CITY_OSAKA, 149 CountryCode: COUNTRY_CODE_JP, 150 } 151 RegionSeoul = cloudprovider.SGeographicInfo{ 152 Latitude: 34.6937378, 153 Longitude: 135.5021651, 154 City: CITY_SEOUL, 155 CountryCode: COUNTRY_CODE_KR, 156 } 157 RegionBusan = cloudprovider.SGeographicInfo{ 158 Latitude: 35.1, 159 Longitude: 129.0403, 160 City: CITY_BUSAN, 161 CountryCode: COUNTRY_CODE_KR, 162 } 163 164 RegionMumbai = cloudprovider.SGeographicInfo{ 165 Latitude: 19.07599, 166 Longitude: 72.877393, 167 City: CITY_MUMBAI, 168 CountryCode: COUNTRY_CODE_IN, 169 } 170 RegionDelhi = cloudprovider.SGeographicInfo{ 171 Latitude: 28.61, 172 Longitude: 77.23, 173 City: CITY_DELHI, 174 CountryCode: COUNTRY_CODE_IN, 175 } 176 RegionMaharashtra = cloudprovider.SGeographicInfo{ 177 Latitude: 18.97, 178 Longitude: 72.82, 179 City: CITY_MAHARASHTRA, 180 CountryCode: COUNTRY_CODE_IN, 181 } 182 RegionKanchipuram = cloudprovider.SGeographicInfo{ 183 Latitude: 12.8387, 184 Longitude: 79.7016, 185 City: CITY_KANCHIPURAM, 186 CountryCode: COUNTRY_CODE_IN, 187 } 188 189 RegionSingapore = cloudprovider.SGeographicInfo{ 190 Latitude: 1.352083, 191 Longitude: 103.819839, 192 City: CITY_SINGAPORE, 193 CountryCode: COUNTRY_CODE_SG, 194 } 195 RegionJakarta = cloudprovider.SGeographicInfo{ 196 Latitude: -6.175110, 197 Longitude: 106.865036, 198 City: CITY_JAKARTA, 199 CountryCode: COUNTRY_CODE_ID, 200 } 201 RegionKualaLumpur = cloudprovider.SGeographicInfo{ 202 Latitude: 3.139003, 203 Longitude: 101.686852, 204 City: CITY_KUALA_LUMPUR, 205 CountryCode: COUNTRY_CODE_MY, 206 } 207 RegionBangkok = cloudprovider.SGeographicInfo{ 208 Latitude: 13.7563309, 209 Longitude: 100.5017651, 210 City: CITY_BANGKOK, 211 CountryCode: COUNTRY_CODE_TH, 212 } 213 214 RegionSydney = cloudprovider.SGeographicInfo{ 215 Latitude: -33.8688197, 216 Longitude: 151.2092955, 217 City: CITY_SYDNEY, 218 CountryCode: COUNTRY_CODE_AU, 219 } 220 RegionMelbourne = cloudprovider.SGeographicInfo{ 221 Latitude: -37.813611, 222 Longitude: 144.963056, 223 City: CITY_MELBOURNE, 224 CountryCode: COUNTRY_CODE_AU, 225 } 226 //亚拉伦拉 澳大利亚 227 RegionYarralumla = cloudprovider.SGeographicInfo{ 228 Latitude: -35.3016, 229 Longitude: 149.078, 230 City: CITY_YARRALUMLA, 231 CountryCode: COUNTRY_CODE_AU, 232 } 233 234 // Africa 235 RegionCapeTown = cloudprovider.SGeographicInfo{ 236 Latitude: -33.9152209, 237 Longitude: 18.3758904, 238 City: CITY_CAPE_TOWN, 239 CountryCode: COUNTRY_CODE_ZA, 240 } 241 // 比勒陀利亚 242 RegionPretoria = cloudprovider.SGeographicInfo{ 243 Latitude: -25.716667, 244 Longitude: 28.283333, 245 City: CITY_PRETORIA, 246 CountryCode: COUNTRY_CODE_ZA, 247 } 248 RegionJohannesburg = cloudprovider.SGeographicInfo{ 249 Latitude: -26.1714537, 250 Longitude: 27.8999389, 251 City: CITY_JOHANNESBURG, 252 CountryCode: COUNTRY_CODE_ZA, 253 } 254 255 // Middleeast 256 RegionBahrain = cloudprovider.SGeographicInfo{ 257 Latitude: 25.9408826, 258 Longitude: 50.4474957, 259 City: CITY_BAHRAIN, 260 CountryCode: COUNTRY_CODE_BH, 261 } 262 RegionDubai = cloudprovider.SGeographicInfo{ 263 Latitude: 25.263056, 264 Longitude: 55.297222, 265 City: CITY_DUBAI, 266 CountryCode: COUNTRY_CODE_AE, 267 } 268 269 // Europe 270 RegionFinland = cloudprovider.SGeographicInfo{ 271 Latitude: 64.8255731, 272 Longitude: 21.5432837, 273 City: CITY_FINLAND, 274 CountryCode: COUNTRY_CODE_FI, 275 } 276 RegionBelgium = cloudprovider.SGeographicInfo{ 277 Latitude: 50.499734, 278 Longitude: 3.9057517, 279 City: CITY_BELGIUM, 280 CountryCode: COUNTRY_CODE_BE, 281 } 282 RegionLondon = cloudprovider.SGeographicInfo{ 283 Latitude: 51.507351, 284 Longitude: -0.127758, 285 City: CITY_LONDON, 286 CountryCode: COUNTRY_CODE_GB, 287 } 288 RegionHalton = cloudprovider.SGeographicInfo{ 289 Latitude: 53.3331, 290 Longitude: -2.6957, 291 City: CITY_HALTON, 292 CountryCode: COUNTRY_CODE_GB, 293 } 294 RegionSussex = cloudprovider.SGeographicInfo{ 295 Latitude: 51, 296 Longitude: 0, 297 City: CITY_WEST_SUSSEX, 298 CountryCode: COUNTRY_CODE_GB, 299 } 300 RegionFrankfurt = cloudprovider.SGeographicInfo{ 301 Latitude: 51.165691, 302 Longitude: 10.451526, 303 City: CITY_FRANKFURT, 304 CountryCode: COUNTRY_CODE_DE, 305 } 306 RegionHolland = cloudprovider.SGeographicInfo{ 307 Latitude: 52.2076831, 308 Longitude: 4.1585786, 309 City: CITY_HOLLAND, 310 CountryCode: COUNTRY_CODE_NL, 311 } 312 RegionZurich = cloudprovider.SGeographicInfo{ 313 Latitude: 47.3774497, 314 Longitude: 8.5016958, 315 City: CITY_ZURICH, 316 CountryCode: COUNTRY_CODE_CH, 317 } 318 RegionWarsaw = cloudprovider.SGeographicInfo{ 319 Latitude: 52.233333, 320 Longitude: 21.016667, 321 City: CITY_WARSAW, 322 CountryCode: COUNTRY_CODE_PL, 323 } 324 RegionIreland = cloudprovider.SGeographicInfo{ 325 Latitude: 53.41291, 326 Longitude: -8.24389, 327 City: CITY_IRELAND, 328 CountryCode: COUNTRY_CODE_IE, 329 } 330 RegionDublin = cloudprovider.SGeographicInfo{ 331 Latitude: 53.349722, 332 Longitude: -6.260278, 333 City: CITY_DUBLIN, 334 CountryCode: COUNTRY_CODE_IE, 335 } 336 RegionParis = cloudprovider.SGeographicInfo{ 337 Latitude: 48.856614, 338 Longitude: 2.3522219, 339 City: CITY_PARIS, 340 CountryCode: COUNTRY_CODE_FR, 341 } 342 RegionAllier = cloudprovider.SGeographicInfo{ 343 Latitude: 46.5178, 344 Longitude: 3.3592, 345 City: CITY_ALLIER, 346 CountryCode: COUNTRY_CODE_FR, 347 } 348 RegionTarn = cloudprovider.SGeographicInfo{ 349 Latitude: 43.8656, 350 Longitude: 1.505, 351 City: CITY_TARN, 352 CountryCode: COUNTRY_CODE_FR, 353 } 354 RegionStockholm = cloudprovider.SGeographicInfo{ 355 Latitude: 59.1946, 356 Longitude: 18.47, 357 City: CITY_STOCKHOLM, 358 CountryCode: COUNTRY_CODE_SE, 359 } 360 RegionDelmenhorst = cloudprovider.SGeographicInfo{ 361 Latitude: 53.050556, 362 Longitude: 8.631667, 363 City: CITY_DELMENHORST, 364 CountryCode: COUNTRY_CODE_DE, 365 } 366 RegionGeneva = cloudprovider.SGeographicInfo{ 367 Latitude: 46.201667, 368 Longitude: 6.146944, 369 City: CITY_GENEVA, 370 CountryCode: COUNTRY_CODE_CH, 371 } 372 RegionStavanger = cloudprovider.SGeographicInfo{ 373 Latitude: 58.963333, 374 Longitude: 5.718889, 375 City: CITY_STAVANGER, 376 CountryCode: COUNTRY_CODE_NO, 377 } 378 RegionOslo = cloudprovider.SGeographicInfo{ 379 Latitude: 59.905556, 380 Longitude: 10.768333, 381 City: CITY_OSLO, 382 CountryCode: COUNTRY_CODE_NO, 383 } 384 385 RegionMoscow = cloudprovider.SGeographicInfo{ 386 Latitude: 55.755825, 387 Longitude: 37.617298, 388 City: CITY_MOSCOW, 389 CountryCode: COUNTRY_CODE_RU, 390 } 391 392 // America 393 RegionMontreal = cloudprovider.SGeographicInfo{ 394 Latitude: 45.5580206, 395 Longitude: -73.8003414, 396 City: CITY_MONTREAL, 397 CountryCode: COUNTRY_CODE_CA, 398 } 399 RegionToronto = cloudprovider.SGeographicInfo{ 400 Latitude: 43.653225, 401 Longitude: -79.383186, 402 City: CITY_TORONTO, 403 CountryCode: COUNTRY_CODE_CA, 404 } 405 RegionCanadaCentral = cloudprovider.SGeographicInfo{ 406 Latitude: 56.130366, 407 Longitude: -106.346771, 408 City: CITY_CANADA_CENTRAL, 409 CountryCode: COUNTRY_CODE_CA, 410 } 411 RegionQuebec = cloudprovider.SGeographicInfo{ 412 Latitude: 52, 413 Longitude: -72, 414 City: CITY_QUEBEC, 415 CountryCode: COUNTRY_CODE_CA, 416 } 417 418 RegionSaoPaulo = cloudprovider.SGeographicInfo{ 419 Latitude: -23.5505199, 420 Longitude: -46.6333094, 421 City: CITY_SAO_PAULO, 422 CountryCode: COUNTRY_CODE_BR, 423 } 424 // 里约热内卢 425 RegionRioDeJaneiro = cloudprovider.SGeographicInfo{ 426 Latitude: -22.9083, 427 Longitude: -43.1964, 428 City: CITY_RIO_DE_JANEIRO, 429 CountryCode: COUNTRY_CODE_BR, 430 } 431 432 RegionMexico = cloudprovider.SGeographicInfo{ 433 Latitude: 55.1182908, 434 Longitude: 141.0377645, 435 City: CITY_MEXICO, 436 CountryCode: COUNTRY_CODE_MX, 437 } 438 439 RegionSantiago = cloudprovider.SGeographicInfo{ 440 Latitude: -33.45206, 441 Longitude: -70.676031, 442 City: CITY_SANTIAGO, 443 CountryCode: COUNTRY_CODE_CL, 444 } 445 446 RegionIowa = cloudprovider.SGeographicInfo{ 447 Latitude: 41.9328655, 448 Longitude: -94.5106809, 449 City: CITY_IOWA, 450 CountryCode: COUNTRY_CODE_US, 451 } 452 RegionCarolina = cloudprovider.SGeographicInfo{ 453 Latitude: 33.6194409, 454 Longitude: -82.0475635, 455 City: CITY_SOUTH_CAROLINA, 456 CountryCode: COUNTRY_CODE_US, 457 } 458 // 西雅图,华盛顿州 459 RegionWashington = cloudprovider.SGeographicInfo{ 460 Latitude: 47.6, 461 Longitude: -122.3, 462 City: CITY_WASHINGTON, 463 CountryCode: COUNTRY_CODE_US, 464 } 465 RegionVirginia = cloudprovider.SGeographicInfo{ 466 Latitude: 37.4315734, 467 Longitude: -78.6568942, 468 City: CITY_VIRGINIA, 469 CountryCode: COUNTRY_CODE_US, 470 } 471 RegionTexas = cloudprovider.SGeographicInfo{ 472 Latitude: 31, 473 Longitude: -100, 474 City: CITY_TEXAS, 475 CountryCode: COUNTRY_CODE_US, 476 } 477 RegionChicago = cloudprovider.SGeographicInfo{ 478 Latitude: 41.8819, 479 Longitude: -87.6278, 480 City: CITY_CHICAGO, 481 CountryCode: COUNTRY_CODE_US, 482 } 483 RegionPhoenix = cloudprovider.SGeographicInfo{ 484 Latitude: 33.4483, 485 Longitude: -112.0739, 486 City: CITY_PHOENIX, 487 CountryCode: COUNTRY_CODE_US, 488 } 489 RegionUtah = cloudprovider.SGeographicInfo{ 490 Latitude: 39.5, 491 Longitude: -111.5, 492 City: CITY_UTAH, 493 CountryCode: COUNTRY_CODE_US, 494 } 495 RegionSanFrancisco = cloudprovider.SGeographicInfo{ 496 Latitude: 37.7775, 497 Longitude: -122.4164, 498 City: CITY_SAN_FRANCISCO, 499 CountryCode: COUNTRY_CODE_US, 500 } 501 RegionSiliconValley = cloudprovider.SGeographicInfo{ 502 Latitude: 37.387474, 503 Longitude: -122.057541, 504 City: CITY_SILICONVALLEY, 505 CountryCode: COUNTRY_CODE_US, 506 } 507 RegionNothVirginia = cloudprovider.SGeographicInfo{ 508 Latitude: 37.4315734, 509 Longitude: -78.6568942, 510 City: CITY_N_VIRGINIA, 511 CountryCode: COUNTRY_CODE_US, 512 } 513 RegionOregon = cloudprovider.SGeographicInfo{ 514 Latitude: 43.8041334, 515 Longitude: -120.5542012, 516 City: CITY_OREGON, 517 CountryCode: COUNTRY_CODE_US, 518 } 519 RegionLosAngeles = cloudprovider.SGeographicInfo{ 520 Latitude: 34.0522342, 521 Longitude: -118.2436849, 522 City: CITY_LOS_ANGELES, 523 CountryCode: COUNTRY_CODE_US, 524 } 525 RegionSaltLakeCity = cloudprovider.SGeographicInfo{ 526 Latitude: 40.7767168, 527 Longitude: -111.9905243, 528 City: CITY_SALT_LAKE_CITY, 529 CountryCode: COUNTRY_CODE_US, 530 } 531 RegionLasVegas = cloudprovider.SGeographicInfo{ 532 Latitude: 36.1249185, 533 Longitude: -115.3150811, 534 City: CITY_LAS_VEGAS, 535 CountryCode: COUNTRY_CODE_US, 536 } 537 RegionNorthCalifornia = cloudprovider.SGeographicInfo{ 538 Latitude: 38.8375215, 539 Longitude: -120.8958242, 540 City: CITY_N_CALIFORNIA, 541 CountryCode: COUNTRY_CODE_US, 542 } 543 RegionOhio = cloudprovider.SGeographicInfo{ 544 Latitude: 40.4172871, 545 Longitude: -82.90712300000001, 546 City: CITY_OHIO, 547 CountryCode: COUNTRY_CODE_US, 548 } 549 550 RegionUSGOVWest = cloudprovider.SGeographicInfo{ 551 Latitude: 37.09024, 552 Longitude: -95.712891, 553 City: CITY_US_GOV_WEST, 554 CountryCode: COUNTRY_CODE_US, 555 } 556 RegionJioIndiaWest = cloudprovider.SGeographicInfo{ 557 Latitude: 22.4707, 558 Longitude: 70.0577, 559 City: CITY_JAMNAGAR, 560 CountryCode: COUNTRY_CODE_IN, 561 } 562 RegionJioIndiaCentral = cloudprovider.SGeographicInfo{ 563 Latitude: 21.1466, 564 Longitude: 79.0889, 565 City: CITY_NAGPUR, 566 CountryCode: COUNTRY_CODE_IN, 567 } 568 )