Bing Maps高级地理编码从JavaScript中的地址获取坐标 [英] Bing Maps Advanced Geocoding get Coordinates from an Address in JavaScript

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

问题描述

您好。



我尝试了解如何从JavaScript whit Bing地图中的地址获取坐标。



我有地址,当我点击一个按钮时,我需要从'JavaScript'中获取这些地址的纬度和经度。


有些人可以帮助我吗?


在我的公司,我们使用Google Maps API开发了一个应用程序,我们可以在Google中进行int,但我们需要我们知道如何在Bing地图中根据结果决定是拿Google还是Bing。



Thks!。



解决方案

不是100%清楚你是什么试图做。听起来您希望能够从文本框中获取地址,并且当按下按钮时对其进行地理编码,然后获取纬度和经度值。使用Bing Maps可以通过多种方式完成此操作。
一种方法是使用Bing Maps V7中的搜索模块,如下所述:  http: //msdn.microsoft.com/en-us/library/hh868060.aspx 另一种方法是使用Bing Maps REST服务,但是如果使用V7 AJAX控件则需要
,那么它可能更容易使用搜索管理员,但是 要彻底了解如何执行此操作的信息:
http://msdn.microsoft。 com / en-us / library / gg427601.aspx 第三种方法是直接使用Bing Maps REST服务而无需加载地图。您可以轻松修改最后一个示例来执行此操作。


如果您对Bing地图有任何疑问,请尝试使用Bing Maps论坛以获得更快的响应:
http://social.msdn.microsoft.com/Forums/en-US/home?category=bingmaps


Hi.

I try to know how to get the coordinates from an Address in JavaScript whit Bing Maps.

I have the address, and when i do click on one button, i need get the Latitude and Longitude from these address in 'JavaScript'.

Some can help me?

In my company we develop one application with Google Maps API, and we can do int in Google, but we need to know how to do in Bing Maps, based on the result, we decide if take Google or Bing.

Thks!.

解决方案

Not 100% clear on what you are trying to do. It sounds like you want to be able to take an address from a textbox and when a button is pressed geocode it and then get the latitude and longitude values. There are a several ways to do this with Bing Maps. One method is to use the Search Module in Bing Maps V7 as described here: http://msdn.microsoft.com/en-us/library/hh868060.aspx Another method is to use the Bing Maps REST services, however if using the V7 AJAX control then it's likely easier to use the search manager, but  to be thorough here is information on how to do this: http://msdn.microsoft.com/en-us/library/gg427601.aspx A third method is to use the Bing Maps REST services directly without loading a map. You can easily modify the last example to do this.

If you have any questions about Bing Maps in the future try the Bing Maps forums for a faster response: http://social.msdn.microsoft.com/Forums/en-US/home?category=bingmaps


这篇关于Bing Maps高级地理编码从JavaScript中的地址获取坐标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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