WO2020124618A1 - 车辆查询方法、***、装置、计算机设备及存储介质 - Google Patents

车辆查询方法、***、装置、计算机设备及存储介质 Download PDF

Info

Publication number
WO2020124618A1
WO2020124618A1 PCT/CN2018/123229 CN2018123229W WO2020124618A1 WO 2020124618 A1 WO2020124618 A1 WO 2020124618A1 CN 2018123229 W CN2018123229 W CN 2018123229W WO 2020124618 A1 WO2020124618 A1 WO 2020124618A1
Authority
WO
WIPO (PCT)
Prior art keywords
vehicle
vehicle information
target
information
microservice
Prior art date
Application number
PCT/CN2018/123229
Other languages
English (en)
French (fr)
Inventor
熊友军
贾亮亮
罗小虎
Original Assignee
深圳市优必选科技有限公司
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 深圳市优必选科技有限公司 filed Critical 深圳市优必选科技有限公司
Publication of WO2020124618A1 publication Critical patent/WO2020124618A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles

Definitions

  • the invention relates to the field of computer processing, in particular to a vehicle query method, system, device, computer equipment and storage medium.
  • the traditional taxi software has a relatively low processing efficiency when performing vehicle query.
  • an embodiment of the present invention provides a vehicle query method.
  • the method includes:
  • an embodiment of the present invention provides a vehicle query system.
  • the system includes:
  • the task distributor is configured to receive a vehicle query request sent by a terminal, where the vehicle query request includes the user's location information, determine a corresponding target microservice according to the user's location information, and send the vehicle query request to the Target microservices;
  • each microservice corresponds to a different vehicle information query area, and the microservice is used to query target vehicle information matching the location information in the corresponding vehicle information query area when a vehicle query request is received;
  • the message system is used to receive the target vehicle information queried by the target microservice and return the target vehicle information to the corresponding terminal.
  • an embodiment of the present invention provides a vehicle query device, the device including:
  • a receiving module configured to receive a vehicle query request sent by a terminal, where the vehicle query request includes user location information
  • the determining module is used for determining the corresponding target microservice according to the user's location information, and sending the vehicle query request to the target microservice, where the target microservice is used for querying and searching in the corresponding vehicle information storage area The target vehicle information matching the location information;
  • the return module is configured to receive the target vehicle information queried by the target microservice and return the target vehicle information to the corresponding terminal.
  • an embodiment of the present invention provides a computer device including a memory and a processor.
  • the memory stores a computer program.
  • the processor is caused to perform the following steps:
  • an embodiment of the present invention provides a computer-readable storage medium that stores a computer program.
  • the processor is caused to perform the following steps:
  • the above vehicle query method, system, device, computer equipment, and storage medium determine the corresponding target microservice according to the user's location information in the vehicle query request by receiving the vehicle query request sent by the terminal, and send the vehicle query request to the target microservice ,
  • the target microservice queries the target vehicle information matching the location information in the corresponding vehicle information storage area, and returns the received target vehicle information to the corresponding terminal.
  • FIG. 1 is an application environment diagram of a vehicle query method in an embodiment
  • FIG. 2 is a flowchart of a vehicle query method in an embodiment
  • FIG. 3 is a schematic diagram of dividing into multiple vehicle information storage areas in an embodiment
  • FIG. 5 is a schematic flowchart of a vehicle query method in an embodiment
  • FIG. 6 is an architecture diagram of a vehicle query system in an embodiment
  • FIG. 7 is a schematic diagram of a vehicle query system in an embodiment
  • FIG. 8 is a structural block diagram of a vehicle query device in an embodiment
  • FIG. 9 is a structural block diagram of a vehicle query device in another embodiment.
  • FIG. 10 is a structural block diagram of a vehicle query device in yet another embodiment
  • FIG. 11 is an internal structure diagram of a computer device in an embodiment.
  • FIG. 1 is an application environment diagram of a vehicle query method in an embodiment.
  • the vehicle query method is applied to a vehicle query system.
  • the vehicle query system includes a terminal 110 and a server 120.
  • the terminal 110 and the server 120 are connected through a network.
  • the terminal 110 may specifically be a desktop terminal or a mobile terminal, and the mobile terminal may specifically be at least one of a mobile phone, a tablet computer, a notebook computer, and the like.
  • the server 120 may be implemented by an independent server or a server cluster composed of multiple servers.
  • the terminal 110 is used to send a vehicle query request
  • the server 120 is used to receive a vehicle query request sent by the terminal 110.
  • the vehicle query request includes the user's location information; the corresponding target microservice is determined according to the user's location information, and the vehicle query request is sent to Target microservice.
  • the target microservice is used to query the target vehicle information matching the location information in the corresponding vehicle information storage area; receive the target vehicle information queried by the target microservice and return the target vehicle information to the corresponding terminal 110.
  • a vehicle query method is proposed.
  • the vehicle query method can be applied to a server.
  • the method is applied to a server as an example.
  • the vehicle query method specifically includes the following steps:
  • Step 202 Receive a vehicle query request sent by a terminal, where the vehicle query request includes user location information.
  • the vehicle query request refers to the vehicle query request sent by the user through the terminal.
  • the location information of the user is included in the vehicle query request.
  • the location information can be expressed in latitude and longitude, or it can be the name of a place and other information that can uniquely represent a place.
  • the location information of the user may be location information input by the user through the terminal, or location information obtained by locating the location of the user terminal.
  • the vehicle query request sent by the terminal is received by the task processor in the server, and the vehicle query request may be an order request of the vehicle.
  • Step 204 Determine the corresponding target microservice according to the user's location information, and send the vehicle query request to the target microservice.
  • the target microservice is used to query the target vehicle information matching the location information in the corresponding vehicle information storage area.
  • microservices because there are multiple microservices in the server, different microservices correspond to different vehicle information storage areas, that is, corresponding processing areas are different. In order to distinguish, the microservices matching the user's location information are called “target microservices" ". The target microservice is determined based on the user's location information. In addition, multiple microservices are independent of each other. When a microservice fails, it will not affect the normal work of other microservices, which improves the availability and stability of the system.
  • Microservices refer to task processing microservices, that is, task processing nodes.
  • multiple microservices are set in the system in advance, and different microservices correspond to different processing tasks.
  • multiple vehicle information storage areas are divided in the database in advance.
  • FIG. 3A it is a schematic diagram of dividing into multiple vehicle information storage areas in one embodiment.
  • FIG. 3B in one embodiment, the correspondence between microservices and vehicle information storage areas is a schematic diagram.
  • Different microservices handle vehicle queries in different areas.
  • the task distributor sends corresponding query tasks to corresponding microservices.
  • Different vehicle information storage areas are used to store vehicle information in different location areas. In one embodiment, it is divided according to the area of a city.
  • each microservice is fixedly associated with a vehicle information storage area, so after receiving the vehicle query request, the microservice looks for target vehicle information matching the user's location information in the corresponding vehicle storage area.
  • the target vehicle information matching the user's location information refers to the vehicle information closest to the user's location within a preset range.
  • the vehicle information storage area is an area that exists in the ElasticSearch cluster.
  • ElasticSearch is a highly scalable open source full-text search and analysis engine. It allows rapid storage, search and analysis of large amounts of data in near real-time. It is often used as a basic technology to give applications complex search characteristics and needs.
  • ElasticSearch supports geographic location information query, which can query distance information in real time according to latitude and longitude. For vehicle information in different areas, it can be stored in different Index (index number), that is, vertical partitioning according to the area to improve the efficiency of the query.
  • Step 206 Receive the target vehicle information queried by the target microservice, and return the target vehicle information to the corresponding terminal.
  • the target vehicle information refers to the found vehicle information that matches the user's location information, including information such as the vehicle's location information and vehicle identification.
  • the server receives the target vehicle information queried by the target microservice through the message system, and then returns the target vehicle information to the corresponding terminal.
  • the message system refers to a module set up in the server specifically for returning messages to the terminal.
  • the above vehicle query method determines the corresponding target microservice according to the location information of the user in the vehicle query request by receiving the vehicle query request sent by the terminal, and sends the vehicle query request to the target microservice, which is stored in the corresponding vehicle information
  • the area query matches the target vehicle information with the location information, and returns the received target vehicle information to the corresponding terminal.
  • the target microservice is determined according to the user's location information, and then the target vehicle information is searched in the vehicle information storage area corresponding to the target microservice, that is, the information search is directly performed in the determined vehicle information storage area, which is beneficial to improve the search. Efficiency, thereby increasing the corresponding processing efficiency.
  • the microservices are independent of each other. The failure of one microservice will not affect the normal operation of other microservices, which improves the stability and availability of the system.
  • the method further includes: adding the vehicle query request to the task message queue; sequentially obtaining the vehicle query request from the task message queue, and entering to determine the corresponding target microcomputer according to the user's location information Service steps.
  • the server needs to face a large number of needs, in order to avoid the loss of requested data and to improve the stability and order of task reception, the user's vehicle query request is added to the task message queue, and then from the task message queue Obtain the vehicle query request in, and then distribute the task to the corresponding microservice according to the user's location information in the vehicle query request to process the task.
  • the above vehicle query method further includes:
  • step 208 the uploaded vehicle information is received, and the corresponding vehicle information storage area is determined according to the vehicle position information in the vehicle information.
  • the server receives the vehicle information uploaded by each vehicle, and the vehicle information includes information such as vehicle position information and vehicle identification.
  • the vehicle information storage area is determined according to the acquired vehicle position information. It is divided into multiple vehicle information storage areas in advance, and the vehicle positions in different areas are divided into different vehicle information storage areas, so after acquiring the vehicle position information, the vehicle information storage area for storing the vehicle information can be determined.
  • an index microservice in the server it is specifically used to receive the vehicle information uploaded by the vehicle, and then index the vehicle information to the corresponding vehicle information storage area according to the vehicle position information in the vehicle information.
  • Step 210 Store the vehicle information in the vehicle information storage area.
  • the server After the server determines the vehicle information storage area according to the vehicle information, the server stores the vehicle information in the vehicle information storage area, so as to facilitate the subsequent receipt of the user's vehicle query request and determine the searched location based on the location information in the vehicle query request
  • the vehicle information storage area through targeted partition processing, can concurrently process multiple vehicle query requests, thereby improving processing efficiency.
  • it is easy to track the vehicle's trajectory and supervise the driver's intentional detour.
  • the method further includes: washing the vehicle information.
  • the washing process includes: removing vehicle information that does not include vehicle location information, removing vehicle information that does not include vehicle identification, and removing more than At least one of vehicle information with a preset duration and vehicle information with removal of recognition errors; storing the vehicle information in the vehicle information storage area includes storing the washed vehicle information in the corresponding vehicle information storage area.
  • the cleaning processing includes: removing vehicle information that does not include vehicle location information; There is no vehicle information that includes a vehicle identification (plate number); remove vehicle information that exceeds a preset duration. For example, if the time difference between the uploaded vehicle information and the current time is greater than 3 minutes, it means that the vehicle information is outdated and the vehicle information is removed; Remove the incorrectly identified vehicle information. For example, due to an incorrect license plate recognition, the license plate information cannot be found in the database. By washing the vehicle information, the washed vehicle information is obtained, and then the washed vehicle information is stored in the corresponding vehicle information storage area according to the corresponding vehicle position information.
  • receiving the target vehicle information queried by the target microservice and returning the target vehicle information to the corresponding terminal includes: acquiring the current vehicle travel route corresponding to the target vehicle information and sending the current vehicle travel route to the terminal.
  • the message system of the server After receiving the target vehicle information, the message system of the server obtains the current vehicle driving route corresponding to the target vehicle by acquiring the vehicle position information uploaded by the target vehicle in real time from the time when the target vehicle information is obtained, and then sends the current vehicle driving route
  • the terminal is displayed so that the user can clearly see the driving track of the vehicle through the terminal.
  • the vehicle driving route is generated based on the vehicle information uploaded in time by the vehicle. For example, the vehicle uploads vehicle information every preset time (5 seconds), and the vehicle driving route is obtained according to the vehicle position information in each vehicle information.
  • the method further includes: obtaining a microservice registration request through the microservice registration center, the microservice registration request includes the microservice identifier of the microservice to be registered and the address information of the microservice to be registered; and the microservice identifier to be registered Correspondingly store the address information of the microservice to be registered to complete the registration of the microservice to be registered.
  • the microservice registration center refers to the management center used to register microservices.
  • the task distributor can dynamically sense the on-line or off-line of micro-services through the micro-service registration center, and also provides the dynamic expansion function of micro-services, that is, the micro-services can be dynamically increased or decreased as needed.
  • the microservice registration center in the server is used to obtain the microservice registration request sent by the microservice.
  • the microservice registration request includes the microservice ID to be registered and the address information of the microservice to be registered.
  • Associated storage that is, the registration of microservices is completed. After determining the target microservice according to the user's location information, the task distributor obtains the address information corresponding to the target microservice through the microservice registration center, and then sends the vehicle query request to the target microservice for processing according to the address information.
  • the target microservice is used to query the target vehicle information matching the location information in the corresponding vehicle information storage area, including: the target microservice is used to find the vehicle information with the shortest distance from the location information in the vehicle information storage area, Take the vehicle information with the shortest distance as the target vehicle information.
  • the target microservice in the server queries the vehicle information with the shortest distance from the location in the corresponding vehicle information storage area, in order to be able to allocate the appropriate vehicle to the user in a timely manner,
  • the nearest vehicle is the target vehicle.
  • FIG. 5 it is a schematic flowchart of a vehicle query method in an embodiment.
  • the user sends a taxi request (vehicle query request) through the terminal, and the taxi request contains the user's location information.
  • the order request received by the task distribution layer in the server is added to the task message queue;
  • the order request is sequentially obtained from the task message queue and distributed to different microservices in the microservice cluster;
  • step 4 The microservice receives the order request and sends the query request to the corresponding vehicle information query area in the search service cluster for query;
  • the fifth step is to query in the vehicle information query area, if the matching target vehicle information is found, the target The vehicle information is sent to the message system in the server. If it is not found, the search is continued.
  • the message system is used to send the found target vehicle information to the corresponding terminal.
  • a vehicle query system includes:
  • the task distributor 602 is configured to receive a vehicle query request sent by a terminal, where the vehicle query request includes the user's location information, determine a corresponding target microservice according to the user's location information, and send the vehicle query request to the Describe the target microservices;
  • microservices 604 each microservice corresponding to a different vehicle information query area, the microservice is used to query target vehicle information matching the location information in the corresponding vehicle information query area when receiving a vehicle query request ;
  • the message system 606 is configured to receive the target vehicle information queried by the target microservice and return the target vehicle information to the corresponding terminal.
  • the task distributor receives the vehicle query request, and determines the target microservice according to the user's location information in the vehicle query request.
  • the service is one of multiple microservices.
  • the vehicle query request is then sent to the target microservice, and the target microservice queries the target vehicle information matching the location information in the vehicle information query area corresponding to it. Then the target vehicle information is sent to the message system, and the message system returns the target vehicle information to the corresponding terminal.
  • the task distributor is also used to add the vehicle query request to the task message queue, and distribute the vehicle query request in the task message queue to the corresponding target microservices in turn.
  • the above vehicle query system further includes: an index microservice for receiving uploaded vehicle information, determining a corresponding vehicle information storage area according to the vehicle position information in the vehicle information, and storing the vehicle information to The vehicle information storage area.
  • the index microservice is also a module in the server for receiving vehicle information uploaded by each vehicle, and then determining the corresponding vehicle information storage area according to the vehicle position information in the vehicle information, and storing the vehicle information in the vehicle information storage area To facilitate subsequent targeted search based on the vehicle information storage area.
  • the index microservice is also used to perform cleaning processing on the vehicle information, the cleaning processing includes: removing vehicle information that does not include vehicle location information, removing vehicle information that does not include vehicle identification, and removing more than At least one of the vehicle information of the preset duration and the vehicle information with the recognition error removed, and the vehicle information after the cleaning process is stored in the corresponding vehicle information storage area.
  • the message system is also used to obtain the current vehicle travel route corresponding to the target vehicle information, and send the current vehicle travel route to the terminal.
  • the above vehicle query system further includes: a microservice registration center, which is used to obtain a microservice registration request, where the microservice registration request includes the microservice identifier of the microservice to be registered and the Address information, correspondingly storing the ID of the microservice to be registered and the address information of the microservice to be registered to complete the registration of the microservice to be registered.
  • the task processor is also used to obtain address information corresponding to the target microservice through the microservice registration center, and send the vehicle query request to the target microservice according to the address information.
  • the target microservice is used to search for the vehicle information with the shortest distance from the location information in the vehicle information storage area, and use the vehicle information with the shortest distance as the target vehicle information.
  • FIG. 7 it is a schematic diagram of a vehicle query system in an embodiment. From bottom to top are the data reporting layer, messaging system layer, search cluster service, retrieval analysis layer, task distribution layer, and client request layer.
  • the data reporting layer is used to upload the vehicle information of each vehicle, on the one hand to the messaging system layer, and on the other hand to the search cluster service.
  • the message system layer is used to receive the reported vehicle information of each vehicle and generate the driving trajectory of each vehicle.
  • the search cluster service is used to receive the uploaded vehicle information through the index microservice, and then index and store it in different vehicle information storage areas (that is, different indexes) according to the vehicle position information.
  • the detection and analysis layer includes a plurality of microservices for searching vehicles respectively in the corresponding vehicle information storage area, and the detection and analysis layer includes searching for the driving trajectory of the vehicle.
  • the task distribution layer is used to receive vehicle query tasks and distribute them to different microservices based on location information.
  • the client request layer means that the user sends a vehicle query request through the client.
  • a vehicle query device As shown in FIG. 8, in one embodiment, a vehicle query device is proposed.
  • the device includes:
  • the receiving module 802 is configured to receive a vehicle query request sent by a terminal, where the vehicle query request includes user location information;
  • the determining module 804 is configured to determine a corresponding target microservice according to the user's location information, and send the vehicle query request to the target microservice.
  • the target microservice is used for querying and searching in the corresponding vehicle information storage area. Target vehicle information matching the location information;
  • the return module 806 is configured to receive the target vehicle information queried by the target microservice and return the target vehicle information to the corresponding terminal.
  • the above vehicle query device further includes:
  • the joining module 803 is used to add the vehicle query request to the task message queue, sequentially obtain the vehicle query request from the task message queue, and notify the determination module to enter the corresponding target microservice according to the user's location information .
  • the vehicle query device further includes:
  • the storage module 801 is configured to receive the uploaded vehicle information, determine the corresponding vehicle information storage area according to the vehicle position information in the vehicle information, and store the vehicle information in the vehicle information storage area.
  • the above vehicle query device further includes: a cleaning module, configured to perform cleaning processing on the vehicle information, the cleaning processing includes: removing vehicle information that does not include vehicle location information, and removing vehicles that do not include vehicle identification At least one of information, removal of vehicle information exceeding a preset duration, and removal of vehicle information with incorrect recognition; the storage module is further used to store the washed vehicle information in a corresponding vehicle information storage area.
  • a cleaning module configured to perform cleaning processing on the vehicle information, the cleaning processing includes: removing vehicle information that does not include vehicle location information, and removing vehicles that do not include vehicle identification At least one of information, removal of vehicle information exceeding a preset duration, and removal of vehicle information with incorrect recognition; the storage module is further used to store the washed vehicle information in a corresponding vehicle information storage area.
  • the return module is further used to obtain a current vehicle travel route corresponding to the target vehicle information, and send the current vehicle travel route to the terminal.
  • FIG. 11 shows an internal structure diagram of a computer device in an embodiment.
  • the computer may be a server.
  • the computer device includes a processor, a memory, and a network interface connected by a system bus.
  • the memory includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium of the computer device stores an operating system and may also store a computer program.
  • the processor may cause the processor to implement the vehicle query method.
  • a computer program may also be stored in the internal memory.
  • the processor may be caused to execute the vehicle query method.
  • the network interface is used to communicate with the outside world.
  • 11 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.
  • the specific computer device may It includes more or fewer components than shown in the figure, or some components are combined, or have a different component arrangement.
  • the vehicle query method provided by the present application may be implemented in the form of a computer program, and the computer program may run on the computer device shown in FIG. 11.
  • Various program templates constituting the vehicle query device can be stored in the memory of the computer equipment.
  • a computer device includes a memory and a processor.
  • the memory stores a computer program.
  • the processor is caused to perform the following steps: receiving a vehicle query request sent by a terminal.
  • the vehicle query request includes the user's location information; the corresponding target microservice is determined according to the user's location information, and the vehicle query request is sent to the target microservice, and the target microservice is used for the corresponding vehicle information
  • the storage area queries target vehicle information that matches the location information; receives the target vehicle information queried by the target microservice, and returns the target vehicle information to the corresponding terminal.
  • a computer-readable storage medium storing a computer program, which when executed by a processor, causes the processor to perform the following steps: receiving a vehicle query request sent by a terminal, the vehicle query request including the user's location Information; determine the corresponding target microservice according to the user's location information, and send the vehicle query request to the target microservice, the target microservice is used to query and the location information in the corresponding vehicle information storage area Matching target vehicle information; receiving the target vehicle information queried by the target microservice, and returning the target vehicle information to the corresponding terminal.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM random access memory
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDRSDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous chain (Synchlink) DRAM
  • RDRAM direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Traffic Control Systems (AREA)

Abstract

一种车辆查询方法、***、装置、计算机设备及存储介质。该方法包括:接收终端发送的车辆查询请求,所述车辆查询请求中包括用户的位置信息(202);根据所述用户的位置信息确定相应的目标微服务,将所述车辆查询请求发送给所述目标微服务,所述目标微服务用于在相应的车辆信息存储区域查询与所述位置信息匹配的目标车辆信息(204);接收所述目标微服务查询到的所述目标车辆信息,将所述目标车辆信息返回到对应的终端(206)。该车辆查询方法通过分区进行查询,大大提高了处理的效率。

Description

车辆查询方法、***、装置、计算机设备及存储介质 技术领域
本发明涉及计算机处理领域,尤其是涉及一种车辆查询方法、***、装置、计算机设备及存储介质。
背景技术
随着生活节奏的提高,人们出行对车辆的需求越来越多,但是出租车的数量毕竟有限,而且在一些高峰期和个别区域,人们的打车需求更难满足。
技术问题
传统的打车软件在进行车辆查询的时候,处理效率比较低。
技术解决方案
基于此,有必要针对上述问题,提供了一种处理效率高的车辆查询方法、***、装置、计算机设备及存储介质。
第一方面,本发明实施例提供一种车辆查询方法,所述方法包括:
接收终端发送的车辆查询请求,所述车辆查询请求中包括用户的位置信息;
根据所述用户的位置信息确定相应的目标微服务,将所述车辆查询请求发送给所述目标微服务,所述目标微服务用于在相应的车辆信息存储区域查询与所述位置信息匹配的目标车辆信息;
接收所述目标微服务查询到的所述目标车辆信息,将所述目标车辆信息返回到对应的终端。
第二方面,本发明实施例提供一种车辆查询***,所述***包括:
任务分发器,用于接收终端发送的车辆查询请求,所述车辆查询请求中包括用户的位置信息,根据所述用户的位置信息确定相应的目标微服务,将所述车辆查询请求发送给所述目标微服务;
多个微服务,每个微服务对应不同的车辆信息查询区域,所述微服务用于在接收到车辆查询请求时,在相应的车辆信息查询区域查询与所述位置信息匹配的目标车辆信息;
消息***,用于接收所述目标微服务查询到的所述目标车辆信息,将所述目标车辆信息返回到对应的终端。
第三方面,本发明实施例提供一种车辆查询装置,所述装置包括:
接收模块,用于接收终端发送的车辆查询请求,所述车辆查询请求中包括用户的位置信息;
确定模块,用于根据所述用户的位置信息确定相应的目标微服务,将所述车辆查询请求发送给所述目标微服务,所述目标微服务用于在相应的车辆信息存储区域查询与所述位置信息匹配的目标车辆信息;
返回模块,用于接收所述目标微服务查询到的所述目标车辆信息,将所述目标车辆信息返回到对应的终端。
第四方面,本发明实施例提供一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下步骤:
接收终端发送的车辆查询请求,所述车辆查询请求中包括用户的位置信息;
根据所述用户的位置信息确定相应的目标微服务,将所述车辆查询请求发送给所述目标微服务,所述目标微服务用于在相应的车辆信息存储区域查询与所述位置信息匹配的目标车辆信息;
接收所述目标微服务查询到的所述目标车辆信息,将所述目标车辆信息返回到对应的终端。
第五方面,本发明实施例提供一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行如下步骤:
接收终端发送的车辆查询请求,所述车辆查询请求中包括用户的位置信息;
根据所述用户的位置信息确定相应的目标微服务,将所述车辆查询请求发送给所述目标微服务,所述目标微服务用于在相应的车辆信息存储区域查询与所述位置信息匹配的目标车辆信息;
接收所述目标微服务查询到的所述目标车辆信息,将所述目标车辆信息返回到对应的终端。
有益效果
上述车辆查询方法、***、装置、计算机设备及存储介质,通过接收终端发送的车辆查询请求,根据车辆查询请求中的用户的位置信息确定相应的目标微服务,将车辆查询请求发送给目标微服务,目标微服务在相应的车辆信息存储区域查询与位置信息匹配的目标车辆信息,将接收到的目标车辆信息返回给对应的终端。通过根据用户的位置信息确定目标微服务,然后在目标微服务对应的车辆信息存储区域查找目标车辆信息,即通过直接在确定的车辆信息存储区域进行信息的查找有利于提高查找的效率,从而提高了相应的处理效率。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
其中:
图1为一个实施例中车辆查询方法的应用环境图;
图2为一个实施例中车辆查询方法的流程图;
图3为一个实施例中划分为多个车辆信息存储区域的示意图;
图4为另一个实施例中车辆查询方法的流程图;
图5为一个实施例中车辆查询方法的流程示意图;
图6为一个实施例中车辆查询***的架构图;
图7为一个实施例中车辆查询***的框架示意图;
图8为一个实施例中车辆查询装置的结构框图;
图9为另一个实施例中车辆查询装置的结构框图;
图10为又一个实施例中车辆查询装置的结构框图;
图11为一个实施例中计算机设备的内部结构图。
本发明的实施方式
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
图1为一个实施例中车辆查询方法的应用环境图。参照图1,该车辆查询方法应用于车辆查询***。该车辆查询***包括终端110和服务器120。终端110和服务器120通过网络连接,终端110具体可以是台式终端或移动终端,移动终端具体可以是手机、平板电脑、笔记本电脑等中的至少一种。服务器120可以用独立的服务器或者是多个服务器组成的服务器集群来实现。终端110用于发送车辆查询请求,服务器120用于接收终端110发送的车辆查询请求,车辆查询请求中包括用户的位置信息;根据用户的位置信息确定相应的目标微服务,将车辆查询请求发送给目标微服务,目标微服务用于在相应的车辆信息存储区域查询与位置信息匹配的目标车辆信息;接收目标微服务查询到的目标车辆信息,将目标车辆信息返回到对应的终端110。
如图2所示,提出了一种车辆查询方法,该车辆查询方法可以应用于服务器,本实施例中以应用于服务器为例说明,该车辆查询方法具体包括以下步骤:
步骤202,接收终端发送的车辆查询请求,车辆查询请求中包括用户的位置信息。
其中,车辆查询请求是指用户通过终端发送的车辆查询请求。在车辆查询请求中包含有用户的位置信息。位置信息可以采用经纬度表示,也可以是某个地点的名称等可以唯一表示一个地方的信息。用户的位置信息可以是用户通过终端输入的位置信息,也可以是定位用户终端的位置得到的位置信息。在一个实施例中,通过服务器中的任务处理器接收终端发送的车辆查询请求,车辆查询请求可以是车辆的订单请求。
步骤204,根据用户的位置信息确定相应的目标微服务,将车辆查询请求发送给目标微服务,目标微服务用于在相应的车辆信息存储区域查询与位置信息匹配的目标车辆信息。
其中,由于服务器中存在多个微服务,不同的微服务对应的车辆信息存储区域不同,即对应的处理区域不同,为了进行区分,将与用户的位置信息匹配的微服务称为“目标微服务”。目标微服务是根据用户的位置信息确定的。另外,通过多个微服务各自独立,当一个微服务出现故障时,不会影响其他微服务的正常工作,提高了***的可用性和稳定性。
微服务是指任务处理微服务,即任务处理节点,为了提高处理车辆查询请求的并发能力,预先在***中设置多个微服务,不同的微服务对应的处理任务不同。同时,预先在数据库中划分多个车辆信息存储区域,如图3A所示,为一个实施例中,划分为多个车辆信息存储区域的示意图。如图3B为一个实施例中,微服务与车辆信息存储区域的对应关系的示意图,不同的微服务处理不同区域的车辆查询。任务分发器将相应的查询任务对应发送到相应的微服务。不同的车辆信息存储区域用于存储不同位置区域的车辆信息。在一个实施例中,根据一个城市的区域进行划分,比如,假设一个城市里面一共有8个区,那么相应地分为8个车辆信息存储区域。每个微服务固定关联一个车辆信息存储区域,所以微服务接收到车辆查询请求后,在相应的车辆存储区域查找与用户的位置信息匹配的目标车辆信息。在一个实施例中,与用户的位置信息匹配的目标车辆信息是指在预设范围内离该用户的位置最近的车辆信息。
在一个实施例中,车辆信息存储区域是存在于ElasticSearch 集群中的区域,ElasticSearch是一个高度可伸缩的开源全文搜索和分析引擎。它允许以近实时的方式快速存储、搜索和分析大量数据,通常被用作基础的技术来赋予应用程序复杂的搜索特性和需求,同时ElasticSearch支持地理位置信息查询,可以根据经纬度,实时查询距离信息。对于不同区域的车辆信息,可以存储到不同的Index(索引编号)中,即根据区域进行垂直分区,来提高查询的效率。
步骤206,接收目标微服务查询到的目标车辆信息,将目标车辆信息返回到对应的终端。
其中,目标车辆信息是指查找到的与用户的位置信息匹配的车辆信息,包括车辆的位置信息和车辆标识等信息。在一个实施例中,服务器通过消息***接收目标微服务查询到的目标车辆信息,然后将目标车辆信息返回到对应的终端。消息***是指服务器中开设的专门用于将消息返回给终端的模块。
上述车辆查询方法,通过接收终端发送的车辆查询请求,根据车辆查询请求中的用户的位置信息确定相应的目标微服务,将车辆查询请求发送给目标微服务,目标微服务在相应的车辆信息存储区域查询与位置信息匹配的目标车辆信息,将接收到的目标车辆信息返回给对应的终端。上述车辆查询方法,通过根据用户的位置信息确定目标微服务,然后在目标微服务对应的车辆信息存储区域查找目标车辆信息,即通过直接在确定的车辆信息存储区域进行信息的查找有利于提高查找的效率,从而提高了相应的处理效率。另外,通过在***中设置多个微服务,微服务之间是各自独立的,一个微服务发生故障不会影响其他微服务的正常运行,提高了***的稳定性和可用性。
在一个实施例中,在接收终端发送的车辆查询请求之后还包括:将车辆查询请求加入到任务消息队列;依次从任务消息队列中获取车辆查询请求,进入根据用户的位置信息确定相应的目标微服务的步骤。
其中,由于该服务器需要面向大量需求,为了避免请求的数据丢失,也为了提高任务接收的稳定性和有序性,在用户的车辆查询请求中加入到任务消息队列中,然后依次从任务消息队列中获取车辆查询请求,然后根据车辆查询请求中的用户的位置信息将任务分发到相应的微服务进行任务的处理。
如图4所示,在一个实施例中,上述车辆查询方法还包括:
步骤208,接收上传的车辆信息,根据车辆信息中的车辆位置信息确定相应的车辆信息存储区域。
其中,服务器接收各个车辆上传的车辆信息,车辆信息包括:车辆位置信息和车辆标识等信息。接收到车辆信息后,根据获取到的车辆位置信息确定车辆信息存储区域。预先划分为多个车辆信息存储区域,不同区域的车辆位置分别划分到不同的车辆信息存储区域,所以在获取到车辆位置信息后,就可以确定用于存储该车辆信息的车辆信息存储区域。在一个实施例中,通过在服务器中设置索引微服务,专门用来接收车辆上传的车辆信息,然后根据车辆信息中的车辆位置信息将车辆信息索引到相应的车辆信息存储区域。
步骤210,将车辆信息存储到车辆信息存储区域。
其中,服务器在根据车辆信息确定了车辆信息存储区域后,就将车辆信息存储到该车辆信息存储区域,便于后续接收到用户的车辆查询请求后,根据车辆查询请求中的位置信息来确定查找的车辆信息存储区域,通过有针对性地进行分区处理,能够并发处理多个车辆查询请求,从而提高了处理的效率。另外,如果后续发生纠纷,可以很容易追踪车辆行驶轨迹,监督发生司机故意出现绕路的情况。
在一个实施例中,在接收上传的车辆信息数据之后,还包括:对车辆信息进行清洗处理,清洗处理包括:去除不包含车辆位置信息的车辆信息,去除不包含车辆标识的车辆信息、去除超过预设时长的车辆信息、去除识别错误的车辆信息中的至少一种;将车辆信息存储到车辆信息存储区域,包括:将清洗处理后的车辆信息存储到相应的车辆信息存储区域。
其中,服务器在接收到上传的车辆信息数据后,由于车辆信息中可能包含有不合格的数据,所以要对车辆信息进行数据清洗处理,清洗处理包括:去除没有包含车辆位置信息的车辆信息;去除没有包含车辆标识(车牌号)的车辆信息;去除超过预设时长的车辆信息,比如,若上传的车辆信息的时间距离现在的时间差大于3分钟,说明该车辆信息已经过时,去除该车辆信息;去除识别错误的车辆信息,比如,由于车牌识别错误,导致在数据库中查找不到该车牌信息。通过对车辆信息进行清洗处理,得到清洗处理后的车辆信息,然后将该清洗处理后的车辆信息分别根据各自对应的车辆位置信息存储到相应的车辆信息存储区域。
在一个实施例中,接收目标微服务查询到的目标车辆信息,将目标车辆信息返回到对应的终端,包括:获取与目标车辆信息对应的当前车辆行驶路线,将当前车辆行驶路线发送给终端。
其中,服务器的消息***在接收到目标车辆信息后,从获取到目标车辆信息的时间开始通过实时获取目标车辆上传的车辆位置信息得到目标车辆对应的当前车辆行驶路线,然后将当前车辆行驶路线发送给终端进行显示,便于用户可以通过终端清楚地看到车辆的行驶轨迹。车辆行驶路线的生成是根据车辆及时上传的车辆信息得到的,比如,车辆每隔预设时间(5秒)上传一次车辆信息,根据每次车辆信息中的车辆位置信息来得到车辆行驶路线。
在一个实施例中,方法还包括:通过微服务注册中心获取微服务注册请求,微服务注册请求中包括待注册微服务的微服务标识和待注册微服务的地址信息;将待注册微服务标识和待注册微服务的地址信息进行对应存储,完成待注册微服务的注册。根据用户的位置信息确定相应的目标微服务,将车辆查询请求发送给目标微服务,包括:通过微服务注册中心获取与目标微服务对应的地址信息,根据地址信息将车辆查询请求发送给目标微服务。
其中,微服务注册中心是指用来注册微服务的管理中心。任务分发器可以通过微服务注册中心来动态感知微服务的上线或下线,同时也提供了微服务的动态扩展功能,即微服务根据需要可以动态地增加或减少。服务器中的微服务注册中心用来获取微服务发送的微服务注册请求,微服务注册请求中包括待注册微服务标识和待注册微服务的地址信息,通过将微服务标识和相应的地址信息进行关联存储,即完成了微服务的注册。任务分发器在根据用户的位置信息确定了目标微服务后,通过微服务注册中心获取与该目标微服务对应的地址信息,然后根据地址信息将车辆查询请求发送到目标微服务进行处理。
在一个实施例中,目标微服务用于在相应的车辆信息存储区域查询与位置信息匹配的目标车辆信息,包括:目标微服务用于在车辆信息存储区域查找与位置信息距离最短的车辆信息,将距离最短的车辆信息作为目标车辆信息。
其中,服务器中的目标微服务在接收到用户的位置信息后,通过在相应的车辆信息存储区域查询与该位置距离最短的车辆信息,为了能够及时地给用户分配合适的车辆,将离用户的位置最近的车辆作为目标车辆。
如图5所示,为一个实施例中,车辆查询方法的流程示意图。第一步,用户通过终端发送打车请求(车辆查询请求),打车请求中包含用户的位置信息。第二步,服务器中的任务分发层接收到的订单请求加入到任务消息队列;第三步,从任务消息队列中依次获取订单请求,并分发到微服务集群中不同的微服务;第四步,微服务接收到订单请求,将查询请求发送到搜索服务集群中对应的车辆信息查询区域中查询;第五步,在车辆信息查询区域进行查询,若查找到匹配的目标车辆信息,则将目标车辆信息发送到服务器中的消息***,若没有查找到,则继续查找。第六步,消息***用于将查找到的目标车辆信息发送给相应的终端。
如图6所示,在一个实施例中,提出了一种车辆查询***,所述***包括:
任务分发器602,用于接收终端发送的车辆查询请求,所述车辆查询请求中包括用户的位置信息,根据所述用户的位置信息确定相应的目标微服务,将所述车辆查询请求发送给所述目标微服务;
多个微服务604,每个微服务对应不同的车辆信息查询区域,所述微服务用于在接收到车辆查询请求时,在相应的车辆信息查询区域查询与所述位置信息匹配的目标车辆信息;
消息***606,用于接收所述目标微服务查询到的所述目标车辆信息,将所述目标车辆信息返回到对应的终端。
其中,任务分发器、多个微服务、消息***可以理解为是服务器中的不同的模块,通过任务分发器接收车辆查询请求,根据车辆查询请求中的用户的位置信息确定目标微服务,目标微服务为多个微服务中的一个。然后将车辆查询请求发送给目标微服务,目标微服务在与其对应的车辆信息查询区域中查询与位置信息匹配的目标车辆信息。然后将目标车辆信息发送给消息***,消息***将该目标车辆信息返回给对应的终端。
在一个实施例中,所述任务分发器还用于将所述车辆查询请求加入到任务消息队列,将所述任务消息队列中的车辆查询请求依次分发到相应的目标微服务。
    在一个实施例中,上述车辆查询***还包括:索引微服务,用于接收上传的车辆信息,根据所述车辆信息中的车辆位置信息确定相应的车辆信息存储区域,将所述车辆信息存储到所述车辆信息存储区域。
其中,索引微服务也是服务器中的一个模块,用于接收各个车辆上传的车辆信息,然后根据车辆信息中的车辆位置信息确定相应的车辆信息存储区域,并将车辆信息存储到该车辆信息存储区域,便于后续有针对性地根据车辆信息存储区域进行查找。
在一个实施例中,所述索引微服务还用于对所述车辆信息进行清洗处理,所述清洗处理包括:去除不包含车辆位置信息的车辆信息,去除不包含车辆标识的车辆信息、去除超过预设时长的车辆信息、去除识别错误的车辆信息中的至少一种,将清洗处理后的车辆信息存储到相应的车辆信息存储区域。
在一个实施例中,所述消息***还用于获取与所述目标车辆信息对应的当前车辆行驶路线,将所述当前车辆行驶路线发送给所述终端。
在一个实施例中,上述车辆查询***还包括:微服务注册中心,用于获取微服务注册请求,所述微服务注册请求中包括待注册微服务的微服务标识和所述待注册微服务的地址信息,将所述待注册微服务标识和所述待注册微服务的地址信息进行对应存储,完成所述待注册微服务的注册。所述任务处理器还用于通过所述微服务注册中心获取与所述目标微服务对应的地址信息,根据所述地址信息将所述车辆查询请求发送给所述目标微服务。
在一个实施例中,所述目标微服务用于在所述车辆信息存储区域查找与所述位置信息距离最短的车辆信息,将所述距离最短的车辆信息作为目标车辆信息。
如图7所示,为一个实施例中,车辆查询***的框架示意图。从下到上依次是数据上报层、消息***层、搜索集群服务、检索分析层、任务分发层、客户端请求层。首先,数据上报层用于将各个车辆的车辆信息上传,一方面上传到了消息***层,另一方面上传到的搜索集群服务。消息***层用于接收上报的各个车辆的车辆信息,生成各个车辆的行驶轨迹。搜索集群服务用于通过索引微服务接收上传的车辆信息,然后根据车辆位置信息索引存储到不同的车辆信息存储区域(即不同的Index)。检测分析层中包括多个微服务,用于分别在对应的车辆信息存储区域进行车辆的查找,并且检测分析层中包括查找车辆的行驶轨迹。任务分发层用于接收车辆查询任务,根据位置信息将其分给不同的微服务。客户端请求层是指用户通过客户端发送车辆查询请求。
如图8所示,在一个实施例中,提出了一种车辆查询装置,该装置包括:
接收模块802,用于接收终端发送的车辆查询请求,所述车辆查询请求中包括用户的位置信息;
确定模块804,用于根据所述用户的位置信息确定相应的目标微服务,将所述车辆查询请求发送给所述目标微服务,所述目标微服务用于在相应的车辆信息存储区域查询与所述位置信息匹配的目标车辆信息;
返回模块806,用于接收所述目标微服务查询到的所述目标车辆信息,将所述目标车辆信息返回到对应的终端。
如图9所示,在一个实施例中,上述车辆查询装置还包括:
加入模块803,用于将所述车辆查询请求加入到任务消息队列,依次从所述任务消息队列中获取所述车辆查询请求,通知所述确定模块进入根据用户的位置信息确定相应的目标微服务。
如图10所示,在一个实施例中,上述车辆查询装置还包括:
存储模块801,用于接收上传的车辆信息,根据所述车辆信息中的车辆位置信息确定相应的车辆信息存储区域,将所述车辆信息存储到所述车辆信息存储区域。
在一个实施例中,上述车辆查询装置还包括:清洗模块,用于对所述车辆信息进行清洗处理,所述清洗处理包括:去除不包含车辆位置信息的车辆信息,去除不包含车辆标识的车辆信息、去除超过预设时长的车辆信息、去除识别错误的车辆信息中的至少一种;所述存储模块还用于将清洗处理后的车辆信息存储到相应的车辆信息存储区域。
在一个实施例中,所述返回模块还用于获取与所述目标车辆信息对应的当前车辆行驶路线,将所述当前车辆行驶路线发送给所述终端。
图11示出了一个实施例中计算机设备的内部结构图。该计算机可以是服务器。如图11所示,该计算机设备包括通过***总线连接的处理器、存储器和网络接口。其中,存储器包括非易失性存储介质和内存储器。该计算机设备的非易失性存储介质存储有操作***,还可存储有计算机程序,该计算机程序被处理器执行时,可使得处理器实现车辆查询方法。该内存储器中也可储存有计算机程序,该计算机程序被处理器执行时,可使得处理器执行车辆查询方法。网络接口用于与外界进行通信。本领域技术人员可以理解,图11中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。
在一个实施例中,本申请提供的车辆查询方法可以实现为一种计算机程序的形式,计算机程序可在如图11所示的计算机设备上运行。计算机设备的存储器中可存储组成该车辆查询装置的各个程序模板。比如,接收模块802、确定模块804和返回模块806。
一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如下步骤:接收终端发送的车辆查询请求,所述车辆查询请求中包括用户的位置信息;根据所述用户的位置信息确定相应的目标微服务,将所述车辆查询请求发送给所述目标微服务,所述目标微服务用于在相应的车辆信息存储区域查询与所述位置信息匹配的目标车辆信息;接收所述目标微服务查询到的所述目标车辆信息,将所述目标车辆信息返回到对应的终端。
一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行如下步骤:接收终端发送的车辆查询请求,所述车辆查询请求中包括用户的位置信息;根据所述用户的位置信息确定相应的目标微服务,将所述车辆查询请求发送给所述目标微服务,所述目标微服务用于在相应的车辆信息存储区域查询与所述位置信息匹配的目标车辆信息;接收所述目标微服务查询到的所述目标车辆信息,将所述目标车辆信息返回到对应的终端。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink) DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。

Claims (10)

  1. 一种车辆查询方法,其特征在于,所述方法包括:
    接收终端发送的车辆查询请求,所述车辆查询请求中包括用户的位置信息;
    根据所述用户的位置信息确定相应的目标微服务,将所述车辆查询请求发送给所述目标微服务,所述目标微服务用于在相应的车辆信息存储区域查询与所述位置信息匹配的目标车辆信息;
    接收所述目标微服务查询到的所述目标车辆信息,将所述目标车辆信息返回到对应的终端。
  2. 根据权利要求1所述的方法,其特征在于,在所述接收终端发送的车辆查询请求之后还包括:
    将所述车辆查询请求加入到任务消息队列;
    依次从所述任务消息队列中获取所述车辆查询请求,进入根据所述用户的位置信息确定相应的目标微服务的步骤。
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    接收上传的车辆信息,根据所述车辆信息中的车辆位置信息确定相应的车辆信息存储区域;
    将所述车辆信息存储到所述车辆信息存储区域。
  4. 根据权利要求3所述的方法,其特征在于,在所述接收上传的车辆信息数据之后,还包括:
    对所述车辆信息进行清洗处理,所述清洗处理包括:去除不包含车辆位置信息的车辆信息,去除不包含车辆标识的车辆信息、去除超过预设时长的车辆信息、去除识别错误的车辆信息中的至少一种;
    所述将所述车辆信息存储到所述车辆信息存储区域,包括:
    将清洗处理后的车辆信息存储到相应的车辆信息存储区域。
  5. 根据权利要求1所述的方法,其特征在于,所述接收所述目标微服务查询到的所述目标车辆信息,将所述目标车辆信息返回到对应的终端,包括:
    获取与所述目标车辆信息对应的当前车辆行驶路线,将所述当前车辆行驶路线发送给所述终端。
  6. 一种车辆查询***,其特征在于,所述***包括:
    任务分发器,用于接收终端发送的车辆查询请求,所述车辆查询请求中包括用户的位置信息,根据所述用户的位置信息确定相应的目标微服务,将所述车辆查询请求发送给所述目标微服务;
    多个微服务,每个微服务对应不同的车辆信息查询区域,所述微服务用于在接收到车辆查询请求时,在相应的车辆信息查询区域查询与所述位置信息匹配的目标车辆信息;
    消息***,用于接收所述目标微服务查询到的所述目标车辆信息,将所述目标车辆信息返回到对应的终端。
  7. 根据权利要求6所述的***,其特征在于,所述***还包括:
        索引微服务,用于接收上传的车辆信息,根据所述车辆信息中的车辆位置信息确定相应的车辆信息存储区域,将所述车辆信息存储到所述车辆信息存储区域。
  8. 一种车辆查询装置,其特征在于,所示装置包括:
    接收模块,用于接收终端发送的车辆查询请求,所述车辆查询请求中包括用户的位置信息;
    确定模块,用于根据所述用户的位置信息确定相应的目标微服务,将所述车辆查询请求发送给所述目标微服务,所述目标微服务用于在相应的车辆信息存储区域查询与所述位置信息匹配的目标车辆信息;
    返回模块,用于接收所述目标微服务查询到的所述目标车辆信息,将所述目标车辆信息返回到对应的终端。
  9. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如权利要求1至5中任一项所述方法的步骤。
  10. 一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,使得所述处理器执行如权利要求1至5中任一项所述方法的步骤。
PCT/CN2018/123229 2018-12-21 2018-12-24 车辆查询方法、***、装置、计算机设备及存储介质 WO2020124618A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811574091.4 2018-12-21
CN201811574091.4A CN111353104A (zh) 2018-12-21 2018-12-21 车辆查询方法、***、装置、计算机设备及存储介质

Publications (1)

Publication Number Publication Date
WO2020124618A1 true WO2020124618A1 (zh) 2020-06-25

Family

ID=71100617

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/123229 WO2020124618A1 (zh) 2018-12-21 2018-12-24 车辆查询方法、***、装置、计算机设备及存储介质

Country Status (2)

Country Link
CN (1) CN111353104A (zh)
WO (1) WO2020124618A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112017326A (zh) * 2020-08-31 2020-12-01 华人运通(江苏)技术有限公司 一种车内用户状态监测***及方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103000024A (zh) * 2012-07-26 2013-03-27 苏州大通多宝软件技术有限公司 可进行预约招车的出租车预约招车方法及其***
CN105027177A (zh) * 2013-01-01 2015-11-04 通腾发展德国公司 交通工具管理***
WO2016165801A1 (de) * 2015-04-16 2016-10-20 Daimler Ag Buchung von anmietbaren fahrzeugen in einem car-sharing system
CN107194762A (zh) * 2017-05-05 2017-09-22 腾讯科技(深圳)有限公司 交通工具推荐方法、***及其设备
CN108702382A (zh) * 2016-03-16 2018-10-23 北京嘀嘀无限科技发展有限公司 用于确定位置的***和方法

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016015312A1 (zh) * 2014-07-31 2016-02-04 华为技术有限公司 一种轨迹数据查询的方法及装置
CN104216972A (zh) * 2014-08-28 2014-12-17 小米科技有限责任公司 一种发送打车业务请求的方法和装置
CN104506612A (zh) * 2014-12-19 2015-04-08 北京奇虎科技有限公司 信息推荐方法、服务器和浏览器装置
CN105430077A (zh) * 2015-11-17 2016-03-23 小米科技有限责任公司 服务推送方法、装置及终端
CN107357606B (zh) * 2017-06-14 2021-02-23 广东小天才科技有限公司 一种移动终端的应用程序启动方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103000024A (zh) * 2012-07-26 2013-03-27 苏州大通多宝软件技术有限公司 可进行预约招车的出租车预约招车方法及其***
CN105027177A (zh) * 2013-01-01 2015-11-04 通腾发展德国公司 交通工具管理***
WO2016165801A1 (de) * 2015-04-16 2016-10-20 Daimler Ag Buchung von anmietbaren fahrzeugen in einem car-sharing system
CN108702382A (zh) * 2016-03-16 2018-10-23 北京嘀嘀无限科技发展有限公司 用于确定位置的***和方法
CN107194762A (zh) * 2017-05-05 2017-09-22 腾讯科技(深圳)有限公司 交通工具推荐方法、***及其设备

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112017326A (zh) * 2020-08-31 2020-12-01 华人运通(江苏)技术有限公司 一种车内用户状态监测***及方法

Also Published As

Publication number Publication date
CN111353104A (zh) 2020-06-30

Similar Documents

Publication Publication Date Title
CN110727499B (zh) 资源数据获取的方法、装置、计算机设备和存储介质
EP3418877B1 (en) Data writing and reading method and apparatus, and cloud storage system
US7644408B2 (en) System for assigning and monitoring grid jobs on a computing grid
US7392247B2 (en) Method and apparatus for fusing context data
US20160085829A1 (en) Query method for a distributed database system and query apparatus
US20190108369A1 (en) Method and apparatus for location-based recovery of stolen mobile devices
US20160377443A1 (en) Method and apparatus for determining a location of a point of interest
WO2016101749A1 (zh) 一种通讯群组的配置方法和装置
US20050108394A1 (en) Grid-based computing to search a network
EP3163466B1 (en) Trajectory data inquiry method and apparatus
US8239337B2 (en) Network device proximity data import based on weighting factor
WO2017133539A1 (zh) 业务数据的处理方法、装置及***
US20170187840A1 (en) System and method for acquiring, processing and updating global information
US9640074B2 (en) Permissions-based tracking of vehicle positions and arrival times
CN109120614B (zh) 基于分布式***的业务处理方法及装置
CN107070645B (zh) 比较数据表的数据的方法和***
US20170193061A1 (en) Systems and methods for search template generation
TW201724001A (zh) 全域資訊獲取、處理及更新方法、裝置和系統
CN109039803A (zh) 一种处理回调通知消息的方法、***及计算机设备
US9203897B1 (en) Systems and methods for a social network for roadside assistance
WO2020124618A1 (zh) 车辆查询方法、***、装置、计算机设备及存储介质
WO2021174917A1 (zh) 基于人工智能的poi定位方法、装置、计算机设备及介质
CN111352938B (zh) 数据处理方法、计算机设备及存储介质
CN113377817A (zh) 数据处理方法、***、设备及存储介质
CN103905512A (zh) 一种数据处理方法和设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18943912

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18943912

Country of ref document: EP

Kind code of ref document: A1