GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   linux geeks: your geoip location via google maps (https://gfy.com/showthread.php?t=1045518)

fris 11-12-2011 08:13 AM

linux geeks: your geoip location via google maps
 
Code:

curl -s http://geoiplookup.wikimedia.org/|awk -F, '{print $3,$4}'|awk -F'"' '{print "http://maps.google.com/maps?q="$4 "," $8}'
:thumbsup:thumbsup

borked 11-13-2011 07:11 AM

got the country correct but was off by around 500 km

Code:

curl -s http://geoplugin.net/php.gp/|awk -F '"' '{ print "http://maps.google.com/maps?q="$32 "," $36}'
gave me a pinpoint that was ~2km off

raymor 11-13-2011 07:34 AM

Quote:

Originally Posted by borked (Post 18556424)
got the country correct but was off by around 500 km

Code:

curl -s http://geoplugin.net/php.gp/|awk -F '"' '{ print "http://maps.google.com/maps?q="$32 "," $36}'
gave me a pinpoint that was ~2km off

The main geoip IP company, MaxMind, claims 80% accuracy outside the US, meaning they are wrong two times out of ten. That tells you something about relying on geoip for your site.

borked 11-13-2011 07:35 AM

my mistake - I was connected to a VPN!

Coup 11-13-2011 07:46 AM

Was only off by about 6 or 7 miles. Nice

BAKO 11-13-2011 09:46 AM

How accurate is this thing? I'm tired of paying maxmind over 900 bucks a month.

Barry-xlovecam 11-13-2011 12:47 PM

4 1/2 miles off -- my ISP server location probably.
Maxmind should be able to locate you to a nearby ISP node. (In the US.)
Quote:

99.8% accurate on a country level, 90% accurate on a state level, 83% accurate for the US within a 25 mile radius. For more details on our city coverage, see GeoIP City Coverage and Accuracy

http://www.maxmind.com/app/city

fuzebox 11-13-2011 12:49 PM

Quote:

Originally Posted by BAKO (Post 18556597)
How accurate is this thing? I'm tired of paying maxmind over 900 bucks a month.

$900/mo? You're doing it wrong!

woj 11-13-2011 01:34 PM

Quote:

Originally Posted by BAKO (Post 18556597)
How accurate is this thing? I'm tired of paying maxmind over 900 bucks a month.

aren't updates $90/month? you have 10 subscriptions running?

fris 11-13-2011 06:00 PM

Quote:

Originally Posted by BAKO (Post 18556597)
How accurate is this thing? I'm tired of paying maxmind over 900 bucks a month.

use geoplugin instead, its more relaiable.


All times are GMT -7. The time now is 11:17 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123