Skip to content

Commit

Permalink
Update lookup example
Browse files Browse the repository at this point in the history
  • Loading branch information
eastbayjake committed Sep 5, 2014
1 parent ae2cb33 commit f1af878
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ places.search({keyword: 'Vermonster'}, function(err, response) {
if(err) { console.log(err); return; }
console.log("search: ", response.results);

places.details({reference: response.results[0].reference}, function(err, response) {
places.details({placeid: response.results[0].place_id}, function(err, response) {
if(err) { console.log(err); return; }
console.log("search details: ", response.result.website);
});
Expand All @@ -25,6 +25,6 @@ places.autocomplete({input: 'Verm', types: "(cities)"}, function(err, response)
};

for(var index in response.predictions) {
places.details({reference: response.predictions[index].reference}, success);
places.details({placeid: response.predictions[index].place_id}, success);
}
});

0 comments on commit f1af878

Please sign in to comment.