News for hackers. Stuff that matters.
Re:Show HN: A Multiplayer Geography Game Using WebSockets by sailfast on Friday August 19, 2016 @10:34AM (#12320262)
This is a lot of fun but I'd also recommend allowing zoom for greater precision then resetting after each question. Pretty simple JS commands for Leaflet to handle and would make a HUGE difference - not sure how folks are getting so precise on such a small map :)
Re:Show HN: A Multiplayer Geography Game Using WebSockets by Cyph0n on Friday August 19, 2016 @11:02AM (#12320501)
Someone has probably already written some JS that plays the game automatically.

The way I'd do it is 1) track the current turn, 2) look up the city's coordinates using a reverse geocoder like OSM's Nominatim[1], and 3) draw a marker at the location using Leaflet.

[1]: http://wiki.openstreetmap.org/wiki/Nominatim

Re:Show HN: A Multiplayer Geography Game Using WebSockets by benwaffle on Friday August 19, 2016 @01:46PM (#12321878)
Re:Show HN: A Multiplayer Geography Game Using WebSockets by Cyph0n on Friday August 19, 2016 @04:11PM (#12323111)
Nicely done! I'm not that good at JS to be honest :P
Re:Show HN: A Multiplayer Geography Game Using WebSockets by thesmok on Monday August 22, 2016 @06:42AM (#12335339)
If I know precisely the location of a city (like Kyiv, Istanbul in my case) I was able to pin it with 20 to 45km precision. I think it's close enough on a world scale.
Re:Show HN: A Multiplayer Geography Game Using WebSockets by abrena on Monday August 22, 2016 @03:40AM (#12334697)
It would be nice indeed but the fact that you cannot zoom limits the number of requests to the map tiles provider.