Created
February 10, 2020 04:48
-
-
Save softauthor/9c28d3134e3811dfab290556b866e28b to your computer and use it in GitHub Desktop.
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
| const URL = `https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=${ | |
| this.lat | |
| },${this.lng}&type=${this.type}&radius=${this.radius * 1000}&key=${ | |
| this.apiKey | |
| }`; | |
| axios | |
| .get(URL) | |
| .then(response => { | |
| console.log(response); | |
| }) | |
| .catch(error => { | |
| this.error = error.message; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment