News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Gary Sieling:
Scraping Google Maps Search Results with Javascript and PHP
July 29, 2013 @ 12:23:21

Gary Sieling has a new post to his site about scraping Google Maps data with a combination of PHP and some simple Javascript. It makes use of callbacks and timers to get the data already returned from their API.

Google Maps provides several useful APIs for accessing data: a geocoding API to convert addresses to latitude and longitude, a search API to provide locations matching a term, and a details API for retrieving location metadata. For many mapping tasks it is valuable to get a large list of locations (restaurants, churches, etc) - since this is valuable, Google places a rate limiter on the information, and encourages caching query results.

He includes the code (both front- and back-end) that you'll need to make the system work. It makes a request to the Google Maps API as usual but then adds a listener with a callback. This takes the latitude/longitude data and runs a "get details" method to get more information. The result is then POSTed to PHP and written out to a file.

0 comments voice your opinion now!
googlemaps google search results scraping api javascript tutorial

Link: http://garysieling.com/blog/scraping-google-maps-search-results-with-javascript-and-php

blog comments powered by Disqus

Similar Posts

Zend Developer Zone: AJAX Chat Tutorial 4

Evan Sims' Blog: Announcing libGameFly

Technovated.com: A CMS solution on Mediatemple w/ the Seagull PHP Framework, inc Google Maps

Marcelo Gornstein's Blog: Advanced telephony applications with PHP and PAGI using call flow nodes

Brian Swan's Blog: Getting Started with SQL Server Reporting Services (SSRS) and PHP


Community Events





Don't see your event here?
Let us know!


symfony opinion tool unittest configure introduction version podcast language conference voicesoftheelephpant api interview laravel composer framework community series list release

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework