Re: HTML::GoogleMaps or Other Way to show multiple addresses on a

2005-08-04 Thread $Bill Luebkert
Suresh Govindachar wrote:

> Thanks for the suggestion and mentioning (below) your experience
> using GoogleMaps with it.  
> 
> I suspect that one can also write a perl script that acts as a
> simple HTTP server and works with GoogleMaps -- but I don't know
> where to start for coding and for seeing examples of such scripts.  
> I would like to explore this before getting into Apache.  
> Any suggestions?  

Why not just do it with Javascript ?  If you have a webserver, you can
just code it in Javascript (that's all HTML::GoogleMaps does is change
your code to Javascript).  Here's a page that will start you off near
my house (I shifted it off a bit) and let you move wherever you want :

http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>

http://www.w3.org/1999/xhtml";
  xmlns:v="urn:schemas-microsoft-com:vml">


http://maps.google.com/maps?file=api&v=1&key= 
type=text/javascript>






//






You have to get a key from Google http://www.google.com/apis/maps/signup.html
I just used 127.0.0.1 for my IP address.

The addListener part isn't working yet - just started playing with it (and
Javascript).

-- 
  ,-/-  __  _  _ $Bill LuebkertMailto:[EMAIL PROTECTED]
 (_/   /  )// //   DBE CollectiblesMailto:[EMAIL PROTECTED]
  / ) /--<  o // //  Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_http://dbecoll.tripod.com/ (My Perl/Lakers stuff)
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: HTML::GoogleMaps or Other Way to show multiple addresses on a

2005-08-04 Thread Suresh Govindachar
 $Bill Luebkert Sent on 04 Aug 2005 07:36:35 -0700:

>  Suresh Govindachar wrote:
> 
>> One answer to the question I asked earlier: 
>> 
>>   > I would like to show multiple addresses on a map -- from
>>   > a "user PC" (rather than from a "web-server").  I am
> 
> Why not a webserver on your local PC ?  You can easily install
> Apache on your PC from Apache.org.

Thanks for the suggestion and mentioning (below) your experience
using GoogleMaps with it.  

I suspect that one can also write a perl script that acts as a
simple HTTP server and works with GoogleMaps -- but I don't know
where to start for coding and for seeing examples of such scripts.  
I would like to explore this before getting into Apache.  
Any suggestions?  

>>   > hoping to have a perl script read in a list of addresses
>>   > and generate a html page.  All the input addresses would
>>   > be within about 20 miles of each other; and each address
>>   > in the list would have a html link associated with it.
>>   > Viewing the html page generated by the perl script in a
>>   > browser should show a map with markers for each address
>>   > in the list.  Clicking on the marker should open a new
>>   > browser for the html link associated with that address.
>>   > 
>>   > Can the preceding be done?  Any suggestions?
>>   
>> is WebServer::GoogleMaps.  
>> 
>> To install on Windows, just end up with the file
>> perl/site/libWebService/GoogleMaps.pm 
>> Then change line 57 in GoogleMaps.pm from 
>> $self->{gm_version} ||= ".1";
>> to 
>> $self->{gm_version} ||= ".3";
>> (Preceding modification is from a post to CPAN::Forum 
>> by Michael Burns on Sat Jun 18 20:38:18 2005.)
>> Then run the two main examples and look at the resulting 
>> images mymap.png and goodeats.png.
> 
> I would consider using HTML::GoogleMaps instead and bring up the
> Google map interactive so you can pan and zoom direct from the
> Google site.  You can get a free key for your machine (I got one
> for 127.0.0.1 and used that on my PC).
 
Thanks,

--Suresh

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: HTML::GoogleMaps or Other Way to show multiple addresses on a

2005-08-04 Thread $Bill Luebkert
Suresh Govindachar wrote:

> One answer to the question I asked earlier: 
> 
>   > I would like to show multiple addresses on a map -- from
>   > a "user PC" (rather than from a "web-server").  I am

Why not a webserver on your local PC ?  You can easily install
Apache on your PC from Apache.org.

>   > hoping to have a perl script read in a list of addresses
>   > and generate a html page.  All the input addresses would
>   > be within about 20 miles of each other; and each address
>   > in the list would have a html link associated with it.
>   > Viewing the html page generated by the perl script in a
>   > browser should show a map with markers for each address
>   > in the list.  Clicking on the marker should open a new
>   > browser for the html link associated with that address.
>   > 
>   > Can the preceding be done?  Any suggestions?
>   
> is WebServer::GoogleMaps.  
> 
> To install on Windows, just end up with the file
> perl/site/libWebService/GoogleMaps.pm 
> Then change line 57 in GoogleMaps.pm from 
> $self->{gm_version} ||= ".1";
> to 
> $self->{gm_version} ||= ".3";
> (Preceding modification is from a post to CPAN::Forum 
> by Michael Burns on Sat Jun 18 20:38:18 2005.)
> Then run the two main examples and look at the resulting 
> images mymap.png and goodeats.png.

I would consider using HTML::GoogleMaps instead and bring up the
Google map interactive so you can pan and zoom direct from the
Google site.  You can get a free key for your machine (I got one
for 127.0.0.1 and used that on my PC).

-- 
  ,-/-  __  _  _ $Bill LuebkertMailto:[EMAIL PROTECTED]
 (_/   /  )// //   DBE CollectiblesMailto:[EMAIL PROTECTED]
  / ) /--<  o // //  Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_http://dbecoll.tripod.com/ (My Perl/Lakers stuff)
___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: HTML::GoogleMaps or Other Way to show multiple addresses on a

