CN101242583A - Bus transfer query system, mobile communication terminal and bus transfer query method - Google Patents

Bus transfer query system, mobile communication terminal and bus transfer query method Download PDF

Info

Publication number
CN101242583A
CN101242583A CNA2008100144356A CN200810014435A CN101242583A CN 101242583 A CN101242583 A CN 101242583A CN A2008100144356 A CNA2008100144356 A CN A2008100144356A CN 200810014435 A CN200810014435 A CN 200810014435A CN 101242583 A CN101242583 A CN 101242583A
Authority
CN
China
Prior art keywords
mobile communication
communication terminal
data
public transport
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2008100144356A
Other languages
Chinese (zh)
Inventor
张立震
张海霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CNA2008100144356A priority Critical patent/CN101242583A/en
Publication of CN101242583A publication Critical patent/CN101242583A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The present invention provides an inquiry system of bus hub, which calculating inquiry part distributed on the mobile communication terminal. The invention obtains user needed transfer route according to calculation of bus information downloaded from the server terminal by the mobile communication terminal, avoiding the limitation of network, greatly real-time, convenient meet the needs of user. One the other hand, the transfer calculating method of the invention greatly reduces calculating complexity and saves system resource of mobile communication terminal, shortens the calculating time because of setting the limitation of maximizing transfer times.

Description

公交换乘查询系统、移动通信终端及公交换乘查询方法 Bus transfer query system, mobile communication terminal and bus transfer query method

技术领域 technical field

本发明涉及交通控制领域,尤其涉及一种公交换乘查询系统。The invention relates to the field of traffic control, in particular to a bus transfer inquiry system.

背景技术 Background technique

公交系统目前是城市交通的主体,尤其是由于能源、污染等方面的原因,政府大力倡导市民乘坐公交工具出行。对一个城市的公交系统的熟悉程度是对城市的熟悉程度的重要标志。The public transportation system is currently the main body of urban transportation, especially due to energy, pollution and other reasons, the government strongly encourages citizens to travel by public transportation. Familiarity with a city's public transport system is an important indicator of familiarity with the city.

目前基于PC机的公交换乘查询系统已经比较成熟,但是其受到设备、地点及网络等因素的限制,使用者不可能随时随地方便的进行查询。基于移动设备的公交换乘查询系统虽然也有少量应用,但是都是依赖于网络,其查询计算部分都是在服务器侧实现的,查询的过程也是访问网络的过程,因而速度和可用性受到网络限制,操作起来也不方便。At present, the PC-based bus transfer query system is relatively mature, but it is limited by factors such as equipment, location and network, and users cannot conveniently query anytime and anywhere. Although there are a few applications in the bus transfer query system based on mobile devices, they are all dependent on the network, and the query calculation part is implemented on the server side. The query process is also a process of accessing the network, so the speed and availability are limited by the network. It is also inconvenient to operate.

发明内容 Contents of the invention

本发明所要解决的技术问题在于提供一种查询方便的公交换乘查询系统。The technical problem to be solved by the present invention is to provide a public bus transfer query system with convenient query.

为了解决上述技术问题,本发明提出一种公交换乘查询系统,包括:In order to solve the above-mentioned technical problem, the present invention proposes a kind of bus transfer query system, comprising:

公交系统数据库,用于存储公交系统数据;The bus system database is used to store bus system data;

数据传送服务器,用于响应移动通信终端的下载请求,将公交系统数据库中符合条件的数据发送至移动通信终端;The data transmission server is used to respond to the download request of the mobile communication terminal, and send the qualified data in the public transportation system database to the mobile communication terminal;

移动通信终端,用于接收用户的查询请求并根据本地公交数据计算得到查询结果;若本地数据库不包含该查询请求需要的公交数据,则向数据传送服务器发出下载请求;以及,接收数据传送服务器发送的公交数据;The mobile communication terminal is used to receive the user's query request and calculate the query result according to the local public transport data; if the local database does not contain the public transport data required by the query request, then send a download request to the data transmission server; and receive the data transmission server to send bus data;

所述移动通信终端与所述数据传送服务器之间通过移动运营网络通信。The mobile communication terminal communicates with the data transmission server through a mobile operation network.

其中,还包括:Among them, also include:

信息管理服务器,用于存储至少包括移动通信终端唯一性标识的用户信息;The information management server is used to store user information including at least the unique identifier of the mobile communication terminal;

并且,所述数据传送服务器查询信息管理服务器中的用户信息对所接收到的下载请求进行鉴权。In addition, the data transfer server queries the user information in the information management server to authenticate the received download request.

其中,所述移动通信终端的下载请求首先通过wap客户端发送至移动运营商的wap服务器,并由该wap服务器将该请求转发至所述数据传送服务器;所述数据传送服务器将发送至移动通信终端的公交数据通过移动运营商的wap服务器转发。Wherein, the download request of the mobile communication terminal is first sent to the wap server of the mobile operator through the wap client, and the wap server forwards the request to the data transfer server; the data transfer server will send the request to the mobile communication The bus data of the terminal is forwarded through the wap server of the mobile operator.

进一步,所述信息管理服务器还对应存储各个用户已下载公交数据的列表;Further, the information management server also correspondingly stores a list of bus data downloaded by each user;

当所述公交系统数据库中有数据变更时,所述数据传送服务器根据所述列表通过短信息服务中心自动向对应该变更的用户发送更新信息。When there is a data change in the public transport system database, the data transmission server automatically sends update information to the user corresponding to the change through the short message service center according to the list.

本发明另一方面还提出一种移动通信终端包括:Another aspect of the present invention also proposes a mobile communication terminal comprising:

本地公交数据库,用于存储下载至本地的公交数据;The local bus database is used to store the bus data downloaded to the local;

接收模块,用户接收用户输入的查询请求;A receiving module, the user receives the query request input by the user;

计算模块,用于根据用户输入的查询请求以及本地公交数据库中存储的公交数据计算查询结果;若本地公交数据库中没有该查询所需要的公交数据,则生成下载请求;A calculation module, configured to calculate query results according to the query request input by the user and the public transport data stored in the local public transport database; if the local public transport database does not have the required public transport data for the query, a download request is generated;

无线收发模块,用于将所述计算模块生成的下载请求发送至所述数据传送服务器;以及,接收来自所述数据传送服务器公交数据;A wireless transceiver module, configured to send the download request generated by the calculation module to the data transfer server; and receive bus data from the data transfer server;

提取模块,用于提取无线收发模块接收的公交数据并将该公交数据存储于所述本地公交数据库中;An extracting module, configured to extract the bus data received by the wireless transceiver module and store the bus data in the local bus database;

输出模块,用于将所述计算模块计算得到查询结果输出显示供用户查看。An output module, configured to output and display the query results calculated by the calculation module for users to view.

其中,所述无线收发模块包括:Wherein, the wireless transceiver module includes:

wap单元,作为wap客户端用于与wap服务器通信,通过wap服务器转发下载请求至所述数据传送服务器;The wap unit is used as a wap client to communicate with the wap server, and forwards the download request to the data transfer server through the wap server;

短信息收发单元,用于与短信息服务中心通信以通过所述短信息服务中心获得所述请求下载的公交数据。The short message transceiving unit is used for communicating with the short message service center to obtain the bus data requested to be downloaded through the short message service center.

另外,所述本地公交数据库中所存储的公交数据包括下述信息:线路名称、计费方式及全部站点序列。In addition, the bus data stored in the local bus database includes the following information: line name, charging method and all station sequences.

其中,所述下载请求包括用户查询请求所在地信息;或者,所述用户查询请求所在地信息也可以通过判断无线信号来源地获得;Wherein, the download request includes the location information of the user query request; or, the location information of the user query request can also be obtained by judging the source of the wireless signal;

所述查询请求包括起始站、终点站和所在地。The query request includes a starting station, an ending station and a location.

其中,所述计算模块还用于根据本地公交数据库中所对应存储的线路计费信息计算所述查询结果得到的路线的费用支出,并由所述输出模块输出显示供用户查看。Wherein, the calculation module is further configured to calculate the cost of the route obtained from the query result according to the line charging information correspondingly stored in the local public transport database, and output and display it for the user to view by the output module.

本发明另一方面又提出一种移动通信终端的公交换乘查询方法,包括以下步骤:On the other hand, the present invention proposes a kind of bus transfer query method of a mobile communication terminal, comprising the following steps:

a、获得起始站、终点站及最大换乘次数;a. Obtain the start station, end station and maximum number of transfers;

b、在最大换乘次数的限制下,从本地公交数据中遍历得到从起点站到终点站的所有路线。b. Under the limitation of the maximum number of transfers, traverse from the local public transport data to obtain all the routes from the starting station to the terminal station.

其中,步骤b包括以下步骤:Wherein, step b includes the following steps:

b0、将所述起始站设为当前站点;b0, setting the starting station as the current station;

b1、判断当前站点是否是终点站,若是,则记录整个路线并将起始站设为当前站点,然后执行步骤b5;否则,执行步骤b2;b1. Determine whether the current station is the terminal station, if so, record the entire route and set the starting station as the current station, and then perform step b5; otherwise, perform step b2;

b2、判断是否达到最大换乘次数,若是,则查找并记录当前站点与终点站之间的所有直达线路,并起始站设为当前站点,然后执行步骤b5;否则,执行步骤b3;b2. Determine whether the maximum number of transfers has been reached, if so, search and record all direct lines between the current station and the terminal station, and set the starting station as the current station, and then perform step b5; otherwise, perform step b3;

b3、从当前站点的公交数据中取一条公交线路并获得该线路的下一站点,若无法获得下一站点,则将起始站作为当前站点并执行步骤b1;并且,若所述当前站点与所述下一站点之间存在换乘关系,则累加换乘次数;b3. Take a bus line from the bus data of the current site and obtain the next site of the line, if the next site cannot be obtained, then use the starting station as the current site and perform step b1; and, if the current site and If there is a transfer relationship between the next stations, the number of transfers is accumulated;

b4、将步骤b3中获得的下一站点作为当前站点并执行步骤b1;b4, using the next site obtained in step b3 as the current site and performing step b1;

b5、判断是否遍历完毕,若是则结束并将结果返回至用户查看;否则,执行步骤b1。b5. Determine whether the traversal is complete, if so, end and return the result to the user for viewing; otherwise, execute step b1.

并且,步骤b3中,获得的下一站点后首先判断该站点及其所在线路是否是已经经过的,若不是,则执行后续过程;若是,重新执行步骤b3。And, in step b3, after obtaining the next station, it is first judged whether the station and the line where it is located have passed, if not, then execute the follow-up process; if so, re-execute step b3.

本发明由移动通信终端根据从服务器端下载得到的公交信息进行计算,得到用户所需要的换乘路线,避免了网络的限制,更加实时、方便的满足了用户的需求。另一方面,本发明的换乘计算方法由于设置了最大换乘次数的限制,因而大大的降低了计算的复杂度,从而节省了移动通信终端的系统资源、缩短了计算时间。In the invention, the mobile communication terminal calculates the bus information downloaded from the server to obtain the transfer route required by the user, avoids the limitation of the network, and satisfies the user's demand in real time and conveniently. On the other hand, the transfer calculation method of the present invention greatly reduces the complexity of calculation due to the limitation of the maximum number of transfers, thereby saving system resources of the mobile communication terminal and shortening the calculation time.

附图说明 Description of drawings

图1是本发明一种公交换乘查询系统的一个实施例的结构框图;Fig. 1 is the structural block diagram of an embodiment of a kind of public bus interchange inquiry system of the present invention;

图2是图1中移动通信终端的一个实施例的结构框图;Fig. 2 is a structural block diagram of an embodiment of the mobile communication terminal in Fig. 1;

图3是图1中移动通信终端的换乘查询方法的一个实施例的流程图。Fig. 3 is a flow chart of an embodiment of the transfer inquiry method of the mobile communication terminal in Fig. 1 .

具体实施方式 Detailed ways

下面结合附图对本发明进行详细阐述。The present invention will be described in detail below in conjunction with the accompanying drawings.

参考图1,图示了本发明一种公交换乘查询系统的一个实施例的结构框图。如图所示,包括数据传送服务器1、信息管理服务器2、公交系统数据库3、移动通信终端4、短信息服务中心5、Wap服务器6。其中,数据传送服务器1与信息管理服务器2和公交系统数据库3之间采用有线或无线连接;所述数据传送服务器1与短信息服务器5和Wap服务器6之间也采用有线或无线连接。所述移动通信终端4与短信息服务中心5和Wap服务器6之间通过移动运营商提供的无线链路连接。所述有线连接可以采用以太网连接,或串/并行传输等,所述无线连接也可以采用移动运营商的蜂窝网络连接,或者也可以是无线局域网连接等等。Referring to FIG. 1 , it illustrates a structural block diagram of an embodiment of a bus transfer inquiry system of the present invention. As shown in the figure, it includes a data transfer server 1, an information management server 2, a bus system database 3, a mobile communication terminal 4, a short message service center 5, and a Wap server 6. Wherein, the data transfer server 1 is connected with the information management server 2 and the bus system database 3 by wired or wireless connection; the data transfer server 1 is also connected with the short message server 5 and the Wap server 6 by wired or wireless connection. The mobile communication terminal 4 is connected with the short message service center 5 and the Wap server 6 through the wireless link provided by the mobile operator. The wired connection may be an Ethernet connection, or serial/parallel transmission, etc., and the wireless connection may also be a cellular network connection of a mobile operator, or a wireless local area network connection and the like.

所述信息管理服务器2,用于存储用户信息,例如用户(移动通信终端)唯一性识别码、对应该用户的已下载公交数据列表以及用户类型等信息;其中,所述用户唯一性识别码可以是手机号码,或者是产品序列号、入网号等等;所述已下载公交数据列表为该用户已经下载存储于移动通信终端的公交数据的列表,其具体可以是已下载公交数据的城市列表或者已下载公交数据的区域列表;The information management server 2 is used to store user information, such as user (mobile communication terminal) unique identification code, information such as the downloaded bus data list and user type corresponding to the user; wherein, the user unique identification code can be It is a mobile phone number, or a product serial number, a network access number, etc.; the list of downloaded public transport data is a list of public transport data that the user has downloaded and stored in a mobile communication terminal, and it can specifically be a list of cities that have downloaded public transport data or A list of areas for which transit data has been downloaded;

所述公交系统数据库3,用于存储各个城市的公交数据。优选的,包括线路名称信息、计费模式信息和全部站点的序列信息等;例如,对于某一城市或区域来说,其所存储的公交数据形式为:The public transport system database 3 is used to store public transport data of various cities. Preferably, it includes line name information, billing mode information, sequence information of all stations, etc.; for example, for a certain city or area, the stored bus data form is:

线路标号;line label;

计费模式;(例如分段计价、单一票制)Billing mode; (such as segment pricing, single ticket system)

全部站点的序列;(包括所经过的所有站点的ID)The sequence of all stations; (including the IDs of all stations passed through)

所述移动通信终端4,用于接收用户输入的查询信息并根据该查询信息以及本地所存储的公交数据计算得到查询结果;并且,当用户输入的查询信息对应需要的公交数据在本地无法得到时,此时移动通信终端4还用于向所述数据传送服务器1发出下载请求并下载得到需要的公交数据;所述查询信息包括所在城市、起始站、终点站和最大允许的换乘次数等;The mobile communication terminal 4 is used to receive the query information input by the user and calculate the query result according to the query information and the locally stored public transport data; and when the query information input by the user corresponds to the required public transport data cannot be obtained locally , at this time, the mobile communication terminal 4 is also used to send a download request to the data transfer server 1 and download the required bus data; the query information includes the city, the starting station, the terminal station and the maximum allowable number of transfers, etc. ;

其中,移动通信终端4通过其内部的Wap客户端向Wap服务器6发出下载请求,该Wap服务器6将该下载请求转发至数据传送服务器1;数据传送服务器1根据所述下载请求得到公交数据后通过Wap服务器6将公交数据发送至所述移动通信终端4;所述下载请求中,优选的包括移动通信终端的唯一性识识别码以及需要下载的城市或区域代码信息;Wherein, mobile communication terminal 4 sends download request to Wap server 6 by its internal Wap client, and this Wap server 6 forwards this download request to data transfer server 1; Wap server 6 sends public transportation data to described mobile communication terminal 4; In the described download request, preferably comprise the unique identification code of mobile communication terminal and the city or area code information that needs to download;

所述数据传送服务器1,用于接收由Wap服务器6转发来的下载请求,并根据该下载请求从公交系统数据库3中查询得到对应的公交数据,并将该公交数据再通过Wap服务器6发送至移动通信终端4;Described data transmission server 1 is used for receiving the download request forwarded by Wap server 6, and obtains corresponding public transport data from public transport system database 3 according to this download request, and this public transport data is sent to by Wap server 6 again Mobile communication terminal 4;

在上述实施例中,所述下载请求的发送以及公交数据接收均通过wap协议传输实现,即通过wap客户端和wap服务器实现;当然,也可以全部通过短信息服务中心实现,即下载请求的发送以及公交数据接收均以短信息的形式进行。或者,也可以下载请求的发送通过短信息进行,而公交数据的接收通过wap协议进行传输。无论对于短信息的方式或是wap传输的方式,其所遵循的公交数据传输格式可以采用:线路名称+计费方式+全部站点序列的格式。In the above-described embodiment, the sending of the download request and the reception of the bus data are all realized through wap protocol transmission, that is, through the wap client and the wap server; certainly, they can all be realized through the short message service center, that is, the sending of the download request And bus data reception is carried out in the form of short messages. Alternatively, the download request can also be sent through a short message, while the bus data can be received through a wap protocol. Regardless of the way of short message or wap transmission, the bus data transmission format followed can adopt the format of line name + billing method + all station sequences.

并且,所述数据传送服务器1在接收到下载请求时,首先根据该请求中的移动通信终端的唯一性识识别码从信息管理服务器2中查找,以确定是否是合法用户,若所述信息管理服务器中存储有该唯一性识别码,则认为合法并进行后续操作;否则,认为不合法,则不进行任何操作或返回错误信息等;另外,当公交系统数据库3有更新时,所述数据传送服务器1便在信息管理服务器2中查找曾经下载过所述更新对应的公交数据的移动通信终端,并将更新通知通过短信息服务中心5发送到所述各个移动通信终端,此时移动通信终端通过其内部的wap客户端下载所述更新,优选的,对更新公交数据的发送采用增量传输,即指发送有改变的部分以提高效率;And, when described data transmission server 1 receives downloading request, at first according to the mobile communication terminal's unique identification code in this request, search from information management server 2, to determine whether it is a legitimate user, if the information management If the uniqueness identification code is stored in the server, it is considered legal and subsequent operations are performed; otherwise, it is considered illegal, and no operation is performed or an error message is returned; in addition, when the public transport system database 3 is updated, the data transmission Server 1 just searches in information management server 2 the mobile communication terminal that once downloaded the public transportation data corresponding to described update, and update notification is sent to described each mobile communication terminal by short message service center 5, and this moment mobile communication terminal passes Its internal wap client downloads the update, preferably, the transmission of the updated public transport data adopts incremental transmission, that is, the part that is changed is sent to improve efficiency;

需要说明的是,上述数据传送服务器1的鉴权过程还可以由信息管理服务器2来完成。It should be noted that the above authentication process of the data transmission server 1 can also be completed by the information management server 2 .

短信息服务中心5和Wap服务器6均为移动运营商所提供的设备,也为现有设备,关于这两部分在此不进行进一步介绍。Both the short message service center 5 and the Wap server 6 are equipment provided by mobile operators, and are also existing equipment, and no further introduction will be made on these two parts here.

参考图2,图示了图1中移动通信终端的一个实施例的结构框图。如图所示,包括:Referring to FIG. 2 , it illustrates a structural block diagram of an embodiment of the mobile communication terminal in FIG. 1 . As shown, including:

接收模块40,用于接收用户输入的查询请求;该查询请求包括起始站、终点站、最大换乘次数及城市或区域等信息;The receiving module 40 is used to receive the query request input by the user; the query request includes information such as starting station, terminal station, maximum transfer times and city or region;

本地公交数据库44,用于存储下载至本地的公交数据;其存储形式可以采用:线路名称+计费方式+全部站点序列的格式;The local public transport database 44 is used to store and download the local public transport data; its storage form can adopt the format of line name + billing method + all station sequences;

无线收发模块41,用于将下载请求发送至所述数据传送服务器1;以及,接收来自所述数据传送服务器1的公交数据;A wireless transceiver module 41, configured to send a download request to the data transfer server 1; and, receive bus data from the data transfer server 1;

提取模块42,用于提取无线收发模块41接收的公交数据并将该公交数据存储于所述本地公交数据库44中;Extraction module 42, for extracting the public transportation data that wireless transceiver module 41 receives and this public transportation data is stored in described local public transportation database 44;

计算模块43,用于根据用户输入的查询请求以及本地公交数据库44中存储的公交数据计算查询结果;若所述查询请求所需要的数据在本地公交数据库44无法获得,则生成下载请求并由无线收发模块41将该下载请求发送至数据传送服务器1;Calculation module 43, is used for according to the inquiry request of user input and the bus data calculation inquiry result stored in local bus database 44; If the data needed by described inquiry request can't be obtained in local bus database 44, then generate download request and by wireless The transceiver module 41 sends the download request to the data transfer server 1;

输出模块,用于将计算模块43计算得到的查询结果输出显示,以供用户查看。The output module is configured to output and display the query result calculated by the calculation module 43 for viewing by the user.

其中,无线收发模块41通过Wap服务器6向数据传送服务器1发送下载请求并通过Wap服务器6接收所述数据传送服务器1发送的公交数据。Wherein, the wireless transceiver module 41 sends a download request to the data transfer server 1 through the Wap server 6 and receives the bus data sent by the data transfer server 1 through the Wap server 6 .

所述无线收发模块41进一步包括:The wireless transceiver module 41 further includes:

wap单元,作为wap客户端用于与wap服务器通信,通过wap服务器转发下载请求至所述数据传送服务器并接收由wap服务器6转发的来自数据传送服务器1的公交数据;The wap unit is used as a wap client to communicate with the wap server, forwards the download request to the data transfer server through the wap server and receives the bus data from the data transfer server 1 forwarded by the wap server 6;

短信息收发单元,用于与短信息服务中心通信以通过所述短信息服务中心获得公交数据更新通知信息。The short message transceiving unit is used for communicating with the short message service center to obtain the bus data update notification information through the short message service center.

参考图3,图示了图1中移动通信终端的换乘查询方法的一个实施例的流程图。如图所示,包括以下步骤:Referring to FIG. 3 , it illustrates a flow chart of an embodiment of the transfer inquiry method of the mobile communication terminal in FIG. 1 . As shown in the figure, the following steps are included:

S200,获得起始站、终点站及最大换乘次数并压栈。即,获得由用户输入起始站、终点站和允许的最大换乘次数;并将所述起始站、终点站和允许的最大换乘次数参数压栈;S200, obtaining the start station, the end station and the maximum number of transfers and pushing them into stacks. That is, obtain the starting station, the terminal station and the maximum number of transfers allowed by the user; and push the parameters of the starting station, the terminal station and the maximum number of transfers allowed;

S201,从当前站点查找所有满足条件的乘车方案。所述当前站点是指当前的起始站,即作为起始站的当前站点,当初次执行至本步骤时,所述当前站点便是步骤S200中的起始站,当是从下述步骤S209执行至本步骤,则所述当前站点便是经过步骤S209确定的当前站点;S201. Find all ride schemes satisfying the conditions from the current station. The current station refers to the current starting station, that is, the current station as the starting station. When this step is performed for the first time, the current station is the starting station in step S200. When starting from the following step S209 After executing this step, the current site is the current site determined in step S209;

S202,判断当前起始站是否是终点站,若是,则执行S210,否则执行步骤S203;S202, judging whether the current start station is the end station, if so, then execute S210, otherwise execute step S203;

S203,判断是否仍可换乘,若是,则执行步骤S204,否则执行步骤S211。判断是否仍可换乘通过判断当前换乘次数是否达到步骤S200所设置的最大换乘次数实现;由于,每换乘一次都要累加换乘次数,因而设置本判断步骤以防止超过最大换乘次数;S203, judging whether transfer is still possible, if yes, execute step S204, otherwise execute step S211. Judging whether it is still possible to transfer is realized by judging whether the current number of transfers has reached the maximum number of transfers set in step S200; because each transfer will add up the number of transfers, this judgment step is set to prevent exceeding the maximum number of transfers ;

S204,从当前站点的公交数据中取一个线路,并得到该线路上的下一站点。例如:当前起始站为B234,而从公交数据中可以得到包含当前站点的线路为L1、L2、L3、L4、L5,此时从L1~L5中选取一个线路,并从本地公交数据中得到该线路的下一站点;其中,所述下一站点可以为近邻当前起始站的下一站点,或者也可以按照预先设置的步长选取下一个站点;S204. Take a route from the bus data of the current station, and obtain the next station on the route. For example: the current starting station is B234, and the lines including the current station can be obtained from the bus data as L1, L2, L3, L4, and L5. At this time, select a line from L1~L5 and get it from the local bus data The next station of the line; wherein, the next station can be the next station adjacent to the current starting station, or can also select the next station according to the preset step size;

S205,判断步骤S204中是否成功获得已选择线路的所述下一站点,若是,则执行步骤S206,否则重新执行步骤S204寻找下一个线路或下一个站点;S205, judging whether the next site of the selected line has been successfully obtained in step S204, if so, then perform step S206, otherwise re-execute step S204 to find the next line or next site;

S206,判断步骤S204中所选择的线路及站点是否经过,若是,则执行步骤S207,否则执行步骤S204。即,判断之前是否乘坐过该线路经过该站点,例如到本步骤为止当前正在计算的线路为:起始站乘L1,在B398站转乘L4,在B230站下车,此时经过步骤S204选择了L2及下一站点B987,因为已经计算出的部分中没有乘线路L2在站点B987转乘的部分,因而本步骤认定是未经过,因而执行步骤S207;对于上述例子来说,未经过的情形还包括,乘坐过L2,但没有在站点B987换乘过,或者,未乘坐过L2,但是在站点B987换乘过;因此,认定为经过的情况只有一种,即乘坐过L2并且在站点B987换乘过;S206, judging whether the line and station selected in step S204 pass through, if yes, execute step S207, otherwise execute step S204. That is, it is judged whether the line has been passed through the station before. For example, the line currently being calculated up to this step is: take L1 at the starting station, transfer to L4 at the B398 station, get off at the B230 station, and select through step S204 L2 and next station B987, because do not take the part that line L2 transfers at station B987 in the part that has been calculated, thereby this step is identified as not passing through, thereby performing step S207; For the above example, the situation of not passing through It also includes taking the L2 but not changing at the station B987, or not taking the L2 but changing at the station B987; therefore, there is only one case that is considered to be passing, that is, taking the L2 and transferring at the station B987 Transferred;

S207,判断是否换乘,若是,则执行步骤S208,否则执行步骤S209。其根据步骤S204所选择的线路与上一条线路是否为同一条线路来判断,若是同一条线路,则不存在换乘关系,因而本步骤判断为不换乘;若不是同一条线路,则存在换乘关系,因而本步骤判断为换乘。本步骤目的是为了在步骤S208中决定是否对换乘次数进行累加;S207, judging whether to transfer, if yes, execute step S208, otherwise execute step S209. It judges according to whether the line selected in step S204 is the same line as the previous line. If it is the same line, there is no transfer relationship, so this step is judged as no transfer; if it is not the same line, there is a transfer relationship. Therefore, this step is judged as transfer. The purpose of this step is to determine whether to accumulate the number of transfers in step S208;

S208,记录该线路,并累加换乘次数。即,当成功获得下一站之后,则记录所述线路及所述下一站,并同时将已换乘次数加1(因为经过步骤S207判断不是同一条线路);S208, record the line, and accumulate transfer times. That is, after successfully obtaining the next station, then record the line and the next station, and simultaneously add 1 to the number of transfers (because it is not the same line as judged through step S207);

S209,将获得的站点作为当前站点,并将经过的所有线路及站点和当前换乘次数参数压栈。即,以步骤S204中所获得的下一站作为新的当前站点再次执行步骤S201继续完成完整的线路计算,同时将各个参数压栈保存。本步骤结束后,执行步骤S201;S209, taking the obtained station as the current station, and pushing all the passing lines and stations and the parameters of the current number of transfers onto the stack. That is, step S201 is executed again with the next station obtained in step S204 as the new current station to continue to complete the complete line calculation, and at the same time, each parameter is pushed onto the stack for storage. After this step ends, execute step S201;

S210,记录结果。即,当当前站点为终点站时,即表示换乘方案已经计算完毕,此时存储整个换乘方案;并且,同时计算出该方案所需要花费的费用;本步骤结束后执行步骤S213;S210, record the result. That is, when the current station is the terminal station, it means that the transfer plan has been calculated, and the entire transfer plan is stored at this time; and at the same time, the cost of the plan is calculated; after this step is completed, step S213 is executed;

例如,最终得到的完整方案如下:For example, the resulting complete scheme looks like this:

起始站乘L1,在B555站点换乘L11,在B666站点换乘L21,在B777站点换乘L31,最终到达终点站;此时,便从本地公交数据库中得到每条线路计费方式,根据该计费方式计算得到费用支出。比如,L1的计费方式为单一票制1元,L11也为单一票制2元,L21为分段计价,L31为单一票制1元,并计算出用户乘坐L21线路所经过的路段的费用为2元,此时费用支出为1+2+2+1=6元;Take L1 at the starting station, transfer to L11 at station B555, transfer to L21 at station B666, transfer to L31 at station B777, and finally arrive at the terminal station; at this time, the billing method of each line is obtained from the local bus database, according to The billing method calculates the expenses. For example, the billing method of L1 is a single ticket system of 1 yuan, L11 is also a single ticket system of 2 yuan, L21 is billed by sections, and L31 is a single ticket system of 1 yuan, and the cost of the section that the user passes through on the L21 line is calculated is 2 yuan, and the expense at this time is 1+2+2+1=6 yuan;

S211,查找当前站点与终点站之间的所有直达线路。需要注意的是,这里所讲的直达线路并非是从原始起始站(步骤S200中设置的起始站)到终点站之间的直达线路,而是从当前站点到终点站之间的直达线路。S211, searching for all direct lines between the current station and the terminal station. It should be noted that the direct line mentioned here is not a direct line from the original starting station (the starting station set in step S200) to the terminal station, but a direct line from the current station to the terminal station .

例如,步骤S200中设置的起始站为B1234,终点站B4321,当前站点为B888,假设在当前站点的公交数据中有一条线路L007其包含站点B888和终点站B4321,则此时认为有所谓的直达线路,否则没有;For example, the starting station set in step S200 is B1234, the terminal station B4321, and the current station is B888, assuming that there is a line L007 in the bus data of the current station, which includes station B888 and terminal station B4321, then it is considered that there is a so-called direct line, otherwise none;

S212,记录所有可直达的结果。即,记录上一步所得到的直达线路信息(包括完整的线路信息);S212. Record all directly reachable results. That is, record the direct line information obtained in the previous step (including complete line information);

S213,从栈中弹出一组参数。即,将之前压入堆栈中的信息弹出;S213. Pop a set of parameters from the stack. That is, pop the information that was previously pushed into the stack;

S214,判断从堆栈中弹出的数据是否为空,若是,则执行步骤S216,否则执行步骤S215。即,当出栈内容为空时,则表示此时已经将所有可能的线路遍历完毕,可以结束流程;若不为空,则表示并没有遍历完毕,则继续执行步骤S215;S214, judging whether the data popped from the stack is empty, if yes, execute step S216, otherwise execute step S215. That is, when the pop-up content is empty, it means that all possible lines have been traversed at this time, and the process can be ended; if it is not empty, it means that the traverse has not been completed, and then continue to execute step S215;

S215,将弹出的站点设为当前站点。即,将步骤S213中弹出的数据中的当前站点作为起始站以便重新执行步骤S201进行遍历;S215, setting the pop-up site as the current site. That is, the current site in the data ejected in step S213 is used as the starting station so as to re-execute step S201 to traverse;

在本发明换乘查询方法的另一个实施例中,在图3所示的实施例的基础上,在步骤S204中直接取未经过的线路及其下一站点,因而可以省略步骤S206中的判断步骤。In another embodiment of the transfer query method of the present invention, on the basis of the embodiment shown in Figure 3, in step S204, the unpassed line and its next station are directly taken, so the judgment in step S206 can be omitted step.

在本发明换乘查询方法的再一个实施例中,在图3所示的实施例的基础上,可以省略步骤S203,这样遍历出全部可以从起点站到达终点站的线路,而在步骤S214与S216之间增加对得到的全部方案的换乘次数的过滤,舍弃超过最大换乘次数的方案。In yet another embodiment of the transfer query method of the present invention, on the basis of the embodiment shown in Figure 3, step S203 can be omitted, so that all lines that can arrive at the terminal station from the starting station have been traversed, and in steps S214 and During S216, the filtering of transfer times of all plans obtained is added, and the plans exceeding the maximum transfer times are discarded.

需要说明的是,本发明所述的公交数据是指所有可能公共交通方式的组合。例如,公共汽车、电车、高速列车、地铁或轻轨之间的任意组合。It should be noted that the public transport data mentioned in the present invention refers to the combination of all possible public transport modes. For example, any combination between bus, tram, high-speed train, subway or light rail.

以上所揭露的仅为本发明一种较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosure is only a preferred embodiment of the present invention, which certainly cannot limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

Claims (12)

1, a kind of Public Transport Transfer inquiry system comprises:
The public transit system database is used to store the public transit system data;
The data delivery service device is used to respond the download request of mobile communication terminal, and qualified data in the public transit system database are sent to mobile communication terminal;
Mobile communication terminal is used to receive user's query requests and obtains Query Result according to local public transport data computation; If local data base does not comprise the public transport data of these query requests needs, then send download request to the data delivery service device; And, receive the public transport data that the data delivery service device sends;
Communicate by letter by mobile Operation Network between described mobile communication terminal and the described data delivery service device.
2, system according to claim 1 is characterized in that, also comprises:
Information management server is used to store the user profile that comprises mobile communication terminal uniqueness sign at least; And the user profile in the described data delivery service device Query Information management server is carried out authentication to received download request.
3, system according to claim 1 and 2, it is characterized in that, the download request of described mobile communication terminal at first is sent to the wap server of mobile operator by the wap client, and by this wap server this request is forwarded to described data delivery service device; Described data delivery service device will be sent to the wap server forwards of the public transport data of mobile communication terminal by mobile operator.
4, system according to claim 2 is characterized in that, also each user of the corresponding stored tabulation of having downloaded the public transport data of described information management server; When in the described public transit system database data change being arranged, described data delivery service device sends lastest imformation by short message service center from the user of corresponding this change of trend according to described tabulation.
5, a kind of mobile communication terminal comprises:
Local transit database is used to store the public transport data that are downloaded to this locality;
Receiver module, the user receives the query requests of user's input;
Computing module is used for the public transport data computation Query Result of storing according to the query requests and the local transit database of user's input; If should not inquire about needed public transport data in the local transit database, then generate download request;
Radio receiving transmitting module is used for the download request that described computing module generates is sent to described data delivery service device; And, receive from described data delivery service device public transport data;
Extraction module, be used for extracting public transport data that radio receiving transmitting module receives and with this public transport storage in described local transit database;
Output module is used for that described computing module is calculated Query Result output demonstration and checks for the user.
6, mobile communication terminal according to claim 5 is characterized in that, described radio receiving transmitting module comprises:
The wap unit is used for the server communication with wap as the wap client, downloads request to described data delivery service device by the wap server forwards;
The receiving short message unit is used for communicating by letter to obtain the public transport data that described request is downloaded by described short message service center with short message service center.
7, mobile communication terminal according to claim 5 is characterized in that, the public transport data of being stored in the described local transit database comprise following information: line name, charging way and whole website sequence.
According to each described mobile communication terminal in the claim 5 to 7, it is characterized in that 8, described download request comprises user inquiring request location message; Perhaps, described user inquiring request location message also can obtain by judging the wireless signal source place;
Described query requests comprises initiating station, terminus and location.
9, according to each described mobile communication terminal in the claim 5 to 7, it is characterized in that, described computing module also is used for the expense expenditure that circuit charge information according to local transit database institute corresponding stored calculates the route that described Query Result obtains, and is shown for the user by described output module output and to check.
10, a kind of Public Transport Transfer querying method of mobile communication terminal may further comprise the steps:
A, acquisition initiating station, terminus and maximum number of transfer;
B, under the restriction of maximum number of transfer, traversal obtains all routes from the inception point to the terminus from local public transport data.
11, method according to claim 10 is characterized in that, step b may further comprise the steps:
B0, described initiating station is made as current website;
B1, judge whether current website is the terminus, if then write down whole route and initiating station is made as current website, then execution in step b5; Otherwise, execution in step b2;
B2, judge whether to reach maximum number of transfer, if then search and write down all straightforward lines between current website and the terminus, and initiating station is made as current website, then execution in step b5; Otherwise, execution in step b3;
B3, from the public transport data of current website, get a public bus network and obtain next website of this circuit, if can't obtain next website, then with initiating station as current website and execution in step b1; And if there is the transfer relation between described current website and described next website, number of transfer then adds up;
B4, with next website of obtaining among the step b3 as current website and execution in step b1;
B5, judge whether that traversal finishes, check if then finish and the result is back to the user; Otherwise, execution in step b1.
12, method according to claim 11 is characterized in that: among the step b3, judge at first behind next website of acquisition that whether this website and place circuit thereof are processes, if not, then carry out subsequent process; If re-execute step b3.
CNA2008100144356A 2008-03-05 2008-03-05 Bus transfer query system, mobile communication terminal and bus transfer query method Pending CN101242583A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2008100144356A CN101242583A (en) 2008-03-05 2008-03-05 Bus transfer query system, mobile communication terminal and bus transfer query method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2008100144356A CN101242583A (en) 2008-03-05 2008-03-05 Bus transfer query system, mobile communication terminal and bus transfer query method

Publications (1)

Publication Number Publication Date
CN101242583A true CN101242583A (en) 2008-08-13

Family

ID=39933743

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2008100144356A Pending CN101242583A (en) 2008-03-05 2008-03-05 Bus transfer query system, mobile communication terminal and bus transfer query method

Country Status (1)

Country Link
CN (1) CN101242583A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102376161A (en) * 2010-08-24 2012-03-14 北京牡丹视源电子有限责任公司 Method and system for inquiring public traffic information
CN103294708A (en) * 2012-02-28 2013-09-11 北京四维图新科技股份有限公司 Route planning method and device based on public traffic system
CN103984767A (en) * 2014-05-30 2014-08-13 百度在线网络技术(北京)有限公司 Bus scheme query method and device
CN105516310A (en) * 2015-12-09 2016-04-20 江苏风云科技服务有限公司 Bus public service system
CN106295906A (en) * 2016-08-22 2017-01-04 万马联合新能源投资有限公司 A kind of urban public bus lines querying method based on degree of depth study
CN106533901A (en) * 2016-10-12 2017-03-22 昆明理工大学 Bus information service system based on WeChat official account
CN107544996A (en) * 2016-06-27 2018-01-05 高德信息技术有限公司 The querying method and device of Public Transport Transfer route
CN107560628A (en) * 2016-06-30 2018-01-09 高德信息技术有限公司 A kind of bus routes method and device for planning
CN108763549A (en) * 2018-05-31 2018-11-06 武汉轻工大学 Method for quickly querying, device, terminal device and the storage medium of public bus network
CN108763518A (en) * 2018-05-30 2018-11-06 武汉轻工大学 Recommendation method, apparatus, terminal device and the readable storage medium storing program for executing of riding scheme
CN110941626A (en) * 2019-12-10 2020-03-31 咪付(广西)网络技术有限公司 User data management and control method based on travel information
CN112382402A (en) * 2020-08-20 2021-02-19 同济大学 Traffic station big data platform establishing method for student returning school

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102376161A (en) * 2010-08-24 2012-03-14 北京牡丹视源电子有限责任公司 Method and system for inquiring public traffic information
CN102376161B (en) * 2010-08-24 2014-09-10 北京牡丹视源电子有限责任公司 Method and system for inquiring public traffic information
CN103294708A (en) * 2012-02-28 2013-09-11 北京四维图新科技股份有限公司 Route planning method and device based on public traffic system
CN103984767A (en) * 2014-05-30 2014-08-13 百度在线网络技术(北京)有限公司 Bus scheme query method and device
CN105516310A (en) * 2015-12-09 2016-04-20 江苏风云科技服务有限公司 Bus public service system
CN107544996B (en) * 2016-06-27 2019-12-03 高德信息技术有限公司 The querying method and device of Public Transport Transfer route
CN107544996A (en) * 2016-06-27 2018-01-05 高德信息技术有限公司 The querying method and device of Public Transport Transfer route
CN107560628A (en) * 2016-06-30 2018-01-09 高德信息技术有限公司 A kind of bus routes method and device for planning
CN107560628B (en) * 2016-06-30 2019-11-15 高德信息技术有限公司 A kind of bus routes method and device for planning
CN106295906A (en) * 2016-08-22 2017-01-04 万马联合新能源投资有限公司 A kind of urban public bus lines querying method based on degree of depth study
CN106533901A (en) * 2016-10-12 2017-03-22 昆明理工大学 Bus information service system based on WeChat official account
CN108763518A (en) * 2018-05-30 2018-11-06 武汉轻工大学 Recommendation method, apparatus, terminal device and the readable storage medium storing program for executing of riding scheme
CN108763518B (en) * 2018-05-30 2020-10-30 武汉轻工大学 Recommended method, device, terminal device and readable storage medium for a ride plan
CN108763549A (en) * 2018-05-31 2018-11-06 武汉轻工大学 Method for quickly querying, device, terminal device and the storage medium of public bus network
CN110941626A (en) * 2019-12-10 2020-03-31 咪付(广西)网络技术有限公司 User data management and control method based on travel information
CN112382402A (en) * 2020-08-20 2021-02-19 同济大学 Traffic station big data platform establishing method for student returning school

Similar Documents

Publication Publication Date Title
JP5372694B2 (en) Charging infrastructure information provision system for electric vehicles
CN103198564B (en) Public transportation system and public transport charging method
CN101101218A (en) Navigation system working method capable of providing remote handle service
CN102610118A (en) Bus information acquiring device, bus positioning system and method
CN104180812B (en) A kind of POI is sent to the Telematics systems and its control method of automobile
CN103278833A (en) Line recommendation system and method based on Beidou satellite/GPS (global positioning system) data
CN102509365A (en) Vehicle jam charging method, device and system
WO2018040280A1 (en) Parking space planning method and roadside unit
CN104217584A (en) Private car ridesharing dispatching system and control method thereof
CN1988688A (en) Method, device and system for inquiring public bus information
CN103595866A (en) Method and system for providing charging and battery-swapping information for electric vehicle
US20200377074A1 (en) System and Method for Automatically Setting Vehicle Functions
CN101206807A (en) Bus location information inquiry system and inquiry method
CN110430237A (en) A kind of information processing method, device, the vehicles and storage medium
CN106230899A (en) A kind of intelligent bus information query system
CN103294673B (en) The collection of a kind of public transport realtime running data and dissemination method
CN108537362B (en) Bus transfer method based on bidirectional search and estimation function pruning mode
JP4158894B2 (en) Road-to-vehicle service provision system
CN112767087A (en) Intelligent sharing bicycle borrowing and returning method based on dynamic matching
CN107610450A (en) Quick about car method and system based on 4G network mobile phone IP direct-connecting technologies
CN104572861A (en) Bus information inquiry method and system
CN109413616B (en) Vehicle intelligent service system and method, vehicle-mounted terminal, base station and core network equipment
JP2007521499A (en) Method and system for using SMS notification and internet browser to provide real-time traffic information
CN101022596A (en) Traffic information query system and method based on cellphone network
CN107085973A (en) A kind of managing system of car parking and management method based on platform of internet of things

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20080813