3 ms·
It would be especially slick to return (0, 0), which is a valid latitude/longitude pair but happens to be in the ocean off the west coast of Africa: It wouldn't
by cbd1984 11y ago
It would be especially slick to return (0, 0), which is a valid latitude/longitude pair but happens to be in the ocean off the west coast of Africa: It wouldn't crash naïve software, but it's obviously nowhere most people would consider going, even if they were ignorant enough to think there was an island there. (There isn't.)
- ldjb 11y agoIf you got (0,0), how would you know which country the IP address is from? I think it makes perfect sense for a country's default location to be somewhere within that country. (0,0) would only be a useful default if you knew the IP address is located somewhere on planet Earth, but not more than that. And at time of writing, the vast majority (all?) of IP addresses are located on Earth anyway, so it's not especially helpful.
- nissehulth 11y ago> If you got (0,0), how would you know which country You could read the "country" field that is returned together with the location.