acrocat
asked on
Ruby equivalent of Geo::Coder::US for geocoding purposes
I downloaded the Tiger data from the US Census website and then imported it into a Berkeley database using the instructions on the following page:
http://www.developer.com/tech/print.php/3557171
The instructions above show how to use Perl to get the data from the database via Geo::Coder::US;. Does anyone know if there's a Ruby equivalent to Geo::Coder::US that would allow me to accomplish the same thing?
Here's the Perl code for reference:
#!/usr/bin/perl -w
Use Geo::Coder::US;
Geo::Coder::US->set_db("ge ocoder.db" );
my ($stadium) = Geo::Coder::US->geocode
("411 Woody Hayes Dr, Columbus, OH");
print "The Ohio State University stadium coordinates:
Latitude ($stadium->{lat}) Longitude($stadium->{long} )";
http://www.developer.com/tech/print.php/3557171
The instructions above show how to use Perl to get the data from the database via Geo::Coder::US;. Does anyone know if there's a Ruby equivalent to Geo::Coder::US that would allow me to accomplish the same thing?
Here's the Perl code for reference:
#!/usr/bin/perl -w
Use Geo::Coder::US;
Geo::Coder::US->set_db("ge
my ($stadium) = Geo::Coder::US->geocode
("411 Woody Hayes Dr, Columbus, OH");
print "The Ohio State University stadium coordinates:
Latitude ($stadium->{lat}) Longitude($stadium->{long}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Computer101
EE Admin