Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.278.591 Times

XML::Parser::YahooRESTGeocode 0.1

  Date Added: July 13, 2010  |  Visits: 2.071

XML::Parser::YahooRESTGeocode

Report Broken Link
Printer Friendly Version


Product Homepage
Download (116 downloads)

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 node, namely, their names will need to be added to the %node_tree hash at the top of the module 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!.

Requirements: No special requirements
Platforms: Linux
Keyword: Geocode Hack Libraries Module Programming Quick Result Subclass Xml Xmlparseryahoorestgeocode Yahoo Rest Yahoorestgeocode
Users rating: 0/10

License: Freeware Size: 4.1 KB
XML::PARSER::YAHOORESTGEOCODE RELATED
Libraries  -  Class::DBI::Template::Stash 0.03
Class::DBI::Template::Stash is a Perl module with Template::Stash subclass for Class::DBI::Template. SYNOPSIS package Music::DBI; use base Class::DBI; use Class::DBI::Template; There is nothing you need to do for this module, it is setup...
10.24 KB  
Libraries  -  Module::Versions 0.02
Module::Versions is a Perl module to handle versions of loaded modules with flexible result interface. SYNOPSIS use Module::Versions; # Simple Interface list Module::Versions; # prints formatted results to STDOUT Module::Versions->list; #...
21.5 KB  
Libraries  -  XML::TiePYX 0.05
XML::TiePYX is a Perl module to read or write XML data in PYX format via tied filehandle SYNOPSIS use XML::TiePYX; tie *XML,XML::TiePYX,file.xml open IN,file.xml or die $!; tie *XML,XML::TiePYX,*IN,Condense=>0; my $text=< tag...
7.17 KB  
Libraries  -  Yahoo::Search::XML 1.7.10
Yahoo::Search::XML is a Perl module with simple routines for parsing XML from Yahoo! Search. The XML sent back from Yahoo! is fairly simple, and is guaranteed to be well formed, so we really dont need much more than to make the data easily...
35.84 KB  
Libraries  -  XML::DOM::Lite::XPath 0.15
XML::DOM::Lite::XPath is a Perl module for XPath support for XML::DOM::Lite. SYNOPSIS # XPath use XML::DOM::Lite qw(XPath); $result = XPath->evaluate(/path/to/*[@attr="value"], $contextNode); This XPath library is fairly complete - there...
31.74 KB  
Modules  -  Og Superadmin 6.x-1.1-beta1
This module is the result of the discussion in http://drupal.org/node/310592. It allows the admin to select groups that become superadmin groups. As of now, "superadmin" is a little bit too ambitious. So, what it does: Members of a superadmin...
10 KB  
Libraries  -  XML::Generator::vCard::RDF 1.4
XML::Generator::vCard::RDF is a Perl module that can generate RDF/XML SAX2 events for vCard 3.0 SYNOPSIS use XML::SAX::Writer; use XML::Generator::vCard::RDF; my $writer = XML::SAX::Writer->new(); my $driver =...
9.22 KB  
Libraries  -  XML::Namespace 0.02
XML::Namespace is a Perl module with simple support for XML Namespaces. SYNOPSIS Example 1: using XML::Namespace objects use XML::Namespace; my $xsd = XML::Namespace->new(http://www.w3.org/2001/XMLSchema#); # explicit access via the...
4.1 KB  
Libraries  -  XML::Literal 0.02
XML::Literal is a Perl module with syntax support for XML literals. SYNOPSIS # This is not a source filter: it just augments glob(). use XML::Simple; use XML::Literal &XMLin; # Simple element my $xml1 = ; # With variable...
24.58 KB  
Libraries  -  Finance::Quote::Yahoo::Australia 1.12
Finance::Quote::Yahoo::Australia is a Perl module to fetch Australian stock quotes via Yahoo. SYNOPSIS use Finance::Quote; my $q = Finance::Quote->new; my %info = $q->fetch("yahoo_australia","BHP"); # Use this module only. my %info =...
92.16 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB