Reputation: 791
I have built a Vue web application and i got the user coordinates using 'vue-browser-geolocation' plugin, with that coordinates how can I get the city name or streetname,
this.$getLocation(options)
.then(coordinates => {
console.log(coordinates);
});
From above code i have the access to lat and long
Upvotes: 0
Views: 2138
Reputation: 489
as explained in detail on google APIs documentation:
https://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&key=YOUR_API_KEY
Upvotes: 1