[英]How to get City name or Street address from lat and long for vue web applications?
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,我已经构建了一个 Vue web 应用程序,我使用“vue-browser-geolocation”插件获取了用户坐标,使用该坐标如何获取城市名称或街道名称,
this.$getLocation(options)
.then(coordinates => {
console.log(coordinates);
});
From above code i have the access to lat and long从上面的代码我可以访问 lat 和 long
as explained in detail on google APIs documentation: 正如 google APIs 文档中详细解释的那样:
https://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&key=YOUR_API_KEY
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.