Click here to get back home

Retrieving information from website

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Retrieving information from website Navodit 07-28-2006
Posted by Navodit on July 28, 2006, 4:47 pm
Please log in for more thread options


Hi

I have a very basic question regd retrieving information from website using
a scripting language:

Basically I am working on the development of a database where a user enters
an address (street, city, state, zipcode). Based on the user input of the
address, I need to dynamically determine the latitude and longitude of that
address from the internet. One such website was :
http://stevemorse.org/jcal/latlon.php where we enter the street, city, state
and zipcode etc and the webpage returns the latitude and longitude.

I need to retrieve this information and update the database accordingly. My
question is: Should this retrieval be done using Perl or Php or thru any
other language ? What wd be the best way to incorporate this into my Java
application ? Any help/hints wd be appreciated ! Thanks



Posted by John Bokma on July 28, 2006, 5:15 pm
Please log in for more thread options



> Hi
>
> I have a very basic question regd retrieving information from website
> using a scripting language:
>
> Basically I am working on the development of a database where a user
> enters an address (street, city, state, zipcode). Based on the user
> input of the address, I need to dynamically determine the latitude and
> longitude of that address from the internet. One such website was :
> http://stevemorse.org/jcal/latlon.php where we enter the street, city,
> state and zipcode etc and the webpage returns the latitude and
> longitude.

How often is this going to happen, and does the owner of the site allow
you to do repeated automatic requests?

> I need to retrieve this information and update the database
> accordingly. My question is: Should this retrieval be done using Perl
> or Php or thru any other language ? What wd be the best way to
> incorporate this into my Java application ? Any help/hints wd be
> appreciated ! Thanks

IMO, if you are using Java, use Java. Otherwise you end up calling a
Perl/PHP program from Java, and processing the result of such a program.

--
John Bokma Freelance software developer
&
Experienced Perl programmer: http://castleamber.com/

Posted by harryfmudd [AT] comcast [DOT] on July 28, 2006, 8:11 pm
Please log in for more thread options


John Bokma wrote:
>
>
>>Hi
>>
>>I have a very basic question regd retrieving information from website
>>using a scripting language:
>>
>>Basically I am working on the development of a database where a user
>>enters an address (street, city, state, zipcode). Based on the user
>>input of the address, I need to dynamically determine the latitude and
>>longitude of that address from the internet. One such website was :
>>http://stevemorse.org/jcal/latlon.php where we enter the street, city,
>>state and zipcode etc and the webpage returns the latitude and
>>longitude.
>
>
> How often is this going to happen, and does the owner of the site allow
> you to do repeated automatic requests?
>

http://geocoder.us/ is another source. They take SOAP, and are
Perl-friendly (it's a one-liner using SOAP::Lite, once you have
instantiated the SOAP::Lite object). You need to pay them some money if
you are using it for commercail purposes. Personal use is free.

But I agree with John - if you're using Java use Java, which is
advertised as being wonderful for web apps. Of course the fine print in
the book I read said that if you were doing a "POST" you were on your own.

Tom Wyant

Posted by Mumia W. on July 28, 2006, 6:57 pm
Please log in for more thread options


On 07/28/2006 03:47 PM, Navodit wrote:
> Hi
>
> I have a very basic question regd retrieving information
> from website using a scripting language:
>
> Basically I am working on the development of a database
> where a user enters an address (street, city, state,
> zipcode). Based on the user input of the address, I need to
> dynamically determine the latitude and longitude of that
> address from the internet. One such website was :
> http://stevemorse.org/jcal/latlon.php where we enter the
> street, city, state and zipcode etc and the webpage returns
> the latitude and longitude.
>
> I need to retrieve this information and update the database
> accordingly. My question is: Should this retrieval be done
> using Perl or Php or thru any other language ? What wd be
> the best way to incorporate this into my Java application ?
> Any help/hints wd be appreciated ! Thanks
>
>

Either PHP or Perl will do. With Perl you'll find the LWP::*
and WWW::Mechanize modules useful.

Similar ThreadsPosted
Information transfer over the internet March 31, 2005, 10:46 am
Parsing AVI header information June 8, 2008, 11:08 pm
Adding XSLT information to XML generated by DBIx::XML_RDB July 20, 2008, 10:00 am
retrieving a constant from a dynamically loaded module October 26, 2005, 3:29 am
Net::Telnet retrieving temporary text problem November 6, 2006, 3:32 am
website hosting January 3, 2005, 2:21 pm
Unable to connect a website using LWP February 23, 2006, 4:31 am
Great website - Too bad no one sees it 71BC July 30, 2006, 12:26 pm
Retrieving XML attribute using XML::XPath::Node::Attribute June 28, 2005, 5:02 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap