从地址获取Google Maps地理坐标(经度) [英] Get Google Maps geo coordinates (latitude longitude) from Address

查看:139
本文介绍了从地址获取Google Maps地理坐标(经度)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在此先感谢,

我正在使用vb.net 4.0来使用Google地图,我想从地址
获取地理坐标 这样我就可以将它们传递给Web浏览器控件,该控件将调用Java脚本
具有以下功能(工作正常),我想使用街道地址显示地图,因此我需要将街道地址转换为lat和long

Thanks in advance,

I am using vb.net 4.0 to use google maps, I want to get geo coordinates from address
so i can pass them to Web browser control which will invoke Java script
which has following function (working fine) , I want to show map using street address, so i need to convert street address to lat and long

function Initialize(zoomLevel, lat, lng, type) {
   var myLatlng = new google.maps.LatLng(lat, lng);
    var myOptions = { zoom: zoomLevel, center: myLatlng, mapTypeId: MapType };
    var MarkerSize = new google.maps.Size(48, 48);
    map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
}



我看过其他一些示例,但是它们还显示了Panel和Google其他菜单,我们将不胜感激.



I had seen some other examples but they show Panel and Google other menus as well, any help will be appreciated.

推荐答案

链接 [
Google Maps api address to geocode[^]. Have you checked any of these links?
The first link[^] in this list looks quite promising.


这篇关于从地址获取Google Maps地理坐标(经度)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