Skip to content

Instantly share code, notes, and snippets.

@hanipcode
Created September 26, 2017 11:01
Show Gist options
  • Select an option

  • Save hanipcode/2b8eddba10929b14fee9cdb2f141b2e5 to your computer and use it in GitHub Desktop.

Select an option

Save hanipcode/2b8eddba10929b14fee9cdb2f141b2e5 to your computer and use it in GitHub Desktop.
fungsi getPlaceDetails
function getPlaceDetails(placeId, key) {
const url = `https://maps.googleapis.com/maps/api/place/details/json?placeid=${placeId}&key=${key}`;
return request(url);
}
getPlaceDetails('ChIJIe0SGpQNuC0RxXX30MzCZ2k', 'Your_api_key').then(result => {
console.log(result);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment