Created
February 27, 2016 17:33
-
-
Save A-gambit/4d1ab3ae5d54e6d18321 to your computer and use it in GitHub Desktop.
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 characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment