XML::Parser::YahooRESTGeocode 0.1
Sponsored Links
XML::Parser::YahooRESTGeocode 0.1 Ranking & Summary
File size:
0.004 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1227
Date added:
2006-06-14
Publisher:
Andrew N. Hicox
XML::Parser::YahooRESTGeocode 0.1 description
SYNOPPSIS
use LWP::Simple
use XML::Parser;
use XML::Parser::YahooRESTGeocode;
#connect to yahoo geocode service
my $url = http://api.local.yahoo.com/MapsService/V1/geocode;
my $get = appid=YahooDemo&street=701+First+Street&city=Sunnyvale&state=CA;
#call yahoo geocode service
my $xml = get $url . "?" . $get;
#construct use XML::Parser with YahooRESTGeocode subclass
my $parser = new XML::Parser(Style => YahooRESTGeocode);
my $data = $parser->parse($xml) || do {
die ("parse failed: $XML::Parser::errstr, $!n");
};
#use the data for something
my $cnt = 0;
foreach my $result (@{$data->{Result}}){
$cnt ++;
print "n---- RESULT #" . $cnt . " ----n";
foreach my $field (keys %{$result}){
print "t[" . $field . "]: " . $result->{$field} . "n";
}
}
NOTES
works for geocode only
this module only knows how to handle Yahoo!s REST responses from the geocode API
known fields
this module will need to be modified if more fields are added to the
this was a quick hack
hey, maybe theres a better module for parsing REST query responses out there? This module was written as a quick hack, not as a one stop solution. If you want to add improvements or what have you, then please feel free to hack away on this till youre blue in the face. Send me the changes though, so I can put em in the distribution.
make test dosent really test anything
well ... its a quick hack. part of writing a quick hack is not writing proper test cases and skimping on documentation, speaking of ... why am I still writing ???
thanks to Yahoo!
Hey, Yahoo! Thanks for your geocode API, its pretty sweet!
XML::Parser::YahooRESTGeocode 0.1 Screenshot
Advertisements
XML::Parser::YahooRESTGeocode 0.1 Keywords
XML
YahooRESTGeocode
YahooRESTGeocode 0.1
YAHOO REST
YAHOO
quick hack
geocode
hack
module
subclass
result
quick
XML::Parser::YahooRESTGeocode
XMLParserYahooRESTGeocode
XML::Parser::YahooRESTGeocode 0.1
Libraries
Bookmark XML::Parser::YahooRESTGeocode 0.1
XML::Parser::YahooRESTGeocode 0.1 Copyright
WareSeeker periodically updates pricing and software information of XML::Parser::YahooRESTGeocode 0.1 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of XML::Parser::YahooRESTGeocode 0.1 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
XML::Parser::EasyTree is an easier tree style for XML::Parser. Free Download
X12::Parser::Readme is a Perl module for understanding configuration (cf) files for X12::Parser. Free Download
XML::Parser::PerlSAX is a Perl SAX parser using XML::Parser. Free Download
XML::Records is a Perl module for perlish record-oriented interface to XML. Free Download
XDCC Parser Single 1.1 Revision 1 offers you powerful Parse XDCC lists. XDCC Parser Single will search through the XDCC bots listings Free Download
XML::Parser is a perl module for parsing XML documents. Free Download
XML::Bare is a minimal XML parser implemented via a C state engine. Free Download
XML::RSS::Parser is a liberal object-oriented parser for RSS feeds. Free Download
Latest Software
Popular Software
Favourite Software