Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.
- Index
- » MetaMod
- » MetaMod General Support
- » No data for Region or City using...
No data for Region or City using GeoLite City
No data for Region or City using GeoLite City
I installed the binary GeoLiteCity.dat. Within the Module,
GeoIP Check geoip/GeoLiteCity.dat found. GeoIP City/region features enabled.
I am not getting any data from region or city. I turned on Debug and below is what is returned, any ideas?
MetaMod debug info:
$option: com_content
$view: frontpage
$id:
$Itemid: 1
$timezone: default
$language: en-us
$language_code: en
$language_region: us
Country: US
Country Name: United States
Country Code 2: USA
Region:
City:
Postal Code:
Latitude: 38
Longitude: -97
DMA Code: 0
Area Code: 0
Accepting: US is in include list
I plan on testing for a particular state such as
if ($geoip->region == 'MI') return 3;
Thank you for your time.
Re: No data for Region or City using GeoLite City
Hi mowlman,
unfortunately, this data is 100% at the mercy of the GeoLiteCity database. It's not complete or 100% accurate. In some cases like this one, it's not providing the region and city information. In general, IP addresses in the USA tend to have most of this data but for some reason yours isn't.
If you want to give me a URL I can test it from my end of the world (UK just now) and tell you if it gives any info for my address.
Cheers,
Stephen
Re: No data for Region or City using GeoLite City
Thanks Stephen for your time,
Our shop is setup for only US, so checking from your end would not help.
The funny thing is , that when I downloaded the CSV version , I can see all of the US states in the Region column. Perhaps I can figure out how to use the CSV version instead of the Binary version?
Thanks again for your time and , so far, a very promising product. The checking of the Region was sort of an after thought, being able to customize our page or shows our own ads based on region.
Thanks you.
Re: No data for Region or City using GeoLite City
Hi mowlman,
can you possibly tell me the IP address you were using to connect? I'll do some more checks to see if I can get any state information for it.
Best regards,
Stephen
Re: No data for Region or City using GeoLite City
Hi Stephan,
Had to table this for a couple of days.
Some of the data that the demo from maxmind returns:
Your IP Address 70.236.199.246
Countries United States
Region MI (Michigan)
US Area Code 313
US Metro Code 505
Global Cities Redford
US Zipcode*
Latitude/Longitude 42.3999/-83.2909
I'm using the Binary version. Maybe I will need to use the CSV version?
Seems like when I performed the demo a week ago , it returned Troy for the city. Our DSL is through SBC / ATT so they probably have a block of IP's from their Troy location that we are setup to use. I really do not need city accuracy, just state.
Thank you for taking the time to look into this for me.
-Bill
Re: No data for Region or City using GeoLite City
I tried out that IP address (70.236.199.246) on the GeoLiteCIty demo:
http://www.maxmind.com/app/lookup_city
...and it comes up with no state information.
I tried it on the GeoCity database ($$):
http://www.maxmind.com/app/lookup_city
... and this time it came up with state and city information.
Obviously the two databases differ in accuracy and completeness. The IP address you had last week may have had a complete record in the Lite database, while the one above does not.
I don't think that the CSV version is going to be any different from the binary version in terms of completeness, so if you want the better data then you'll need to pay MaxMind for it, unfortunately.
Cheers,
Stephen
Re: No data for Region or City using GeoLite City
Thank you Stephen,
for looking into this for me. The idea of showing my own adds based on State (IP) was an after thought. The price for the non lite version is too much for me. I did have a thought of trying to figure the state by the Latitude & Longitude, but that would probably be too much work.
Thanks again for your time, I will continue to checkout Metamod.
-Bill
- Index
- » MetaMod
- » MetaMod General Support
- » No data for Region or City using...
Board Info
- Board Stats:
- Total Topics:
- 1689
- Total Polls:
- 6
- Total Posts:
- 5942
- Posts this week:
- 2
- User Info:
- Total Users:
- 7627
- Newest User:
- rudys68879
- Members Online:
- 1
- Guests Online:
- 213
- Online:
- rudys68879
Forum Legend:
Topic
New
Locked
Sticky
Active
New/Active
New/Locked
New Sticky
Locked/Active
Active/Sticky
Sticky/Locked
Sticky/Active/Locked