1

I used the code base Mike created by answering my first question regarding stocks. I created the same type of rule using the "location" data source. The DEBUG output generated by this rule shows GeoIP is not returning data.

Is this source data coming from a third party? Is the access method used by the rule correct or is the problem caused by GeoIP? Any help would be appreciated..

Thanks.

DEBUG

// 2010/02/16 20:48:11 DEBUG Location.pm a381x2 whereami No GeoIP data for 63.248.8.28


RULE

select using ".*" setting ()

pre {

//Determine where i am

ctrycode = location:country_code();
ctryname = location:country_name();
state = location:region();
city = location:city();
pcode = location:postal_code();
lat = location:latitude();
long = location:longitude();
dmacode = location:dma_code();
areacode = location:area_code();



//display
msg = <<
        Country_Code: #{ctrycode}<br/>
        Country_Name: #{ctryname}<br/>
    State: #{state}<br/>
        City: #{city}<br/>
        Zip: #{pcode}<br/>
        Latitude: #{lat}<br/>
        Longitude: #{long}<br/>
        Dma_Code: #{dmacode}<br/>
        Area_Code: #{areacode}<br/>
        <style>
          .KOBJ_message { font-size: 12px; }
          .KOBJ_header { font-size: 18px !important; }
        </style>    
      >>;
    }
    notify("WhoamI", msg) with sticky = true and opacity = 1;
  }
}
flag
I love that you are asking tons of questions! I am looking into the issue with GeoIP data not being returned. I believe that we do get the location data from another service but I am going to double check a few things before I give a definite answer. ; ) Standbye... (might not answer until morning) – Mike Grace Feb 17 at 4:46

1 Answer

1

You should be working now. We updated the database and I verified that I get values for your IP: 63.248.8.28

  • US
  • USA
  • United States
  • UT
  • Lehi
  • 84043
  • 40.3245
  • -111.9618
  • 770
  • 801

I will answer your other questions in your lat/long question

link|flag

Your Answer

Get an OpenID
or

Not the answer you're looking for? Browse other questions tagged or ask your own question.