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
GOROKA, PAPUA NEW GUINEA:-6.08167:145.392 | |
MADANG, PAPUA NEW GUINEA:-5.20694:145.789 | |
MOUNT HAGEN, PAPUA NEW GUINEA:-5.82611:144.296 | |
NADZAB, PAPUA NEW GUINEA:-6.56972:146.726 | |
PORT MORESBY, PAPUA NEW GUINEA:-9.44333:147.22 | |
WEWAK, PAPUA NEW GUINEA:-3.58361:143.669 | |
NARSSARSSUAQ, GREENLAND:61.1611:-45.4275 | |
NERLERIT INAAT, GREENLAND:70.7394:-22.6458 | |
GODTHAAB, GREENLAND:64.1908:-51.6781 | |
JAKOBSHAVN, GREENLAND:69.2333:-51.0667 |
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
const child_process = require('child_process'); | |
const https = require('https'); | |
const fs = require('fs'); | |
function get(url) { | |
console.log('Get ' + url); | |
return new Promise((resolve, reject) => { | |
const req = https.request(url, { | |
headers: { | |
'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:10.0) Gecko/20100101 Firefox/10.0' |