Hacker News new | ask | show | jobs
by b44rd 3226 days ago
Cool stuff. Adding lat/lng to the dataset as well would be nice as well. Alternatively a lat/lng that can be associated to the country can be an idea. For example by using something like https://developers.google.com/public-data/docs/canonical/cou...
1 comments

Yes, I plan to include a lat/long somewhere down the road when I can get it to be more accurate.

Slightly related, what can someone do with the lat/long in that data set? (since there's only a canonical lat/long for each country)

Great! Lat/lng would of course be best implemented if kind of accurate. Ipinfo.io seems to do this quite well. I would happily use this to detect if somebody tries to spoof the info provided from window.gelocation.get/watch, whic is pretty sweet to utilize for anything that relates to maps. :)