Skip to content

Commit

Permalink
added the detail call for google places
Browse files Browse the repository at this point in the history
  • Loading branch information
Sugendran Ganess committed Sep 15, 2011
1 parent 7b08723 commit 998a570
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/googlemaps.js
Expand Up @@ -16,6 +16,18 @@ exports.places = function(latlng, radius, key, callback, sensor, types, lang, na
makeRequest(path, true, returnObjectFromJSON(callback));
}

exports.placeDetails = function(referenceId, key, callback, sensor, lang) {
var args = {
reference: referenceId,
key: key
}
if (lang) args.lang = lang;
args.sensor = sensor || 'false';

var path = '/maps/api/place/details/json?' + qs.stringify(args);
makeRequest(path, true, returnObjectFromJSON(callback));
}

// http://code.google.com/apis/maps/documentation/geocoding/
exports.geocode = function(address , callback , sensor , bounds , region , language){
var args = {
Expand Down

0 comments on commit 998a570

Please sign in to comment.