Skip to content

Commit

Permalink
added an example
Browse files Browse the repository at this point in the history
  • Loading branch information
jpowers committed Jun 5, 2012
1 parent bfceaae commit 34cd064
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions examples/lookup.js
@@ -0,0 +1,12 @@
var GooglePlaces = require('google-places');

var places = new GooglePlaces('YOUR_API_KEY');

places.search({keyword: 'Vermonster'}, function(err, response) {
console.log(response.results);

places.details({reference: response.results[0].reference}, function(err, response) {
console.log(response.result.website);
});

});

0 comments on commit 34cd064

Please sign in to comment.