B
Bart Van der Donck
Hello,
I'm using mthe odule WebService::StreetMapLink to return a visual map
of address coordinates.
#!/usr/bin/perl
use strict;
use warnings;
use WebService::StreetMapLink;
my $map =
WebService::StreetMapLink->new
( country => 'switzerland',
address => 'rue de Paquis 25',
city => 'Geneva',
state => 'Geneve',
postal_code => '1201',
);
my $uri = $map->uri;
print "the url is ".$uri;
The perl code comes straight out of:
http://search.cpan.org/~drolsky/Web...0.09/lib/WebService/StreetMapLink/Multimap.pm
Info about the actual module:
http://search.cpan.org/~drolsky/WebService-StreetMapLink-0.09/lib/WebService/StreetMapLink.pm
Result of this script is:
the url is http://www.multimap.com/map/
places.cgi?HASH(0x82047a8)
The problem is that there seems no way to fetch the 'real' hashed
values out of $uri after the question mark.
The weird thing is that $uri is an ordinary var, but the HASH(XXX) is
always present after the question mark. I tried all tricks I can think
of (walk trhough hashes, %uri, %map, alternative declarations...). But
there seems no way to 'un-hash' it into something like:
http://www.multimap.com/map/places.cgi?street=rue
%20de%20Paquis25&city=Geneve&country=switzerland
(I suppose the actual url should be in a kind of format like this)
First part (before the question mark) looks like a common URI value.
The second part (after the question mark) looks to me like wrongly
formatted output that has something to do with a hash. Maybe $uri is a
half-hash
Thanks,
I'm using mthe odule WebService::StreetMapLink to return a visual map
of address coordinates.
#!/usr/bin/perl
use strict;
use warnings;
use WebService::StreetMapLink;
my $map =
WebService::StreetMapLink->new
( country => 'switzerland',
address => 'rue de Paquis 25',
city => 'Geneva',
state => 'Geneve',
postal_code => '1201',
);
my $uri = $map->uri;
print "the url is ".$uri;
The perl code comes straight out of:
http://search.cpan.org/~drolsky/Web...0.09/lib/WebService/StreetMapLink/Multimap.pm
Info about the actual module:
http://search.cpan.org/~drolsky/WebService-StreetMapLink-0.09/lib/WebService/StreetMapLink.pm
Result of this script is:
the url is http://www.multimap.com/map/
places.cgi?HASH(0x82047a8)
The problem is that there seems no way to fetch the 'real' hashed
values out of $uri after the question mark.
The weird thing is that $uri is an ordinary var, but the HASH(XXX) is
always present after the question mark. I tried all tricks I can think
of (walk trhough hashes, %uri, %map, alternative declarations...). But
there seems no way to 'un-hash' it into something like:
http://www.multimap.com/map/places.cgi?street=rue
%20de%20Paquis25&city=Geneve&country=switzerland
(I suppose the actual url should be in a kind of format like this)
First part (before the question mark) looks like a common URI value.
The second part (after the question mark) looks to me like wrongly
formatted output that has something to do with a hash. Maybe $uri is a
half-hash
Thanks,