Created
February 27, 2016 17:33
-
-
Save A-gambit/4d1ab3ae5d54e6d18321 to your computer and use it in GitHub Desktop.
Revisions
-
A-gambit created this gist
Feb 27, 2016 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ const cities = $('tr') .toArray() .filter(x => x.innerText.includes('°')) .map(x => ['name', 'lat', 'lng'].reduce((loc, key, i) => { loc[key] = x.children[i].innerText return loc }, {})) //http://www.mapsofworld.com/lat_long/ukraine-lat-long.html