Retrieving information from website

This is a discussion on Retrieving information from website within the PHP Language forums, part of the PHP Programming Forums category; Hi I have a very basic question regd retrieving information from website using a scripting language: Basically I am working ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-28-2006
Navodit
 
Posts: n/a
Default Retrieving information from website

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


Reply With Quote
  #2 (permalink)  
Old 07-28-2006
John Bokma
 
Posts: n/a
Default Re: Retrieving information from website

"Navodit" <kaushik2@uiuc.edu> 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?

> 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/
Reply With Quote
  #3 (permalink)  
Old 07-28-2006
Mumia W.
 
Posts: n/a
Default Re: Retrieving information from website

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.
Reply With Quote
  #4 (permalink)  
Old 07-29-2006
harryfmudd [AT] comcast [DOT] net
 
Posts: n/a
Default Re: Retrieving information from website

John Bokma wrote:
> "Navodit" <kaushik2@uiuc.edu> 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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:48 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0