伦敦交通网站如何运作

发布于 2024-09-02 16:42:04 字数 518 浏览 3 评论 0原文

在此澄清一下,我无意窥视tfls数据库和其他相关信息,也没有任何恶意。

但是,当然,数以百万计的用户因其提供信息的方式而受益匪浅。 http://journeyplanner.tfl.gov.uk/

所以,如果我们想创建一些网站像 tfl、journeyplanner 一样,我们需要牢记哪些基本事项。

  • 我们应该使用哪种架构?

  • 我们可以使用 ASP.NET 创建这个网站(应该可以)吗?

  • TFL 是否将其网站与谷歌地图或任何其他 GPS 集成

编辑:

当您输入邮政编码/密码或车站时name ,它会自动创建从源到目的地的地图并计算距离。

我的问题是,他们如何计算距离,他们是否保留地图或 GPS 的帮助,或者他们创建了自己的网络服务?

Here let me clarify , I have no intentions to peep in to or any evil intention towards tfls database and other related information.

But , ofcourse Millions of users are greatly beniftted the way it serves the information.
http://journeyplanner.tfl.gov.uk/

So , If we want to create some site like tfl, journeyplanner , what are the basic things we need to keep in mind.

  • Which Architecture We should use?

  • Can We create this website using ASP.NET(Should be able to)?

  • Is TFL integrating it's website with google maps or any other GPS

Edit:

While you enter the Zip/Pin code or Station name , it creates a map automatically from source to destination and calcculates the distance also.

My Question here is , How do they calculate the distance , do they keep help of Maps or GPS or they created there own webservic?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一绘本一梦想 2024-09-09 16:42:11

回答要点,按顺序:

我们应该使用哪种架构?

您知道并了解有不止一种方法可以用来完成类似的事情。

我们可以使用 ASP.NET 创建这个网站吗(应该可以)?

可以。同样,您可以将其作为 Java Servlet 或 PHP 应用程序来完成。如果你感觉特别扭曲,你可能可以用纯 Javascript 做一些事情(但你的客户可能会讨厌你)

TFL 是否将其网站与谷歌地图或任何其他 GPS 集成

他们更有可能使用地形测量数据,他们已经从中渲染了自己的地图(当然,如果你平移,覆盖范围很快就会耗尽)。

从路由的角度来看,他们可能使用类似 Dijkstra 算法的算法,尽管它可能已经针对时间表进行了非常优化。

有许多路由算法,它们归结为“相对成本”(该成本可能是距离、时间、财务或组合)。不考虑时间表,您可以预先计算连接节点之间的成本(例如,利物浦街 -> 通过中央线的银行大约需要 5 分钟),这将为 Dijkstra 等项目提供基线,尽管您仍然需要考虑运输方式之间的互换和等待连接到达的成本等)。

在研究时间表服务引入的复杂性之前,您可能需要研究一般的路由算法(OpenStreetMap 的 wiki 上甚至有信息)。

To answer the points, in order:

Which Architecture We should use?

One you know and understand there is more than one approach that would be possible to do a similar thing with.

Can We create this website using ASP.NET(Should be able to)?

You could. Similarly, you could do it as a Java Servlet or PHP application. If you were feeling particularly warped, you could probably make something work in pure Javascript (but your clients might hate you)

Is TFL integrating it's website with google maps or any other GPS

They're more likely using Ordnance Survey data, that they've rendered their own maps from (certainly if you pan right out, coverage runs out quite quickly).

From a routing perspective, they're probably using something like Dijkstra's Algorithm, although it's probably very optimised to cope with timetabling.

There are numerous algorithms for routing, which boil down to "relative cost" (where that cost may be distance, time, financial, or a combination). Not taking into consideration timetables, you can precalculate the costs between connected nodes (e.g. Liverpool St -> Bank via Central Line is ~5 mins), this would give a baseline for something like Dijkstra although you'd still need to factor in the cost of interchaging between modes of transport and waiting for connections to arrive, etc.).

You might want to look into routing algorithms in general (there's even info over on OpenStreetMap's wiki) before looking into the complexities introduced with timetabled services.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文