Incorrect City Return

  • Ads

Incorrect City Return

Postby msnyc » Sat Jun 12, 2010 5:24 pm

Hi, I just downloaded the City Complete and ran my ip

68.174.151.53

which returns NY NY correctly in your API (and others)

It does not however exist in the db and when I use the query you provided it doesn't even give NY as an optionm until I ramp the Limit up to 100.

Is there a newer version of the DB i.e. one that reflects the one used by the api?

Thanks!
msnyc
 
Posts: 4
Joined: Sat Jun 12, 2010 5:19 pm

Re: Incorrect City Return

Postby marchost » Mon Jun 14, 2010 5:23 am

Hi, how many rows do you have in the DB you imported locally? I've seen some people having problem when the database was imported partially (eg with phpmyadmin).

The API is using the same DB as the one offered for download

Thanks
Marc
marchost
Site Admin
 
Posts: 374
Joined: Wed Apr 08, 2009 9:55 pm

Re: Incorrect City Return

Postby msnyc » Mon Jun 14, 2010 1:58 pm

I have 3,947,743 records (loaded through an import program called Navicat which has worked pretty error free.
msnyc
 
Posts: 4
Joined: Sat Jun 12, 2010 5:19 pm

Re: Incorrect City Return

Postby marchost » Mon Jun 14, 2010 8:06 pm

Hi, I'm getting new-york with the following query :

SELECT *
FROM `ip_group_city`
WHERE `ip_start` <= INET_ATON( '68.174.151.53' )
ORDER BY ip_start DESC
LIMIT 1
marchost
Site Admin
 
Posts: 374
Joined: Wed Apr 08, 2009 9:55 pm

Re: Incorrect City Return

Postby msnyc » Mon Jun 14, 2010 8:50 pm

I copied and pasted that code and got;

999999344 | AU | New South Wales | Sydney
msnyc
 
Posts: 4
Joined: Sat Jun 12, 2010 5:19 pm

Re: Incorrect City Return

Postby msnyc » Wed Jun 16, 2010 12:21 am

Also checked the db and that ip is not in it anywhere...
msnyc
 
Posts: 4
Joined: Sat Jun 12, 2010 5:19 pm

Re: Incorrect City Return

Postby TheKiller » Thu Jun 17, 2010 4:34 am

i just Queryd that IP and it gives

Country Code : US
Country : United States
Region Code : 36
Region Name : New York
City : New York
Zip Code : N/A
Latitude : 40.7619
Longitude : -73.9763
Metro Code : 501

see for yourself
http://wheresmyip.net/TEST/index.php?ip=68.174.151.53

How did you imported the sql file into your database?

Do as Marc said and re check your database ;)
TheKiller
 
Posts: 25
Joined: Fri Jun 11, 2010 9:18 am
Location: Romania


Return to IP geolocation database related



Who is online

Users browsing this forum: MSN [Bot] and 2 guests

cron