Skip to content

Instantly share code, notes, and snippets.

@softauthor
Created February 10, 2020 04:48
Show Gist options
  • Select an option

  • Save softauthor/9c28d3134e3811dfab290556b866e28b to your computer and use it in GitHub Desktop.

Select an option

Save softauthor/9c28d3134e3811dfab290556b866e28b to your computer and use it in GitHub Desktop.
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