Created
September 26, 2017 11:01
-
-
Save hanipcode/2b8eddba10929b14fee9cdb2f141b2e5 to your computer and use it in GitHub Desktop.
fungsi getPlaceDetails
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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