我想实现像“获取路线”这样的 Google 地图;我的地图上的链接
我想在地图上实现像“获取路线”链接一样的谷歌地图。我是第一次实现这种功能,不知道如何获取这些地图以及如何显示任意两个区域之间的这些方向。
如果有人知道如何实现此功能以及我需要使用哪种路径查找算法,请帮助我。
请注意,我需要使用 C# 在 ASP.NET 中实现这一点。
非常感谢,
I would like to implement Google map like “Get directions” link on Map. I am implementing this kind of functionality first time and have no clue for how to get these maps and how to show these directions between any two areas.
If anybody knows how to implement this functionality and which kind of Path Finding algorithm I need to use, please assist me for the same.
Kindly note down, this I need to implement in ASP.NET using C#.
Many Thanks,
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看看这个 http://code.google.com/apis/maps/index.html< /a>,
编写有效的方向算法可能很难,我相信它是 NP,所以你必须尝试所有可能性。除此之外,你需要一种实际的方法来获得方向,而事实证明这是相当困难的。我会使用现有的 API,例如 google 的 API。
check this out http://code.google.com/apis/maps/index.html,
writing efficient direction algorithm is a hard probably, I believe its NP so you got try all possibilities. Beside that you need an actual way to get the direction which turns out to be decently hard. I would use an existing API like the google one.
我不确定你的意思是创建自己的算法和地图系统还是使用现有的算法和地图系统(例如 Google);如果是后者,你可能想尝试第三方.net控件;在使用 Codeplex 上的 GoogleMap Control 之前,我已成功将行车路线集成到网站中,但还有其他控件可以做同样的事情。
I'm not sure if you mean create your own algorithm and mapping system or use an existing one like Google; if it's the latter, you might want to try a third party .net control; I've successfully integrated driving directions in sites before using the GoogleMap Control on Codeplex but there are other controls out there which do the same thing.