View Single Post
Old 12-16-2012, 06:06 AM  
JamesM
Confirmed User
 
Industry Role:
Join Date: Nov 2012
Posts: 732
Quote:
Originally Posted by srockhard View Post
This looks real good...I will give it a try tomorrow. What about geo codes on the state and city level...all of which will be in the United States? Is it possible to get that specific?
access this link

http://j.maxmind.com/app/geoip.js

you will get something like this


Code:
function geoip_country_code() { return 'DE'; }
function geoip_country_name() { return 'Germany'; }
function geoip_city() { return 'Berlin'; }
function geoip_region() { return '16'; }
function geoip_region_name() { return 'Berlin'; }
function geoip_latitude() { return '52.5167'; }
function geoip_longitude() { return '13.4000'; }
function geoip_postal_code() { return ''; }
function geoip_area_code() { return ''; }
function geoip_metro_code() { return ''; }
you can catch every variable from above list.,

like the script i posted b4 using geoip_country_code()

you can set to any of the above.

try it.,
__________________


Ex GF Films | Grab Dollars
Up To 80% Rev-Share | 255 Day Cookie | Legal Content | Variety of Promo Tools | CCBill Program | GF Niche
james[at]grabdollars[dot]com | ICQ::611-99-zero-zero-20
JamesM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote