I don't think so. What do I have to do to install the geocoder.db database?
Main Topics
Browse All TopicsHello,
I installed Geo-Coder-US using the ppm from activestate by typing install Geo-Coder-US. I'm running ActiveState Perl 5.8.6 build 811 on Windows XP Professional. When I try to run this simple example code, this is the error I get:
#!C:/perl/bin/perl.exe -w
# geo.pl
use strict;
use CGI qw(:standard);
print header;
use Geo::Coder::US;
Geo::Coder::US->set_db( "geocoder.db" );
my ($ora) = Geo::Coder::US->geocode(
"1005 Gravenstein Hwy N, 95472" );
--------------------------
OUTPUT
--------------------------
C:\Documents and Settings\Dan\My Documents\Geo Coder>perl geo.pl
Content-Type: text/html; charset=ISO-8859-1
Can't call method "seq" on an undefined value at C:/Perl/site/lib/Geo/Coder
m line 248.
--------------------------
Please help! What is wrong? How can I fix this problem? Let me know.
Thanks,
Dan
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
It's in the documentation, see http://search.cpan.org/~sd
Note that the description contains this suggestion: "Consider using a web service to access this geocoder over the Internet, rather than going to all the trouble of building a database yourself. See eg/soap-client.pl, eg/xmlrpc-client.pl, and eg/rest-client.pl for different examples of working clients for the rpc.geocoder.us geocoder web service."
OK, I set it up to use the geocoder database over the internet. However, I am still getting the same error. Here is my source code and the error:
--------------------------
geo.pl
--------------------------
#!C:/perl/bin/perl.exe -w
# geo.pl
use Geo::Coder::US;
use Template;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
use URI::Escape;
use warnings;
use strict;
print header;
Geo::Coder::US->set_db( "/www/geocoder.us/geocoder
my ($ora) = Geo::Coder::US->geocode(
"1005 Gravenstein Hwy N, 95472" );
--------------------------
ERROR MESSAGE
--------------------------
C:\Documents and Settings\Dan\My Documents\Geo Coder>perl geo.pl
Content-type: text/html
<h1>Software error:</h1>
<pre>Can't call method "seq" on an undefined value at C:/Perl/site/lib
/Geo/Coder/US.pm line 248.
</pre>
<p>
For help, please send mail to this site's webmaster, giving this error message
and the time and date of the error.
</p>
[Mon Nov 28 13:36:54 2005] geo.pl: Can't call method "seq" on an undefined value
at C:/Perl/site/lib/Geo/Coder
C:\Documents and Settings\Dan\My Documents\Geo Coder>
--------------------------
Let me know what I am doing wrong. Thanks.
Business Accounts
Answer for Membership
by: zbyPosted on 2005-11-21 at 12:30:43ID: 15336863
Do you have the 'geocoder.db' database?