谷歌路线API Web服务 - 在地图上显示的响应。可能吗? [英] Google directions api web service - show the response on map. Is it possible?

查看:193
本文介绍了谷歌路线API Web服务 - 在地图上显示的响应。可能吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有使用来自谷歌的方向Web服务从C#code这样的响应呼吁,例如方式:

Is there a way to use the response from the Google directions web service called, for example from C# code like this:

var url = System.String.Format(@"http://maps.googleapis.com/maps/api/directions/xml?origin={0}&destination={1}&sensor=false", 
  addressFrom, addressTo);
var result = XElement.Load(url);

这显示在地图上之后的结果;或者它必须与使用JavaScript的谷歌地图API的JavaScript描述的这里

推荐答案

而不是写这一切的XML code只使用这个开源项目 - code.google.com / p /谷歌地图/

Instead of writing all this xml code just use this open source project -code.google.com/p/google-maps/

这篇关于谷歌路线API Web服务 - 在地图上显示的响应。可能吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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