Hacking Google Maps and Google Earth (ExtremeTech)
Chapter 4 — The Google Web API 55 You cannot use the Google Web API to build a site for commercial purposes without prior agree ...
56 Part I — Basics Table 4-1(continued) Parameter Description Filter Activates filtering to remove similar results or results fr ...
Chapter 4 — The Google Web API 57 Table 4-2: Base Data from a Search Request Element Description documentFiltering A boolean val ...
58 Part I — Basics Table 4-3: Data Return for Each Item Element Description Summary If the search result has a listing in the Go ...
Chapter 4 — The Google Web API 59 Table 4-4: Search Limitations Item Limit Maximum query string length 2,048 bytes Maximum numbe ...
60 Part I — Basics Each individual query counts as 1 toward your 1,000-per-day limit. The limit is by query, not by unique query ...
Chapter 4 — The Google Web API 61 Listing 4-1:Simple Perl Example !/usr/bin/perl use SOAP::Lite; my $key=’*****’; my $googleSear ...
62 Part I — Basics The resulting output for the Perl example is actually HTML. Listing 4-2 outlines the main components of the r ...
Chapter 4 — The Google Web API 63 Printing out the information is, therefore, quite straightforward: You just dump out the infor ...
64 Part I — Basics Wrapping Up In this chapter you have seen how to extract data from the Google search database that could be u ...
Storing and Sharing Information G oogle Maps–based applications are rarely completely standalone. Sure, you can use them to mere ...
66 Part I — Basics Before the XML is generated, you need to store and retrieve information from your own databases for use with ...
Chapter 5: Storing and Sharing Information Using an RDBMS The problem with both XML and text files is that you are limited to ed ...
68 Part I — Basics Reading Delimited Files Getting information out of a delimited file is generally straightforward, although th ...
Chapter 5 — Storing and Sharing Information 69 chomp; $csv->parse($_); my ($id,$ref,$fname,$lname,$country) = $csv->fields ...
70 Part I — Basics Listing 5-4(continued) print “ID: $id\nRef: $ref\nFirst: $fname\nLast: $lname\nCountry: $country\n”; } close( ...
Chapter 5 — Storing and Sharing Information 71 Listing 5-6:Reading Fixed-Width Files in Perl with Regular Expressions open(DATA, ...
72 Part I — Basics Listing 5-7(continued) } close(DATA); sub despace { my ($text) = @_; $text =~ s/ *$//g; return $text; } Writi ...
Chapter 5 — Storing and Sharing Information 73 Generating and Parsing XML Programmers familiar with HTML will understand the bas ...
74 Part I — Basics Generating XML You can generate XML very easily just by embedding data into suitable tags when you write out ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf