Skip to content

Instantly share code, notes, and snippets.

@A-gambit
Created February 27, 2016 17:33
Show Gist options
  • Save A-gambit/4d1ab3ae5d54e6d18321 to your computer and use it in GitHub Desktop.
Save A-gambit/4d1ab3ae5d54e6d18321 to your computer and use it in GitHub Desktop.

Revisions

  1. A-gambit created this gist Feb 27, 2016.
    9 changes: 9 additions & 0 deletions cities.js
    Original 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