Weather-app-cities.js code
export const CITIES_SET = new Map([
[
0,
{
city: 'Moscow',
latitude: '55.75',
longitude: '37.62',
timezone: 'Europe/Moscow',
UTC: 3,
},
],
[
1,
{
city: 'Paris',
latitude: '48.86',
longitude: '2.35',
timezone: 'Europe/Paris',
UTC: 3,
},
],
[
2,
{
city: 'London',
latitude: '51.51',
longitude: '-0.13',
timezone: 'Europe/London',
UTC: 0,
},
],
[
3,
{
city: 'New York',
latitude: '40.71',
longitude: '-74.01',
timezone: 'America/New_York',
UTC: -5,
},
],
[
4,
{
city: 'Istanbul',
latitude: '41.01',
longitude: '28.98',
timezone: 'Europe/Istanbul',
UTC: 3,
},
],
[
5,
{
city: 'Shanghai',
latitude: '31.23',
longitude: '121.47',
timezone: 'Asia/Shanghai',
UTC: 8,
},
],
[
6,
{
city: 'Berlin',
latitude: '52.52',
longitude: '13.40',
timezone: 'Europe/Berlin',
UTC: 1,
},
],
[
7,
{
city: 'Berne',
latitude: '46.95',
longitude: '7.45',
timezone: 'Europe/Zurich',
UTC: 1,
},
],
[
8,
{
city: 'Amsterdam',
latitude: '52.37',
longitude: '4.90',
timezone: 'Europe/Amsterdam',
UTC: 1,
},
],
[
9,
{
city: 'Madrid',
latitude: '40.42',
longitude: '-3.70',
timezone: 'Europe/Madrid',
UTC: 1,
},
],
[
10,
{
city: 'Monaco',
latitude: '43.74',
longitude: '7.42',
timezone: 'Europe/Monaco',
UTC: 1,
},
],
[
11,
{
city: 'Prague',
latitude: '50.08',
longitude: '14.44',
timezone: 'Europe/Prague',
UTC: 1,
},
],
[
12,
{
city: 'Ottawa',
latitude: '45.42',
longitude: '-75.70',
timezone: 'America/Toronto',
UTC: -5,
},
],
[
13,
{
city: 'Mexico City',
latitude: '19.43',
longitude: '-99.13',
timezone: 'America/Mexico_City',
UTC: -6,
},
],
[
14,
{
city: 'Washington',
latitude: '47.75',
longitude: '-120.74',
timezone: 'America/New_York',
UTC: -5,
},
],
[
15,
{
city: 'New Delhi',
latitude: '28.61',
longitude: '77.21',
timezone: 'Asia/Kolkata',
UTC: 5,
},
],
[
16,
{
city: 'My location',
},
],
])
export const allCityesArray = []
for (let i = 0; i < CITIES_SET.size; i++) allCityesArray[i] = i