Last active
May 2, 2019 14:31
-
-
Save AlanDecode/9e05e4d1ed50160d012e6a3f7959c0c5 to your computer and use it in GitHub Desktop.
Map timezone name to latitude and longitude of the city.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TimeZone => [lat, lon] | |
var mapTzGeo = { | |
'America/Denver': [39.7645187, -104.9951977], | |
'Europe/London': [51.5287352, -0.3817843], | |
'America/Chicago': [41.8339042, -88.0121562], | |
'America/Asuncion': [-25.2966809, -57.6681298], | |
'America/Montevideo': [-34.8207362, -56.3765247], | |
'Asia/Beirut': [33.8892846, 35.4692627], | |
'Pacific/Auckland': [-36.8621448, 174.5852782], | |
'America/Los_Angeles': [34.0207305, -118.6919292], | |
'America/New_York': [40.6976701, -74.2598739], | |
'America/Halifax': [43.7085882, -63.475903], | |
'America/Godthab': [64.1791647, -51.7768494], | |
'Asia/Dubai': [25.0757073, 54.9475461], | |
'Asia/Jakarta': [-6.2293867, 106.6894293], | |
'Asia/Shanghai': [31.2243084, 120.9162622], | |
'Australia/Sydney': [-33.8473567, 150.6517817], | |
'Asia/Tokyo': [35.5062896, 138.6484937], | |
'Asia/Dhaka': [23.7808875, 90.2792377], | |
'Asia/Baku': [40.3947695, 49.7148734], | |
'Australia/Brisbane': [-27.3798035, 152.4327106], | |
'Pacific/Noumea': [-22.2642742, 166.4098471], | |
'Pacific/Majuro': [7.1045756, 171.3526867], | |
'Pacific/Tongatapu': [-21.1695566, -175.3350296], | |
'Asia/Baghdad': [33.3118944, 44.2158179], | |
'Asia/Karachi': [25.1933895, 66.5949598], | |
'Africa/Johannesburg': [-26.1713505, 27.9699839], | |
'default': [39.9390731, 116.1172655] // BeiJing as default | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment