需要从谷歌地图API获取纬度和经度
本文介绍了需要从谷歌地图API获取纬度和经度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
https://developers.google.com/maps/documentation/javascript/examples/places-searchbox
我正在使用从上面的链接获得的地图.它在我的网站上运行良好.当我搜索一个地方时,该位置将显示在地图中.我需要得到它的经度和纬度,当我点击谷歌地图上的一个地方时,它应该显示在一个文本框中.
I'm using the map which I got from above link. It works fine in my website. When I search for a place ,that location will be shown in map. I need to get its longitude and latitude and should be displayed in a textbox when I click on a place on Google map.
代码如下所示
推荐答案
这篇关于需要从谷歌地图API获取纬度和经度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!