2005-08-03 Thread Suresh Govindachar
One answer to the question I asked earlier: 

  > I would like to show multiple addresses on a map -- from
  > a "user PC" (rather than from a "web-server").  I am
  > hoping to have a perl script read in a list of addresses
  > and generate a html page.  All the input addresses would
  > be within about 20 miles of each other; and each address
  > in the list would have a html link associated with it.
  > Viewing the html page generated by the perl script in a
  > browser should show a map with markers for each address
  > in the list.  Clicking on the marker should open a new
  > browser for the html link associated with that address.
  > 
  > Can the preceding be done?  Any suggestions?
  
is WebServer::GoogleMaps.  

To install on Windows, just end up with the file
perl/site/libWebService/GoogleMaps.pm 
Then change line 57 in GoogleMaps.pm from 
$self->{gm_version} ||= ".1";
to 
$self->{gm_version} ||= ".3";
(Preceding modification is from a post to CPAN::Forum 
by Michael Burns on Sat Jun 18 20:38:18 2005.)
Then run the two main examples and look at the resulting 
images mymap.png and goodeats.png.

--Suresh 

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: HTML::GoogleMaps or Other Way to show multiple addresses on a

2005-07-30 Thread Suresh Govindachar
 Suresh Govindachar sent on 31 Jul 2005 04:17:37 +:

>  robert pointed out on 30 Jul 2005 19:25:39 -0700 that, 
>  unlike Internet Explorer, the Mozilla Firefox browser
>  can display the following link without errors
>  http://www.cs.wisc.edu/~nmueller/fsbo_open_houses.pl
> 
> However, that doesn't answer the original question
> sent on 30 Jul 2005 15:20:55 +:
> 
>> I would like to show multiple addresses on a map -- from a "user
>> PC" (rather than from a "web-server").  I am hoping to have a perl
>> script read in a list of addresses and generate a html page.  All
>> the input addresses would be within about 20 miles of each other;
>> and each address in the list would have a html link associated
>> with it.  Viewing the html page generated by the perl script in a
>> browser should show a map with markers for each address in the
>> list.  Clicking on the marker should open a new browser for the
>> html link associated with that address.
>> 
>> Can the preceding be done?  Any suggestions?
> 
> Incidentally, looking at www.cs.wisc.edu/~nmueller/fsbo_open_houses
> (note no .pl at the end) displays code which seems to print to the
> browser the way a cgi script would.  So I gather HTML::GoogleMaps is
> meant to be used in a cgi script.

Actually, the fact that that script prints to a browser as a cgi
script would can be overcome by having a corresponding .pl script
print to a file and then opening the file in a browser.  The actual
restriction to a web-server is likely to come from HTTP::GoogleMaps'
use of the "key" parameter -- the "key" is provided by Google to
people who submit the web-server they would like to use the key
from.  So I suppose Google validates the key sent in with 
each request with the location from where the request is coming
from before responding to the request.  

--Suresh

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: HTML::GoogleMaps or Other Way to show multiple addresses on a

2005-07-30 Thread Suresh Govindachar
| robert pointed out on 30 Jul 2005 19:25:39 -0700 that, 
| unlike Internet Explorer, the Mozilla Firefox browser
| can display the following link without errors
| http://www.cs.wisc.edu/~nmueller/fsbo_open_houses.pl

However, that doesn't answer the original question
sent on 30 Jul 2005 15:20:55 +:

> I would like to show multiple addresses on a map -- from a "user
> PC" (rather than from a "web-server").  I am hoping to have a perl
> script read in a list of addresses and generate a html page.  All
> the input addresses would be within about 20 miles of each other;
> and each address in the list would have a html link associated
> with it.  Viewing the html page generated by the perl script in a
> browser should show a map with markers for each address in the
> list.  Clicking on the marker should open a new browser for the
> html link associated with that address.
> 
> Can the preceding be done?  Any suggestions?

Incidentally, looking at www.cs.wisc.edu/~nmueller/fsbo_open_houses
(note no .pl at the end) displays code which seems to print to the
browser the way a cgi script would.  So I gather HTML::GoogleMaps is
meant to be used in a cgi script.

--Suresh

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: HTML::GoogleMaps or Other Way to show multiple addresses on a map

2005-07-30 Thread robert
> -Original Message-
> From: Suresh Govindachar
> 
> I could not even get started with HTML::GoogleMaps and 
> geocoder.us since the "Online Example" ... pop-up an error 
> dialog box about internet explorer not being able to open 
> the internet site.  

I got it to open up and work just great with Mozilla Firefox

copy the link into your Firefox browser, and it works just fine

http://www.cs.wisc.edu/~nmueller/fsbo_open_houses.pl

If you aren't already using Firefox, first ask yourself this 
question:  "why am I not already using Firefox?", and then
go straight away to their website and install it.   

http://www.mozilla.org/products/firefox/





___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


HTML::GoogleMaps or Other Way to show multiple addresses on a map

2005-07-30 Thread Suresh Govindachar
Hello,

I would like to show multiple addresses on a map -- from a "user PC"
(rather than from a "web-server").  I am hoping to have a perl
script read in a list of addresses and generate a html page.  All
the input addresses would be within about 20 miles of each other;
and each address in the list would have a html link associated with
it.  Viewing the html page generated by the perl script in a browser
should show a map with markers for each address in the list.
Clicking on the marker should open a new browser for the html link
associated with that address.

Can the preceding be done?  Any suggestions?

I browsed google maps API documentation
http://www.google.com/apis/maps/documentation/ but that seems to be
for web-servers.  Also, I could not even get started with
HTML::GoogleMaps and geocoder.us since the "Online Example" for
HTML::GoogleMaps
http://search.cpan.org/~nmueller/HTML-GoogleMaps-1/lib/HTML/GoogleMaps.pm#ONLINE_EXAMPLE
and the examples on geocoder.us pop-up an error dialog box about
internet explorer not being able to open the internet site.  

Thanks,

--Suresh

___
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs