Gas station query method, gas station query system, gas station query equipment and readable storage medium

By receiving the user's gas station query request and combining the user's real-time location and driving direction, the complexity of the road network between the gas station and the user's location is calculated, which solves the problem of slow gas station query speed in the existing technology and achieves high efficiency and accuracy. Recommended gas stations.

CN118535810APending Publication Date: 2024-08-23PING AN PAY ELECTRONIC PAYMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410721565.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The existing gas station query methods are not intelligent enough, the query speed is slow and fail to consider actual application scenarios, making it impossible to efficiently and accurately query and recommend suitable gas stations.

Method used

By receiving the user's gas station query request, combined with the user's real-time location and driving direction, the complexity of the road network between the gas station and the user's location is calculated, and the most suitable gas station is screened and recommended.

Benefits of technology

Efficient and accurate gas station query and recommendation are realized to meet the actual needs of users and improve query speed and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535810A
    Figure CN118535810A
Patent Text Reader

Abstract

The invention relates to a gas station query method, system and device and a readable storage medium, and the method comprises the steps: receiving a gas station query request sent by a user client, the gas station query request carrying query azimuth information, and the query azimuth information comprises a real-time position and a walking direction of a user; determining the position of an intersection in the walking direction of a road section where the real-time position of the user is located according to the query azimuth information; searching a set number of gas stations according to the position of an intersection in the walking direction of a road section where the real-time position of the user is located; calculating the road network complexity of each gas station in the set number of gas stations and the real-time position of the user; and returning the gas station with the road network complexity meeting a set condition to the user client as a query result. And the gas station can be efficiently and accurately inquired and recommended by calculating the distance and the road network complexity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent transportation technology, and in particular to a gas station query method, system, device and readable storage medium. Background Art

[0002] With the popularity of cars and the various travel experiences that driving can bring to users, more and more users choose to drive their own cars when traveling, such as self-driving tours, etc. While enjoying these conveniences, you also need to consider the problem of the need to refuel the vehicle at any time.

[0003] Existing gas station query methods are not intelligent enough, have slow query speeds, and usually do not consider actual application scenarios. Summary of the invention

[0004] Based on this, the embodiments of the present application provide a gas station query method, system, device and readable storage medium, which efficiently and accurately query gas stations and make recommendations by calculating the distance and road network complexity.

[0005] In order to achieve the above objectives, the embodiments of the present application provide the following technical solutions:

[0006] According to a first aspect of an embodiment of the present application, a gas station query method is provided, the method comprising:

[0007] Receiving a gas station query request sent by a user client, the gas station query request carrying query location information, the query location information including the user's real-time location and travel direction;

[0008] Determine the position of the intersection on the travel direction of the road section where the user's real-time position is located according to the query position information;

[0009] Searching for a set number of gas stations based on the locations of intersections in the direction of travel of the road section where the user's real-time location is located;

[0010] Calculating the road network complexity between each of the set number of gas stations and the user's real-time location;

[0011] The gas stations with the road network complexity that meets the set conditions are returned to the user client as query results.

[0012] Optionally, calculating the road network complexity between each of the set number of gas stations and the real-time location of the user includes:

[0013] Calculating the distance between each of the set number of gas stations and the intersection in the travel direction of the road section where the user's real-time location is located;

[0014] The road network complexity of each gas station is determined according to the distance between each gas station and the intersection in the travel direction of the road section where the user's real-time location is located.

[0015] Optionally, calculating the distance between each of the set number of gas stations and the intersection in the travel direction of the road section where the user's real-time location is located includes:

[0016] According to a preset distance algorithm, the longitude and latitude of each of the set number of gas stations and the longitude and latitude of the intersection on the travel direction of the road section where the user's real-time location is located are calculated to obtain the distance between each of the set number of gas stations and the intersection on the travel direction of the road section where the user's real-time location is located.

[0017] Optionally, the method further comprises:

[0018] Gas stations whose distance from each of the set number of gas stations to the intersection in the travel direction of the road section where the user's real-time location is located is greater than a set distance threshold are filtered.

[0019] Optionally, determining the road network complexity of each gas station according to the distance between each gas station and the intersection in the travel direction of the road section where the user's real-time location is located includes:

[0020] The average value of the distance between the road where each gas station is located and the intersection in the travel direction of the road section where the user's real-time location is located is calculated as the road network complexity of each gas station.

[0021] Optionally, returning the gas stations with a road network complexity that meets the set conditions as query results to the user client includes:

[0022] sorting the road network complexity between each of the set number of gas stations and the user's real-time location;

[0023] Determine a second set number of gas stations in ascending order as gas stations that meet the set condition of road network complexity;

[0024] The location information of the second set number of gas stations is respectively obtained and returned to the user client as a query result.

[0025] Optionally, after receiving the gas station query request sent by the user client, the method further includes:

[0026] According to the query location information, query whether there is a corresponding gas station history query result in the database; if yes, obtain the corresponding gas station history query result and return it to the user client; if not, execute the next step.

[0027] According to a second aspect of an embodiment of the present application, a gas station query system is provided, the system comprising:

[0028] A request receiving module, used to receive a gas station query request sent by a user client, wherein the gas station query request carries query location information, and the query location information includes the user's real-time location and travel direction;

[0029] A road intersection determination module, used to determine the position of the road intersection on the travel direction of the road section where the user's real-time position is located according to the query position information;

[0030] A gas station search module, used to search for a set number of gas stations according to the locations of intersections on the travel direction of the road section where the user's real-time location is located;

[0031] A complexity calculation module, used to calculate the road network complexity between each of the set number of gas stations and the user's real-time location;

[0032] The query result returning module is used to return the gas stations with road network complexity that meet the set conditions as query results to the user client.

[0033] Optionally, the complexity calculation module is used to:

[0034] Calculating the distance between each of the set number of gas stations and the intersection in the travel direction of the road section where the user's real-time location is located;

[0035] The road network complexity of each gas station is determined according to the distance between each gas station and the intersection in the travel direction of the road section where the user's real-time location is located.

[0036] Optionally, calculating the distance between each of the set number of gas stations and the intersection in the travel direction of the road section where the user's real-time location is located includes:

[0037] According to a preset distance algorithm, the longitude and latitude of each of the set number of gas stations and the longitude and latitude of the intersection on the travel direction of the road section where the user's real-time location is located are calculated to obtain the distance between each of the set number of gas stations and the intersection on the travel direction of the road section where the user's real-time location is located.

[0038] Optionally, the system further comprises:

[0039] Gas stations whose distance from each of the set number of gas stations to the intersection in the travel direction of the road section where the user's real-time location is located is greater than a set distance threshold are filtered.

[0040] Optionally, determining the road network complexity of each gas station according to the distance between each gas station and the intersection in the travel direction of the road section where the user's real-time location is located includes:

[0041] The average value of the distance between the road where each gas station is located and the intersection in the travel direction of the road section where the user's real-time location is located is calculated as the road network complexity of each gas station.

[0042] Optionally, the query result return module is used to:

[0043] sorting the road network complexity between each of the set number of gas stations and the user's real-time location;

[0044] Determine a second set number of gas stations in ascending order as gas stations that meet the set condition of road network complexity;

[0045] The location information of the second set number of gas stations is respectively obtained and returned to the user client as a query result.

[0046] Optionally, after receiving the gas station query request sent by the user client, the system further includes:

[0047] The history query module is used to query whether there is a corresponding gas station history query result in the database according to the query direction information; if yes, obtain the corresponding gas station history query result and return it to the user client; if not, execute the next step.

[0048] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method described in the first aspect above.

[0049] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer-readable instructions are stored. The computer-readable instructions can be executed by a processor to implement the method described in the first aspect above.

[0050] In summary, the embodiments of the present application provide a gas station query method, system, device, and readable storage medium, which receive a gas station query request sent by a user client, the gas station query request carries query location information, and the query location information includes the user's real-time location and travel direction; determine the location of the intersection in the travel direction of the road section where the user's real-time location is located according to the query location information; search for a set number of gas stations according to the location of the intersection in the travel direction of the road section where the user's real-time location is located; calculate the road network complexity of each gas station in the set number of gas stations and the user's real-time location; return the gas stations with road network complexity that meet the set conditions as query results to the user client. By calculating the distance and road network complexity, gas stations can be efficiently and accurately queried and recommended. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.

[0052] The structures, proportions, sizes, etc. illustrated in this specification are only used to match the contents disclosed in the specification so as to facilitate understanding and reading by persons familiar with the technology. They are not used to limit the conditions under which the present invention can be implemented, and therefore have no substantial technical significance. Any structural modification, change in proportion or adjustment of size shall still fall within the scope of the technical contents disclosed in the present invention without affecting the effects and purposes that can be achieved by the present invention.

[0053] Figure 1 A flow chart of a gas station query method provided in an embodiment of the present application;

[0054] Figure 2 A block diagram of a gas station query system provided in an embodiment of the present application;

[0055] Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown;

[0056] Figure 4 A schematic diagram of a computer-readable storage medium provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0057] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0058] It can be understood that the terms "first", "second", etc. used in the present application can be used in this article to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from another element.

[0059] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] Figure 1 A gas station query method provided by an embodiment of the present application is shown, and the method includes:

[0061] Step 101: receiving a gas station query request sent by a user client, wherein the gas station query request carries query location information, and the query location information includes the user's real-time location and travel direction;

[0062] Step 102: determining the location of the intersection on the travel direction of the road section where the user's real-time location is located according to the query position information;

[0063] Step 103: searching for a set number of gas stations according to the locations of the intersections in the travel direction of the road section where the user's real-time location is located;

[0064] Step 104: Calculate the road network complexity between each gas station in the set number of gas stations and the user's real-time location;

[0065] Step 105: Return the gas stations with the road network complexity that meets the set conditions as query results to the user client.

[0066] In a possible implementation, in step 104, calculating the road network complexity between each of the set number of gas stations and the user's real-time location includes:

[0067] Calculate the distance between each of the set number of gas stations and the intersection on the travel direction of the road section where the user's real-time location is located; determine the road network complexity of each gas station based on the distance between each gas station and the intersection on the travel direction of the road section where the user's real-time location is located.

[0068] In a possible implementation, calculating the distance between each of the set number of gas stations and the intersection in the travel direction of the road section where the user's real-time location is located includes:

[0069] According to a preset distance algorithm, the longitude and latitude of each of the set number of gas stations and the longitude and latitude of the intersection on the travel direction of the road section where the user's real-time location is located are calculated to obtain the distance between each of the set number of gas stations and the intersection on the travel direction of the road section where the user's real-time location is located.

[0070] In a possible implementation, the method further includes:

[0071] Gas stations whose distance from each of the set number of gas stations to the intersection in the travel direction of the road section where the user's real-time location is located is greater than a set distance threshold are filtered.

[0072] In a possible implementation, determining the road network complexity of each gas station according to the distance between each gas station and the intersection in the travel direction of the road section where the user's real-time location is located includes:

[0073] The average value of the distance between the road where each gas station is located and the intersection in the travel direction of the road section where the user's real-time location is located is calculated as the road network complexity of each gas station.

[0074] In a possible implementation, in step 105, returning the gas stations with the road network complexity that meets the set conditions as the query results to the user client includes:

[0075] Sort the road network complexity between each of the set number of gas stations and the user's real-time location; determine a second set number of gas stations sorted from small to large as gas stations with a road network complexity that meets the set conditions; and obtain the location information of the second set number of gas stations as query results and return them to the user client.

[0076] In a possible implementation, after receiving the gas station query request sent by the user client in step 101, the method further includes:

[0077] According to the query location information, query whether there is a corresponding gas station history query result in the database; if yes, obtain the corresponding gas station history query result and return it to the user client; if not, execute the next step.

[0078] In a possible implementation, in step 101, the gas station query request may be sent by a device such as a smart phone, a tablet computer, a laptop computer, a desktop computer, or a peripheral device such as a handle or a touch screen.

[0079] In a possible implementation, when the car user needs to refuel the target car, the car user can perform relevant operations on the gas station recommendation interface output by the terminal to send a gas station query request for the target car to the server. The terminal used by the car can display a gas station query interface on the terminal screen. If the car user wants to refuel the target car, the car user can enter relevant information for query in the information setting area. For example, the relevant information can be relevant information of the target car, such as the car location, average speed, average fuel consumption, refueling oil number, refueling amount, etc.

[0080] In a possible implementation, when obtaining the gas station location information of multiple gas stations, the relevant information of the gas station (such as the gas station name, gas station location information, etc.) can be pre-stored in the local space, wherein, when storing, the gas station name of the gas station can be used as the primary key for storage, and for each gas station, other information can also be stored, such as the gas station location information, the number of refueling oil available at the gas station, the refueling price corresponding to each refueling oil number, etc. That is, when there is a refueling demand for the target car, the gas station location information of multiple gas stations can be directly obtained from the local cache. The number of gas stations stored in the local space is very large, such as including hundreds or thousands of gas stations. In order to reduce the subsequent calculation pressure, the gas stations stored in the local space can be first screened to reduce the number of subsequent gas station queries. For example, the screening can be based on the location distance between the gas station and the target car, the refueling oil number of the target car, etc.

[0081] The method provided in the embodiments of the present application is described in detail below.

[0082] When determining the query geographic location information according to the user query location, the user query location can be a GPS location or a street name and number. The location of the car is only the GPS positioning, which can be converted into a street address range, such as No. 1 to No. 10 Kaibin Road, Shanghai.

[0083] The location information involved in this application (such as gas station location information and car location information) may be longitude and latitude information, and the gas station location information may include the gas station longitude and the gas station latitude. In order to determine the location distance between each gas station and the target car, the car location information of the target car may also be obtained, and the car location information may include the car longitude and the car latitude, so as to determine the location distance between each gas station and the target car based on the gas station location information and the car location information.

[0084] Furthermore, the distance from the real-time location to the nearby intersection is determined based on the real-time location and driving direction, and the distance from each gas station to the nearby intersection (the distance of the planned route superimposed) is calculated. The distance of each gas station is sorted (heap sort of a binary tree), and the N gas stations with the shortest distances are sorted and displayed to the inquiring user.

[0085] The actual distance is the superposition of multiple distance segments. The specific roads to take and the number of traffic lights to pass are exponential in route planning. Therefore, the embodiment of the present application uses a dynamic programming algorithm to calculate the distance between the target vehicle and each gas station in the city, and considers the gas stations within the set distance threshold. The quick sorting algorithm is further used to sort the distances of nearby gas stations. The sorting can use a binary tree heap sorting method.

[0086] The following is an analysis of the principle and process of reducing the difficulty of binary tree heap sort by 10 times. Take 25 athletes running a race and selecting the top 3 as an example.

[0087] Step 1: put all the numbers into the leaf nodes of the binary tree, and then select the largest one by comparison in pairs according to the elimination method; Step 2: for the second largest number, select from all the numbers eliminated by the largest number, and so on for the third and fourth. The complexity of this algorithm is that the difficulty of sorting all the numbers is N*LOG(N), and the difficulty of selecting the first one is only N, not N*LOG(N), and the second one is LOG(N) (mathematically, it can be proved, so I won’t go into details here). Therefore, in the embodiment of this application, you only need to find the nearest few gas stations and sort all the gas stations by distance.

[0088] In summary, the embodiment of the present application provides a gas station query method, which receives a gas station query request sent by a user client, the gas station query request carries query location information, and the query location information includes the user's real-time location and the direction of travel; determines the location of the intersection in the direction of travel of the road section where the user's real-time location is located according to the query location information; searches for a set number of gas stations according to the location of the intersection in the direction of travel of the road section where the user's real-time location is located; calculates the road network complexity of each gas station in the set number of gas stations and the user's real-time location; and returns the gas stations with road network complexity that meets the set conditions as query results to the user client. By calculating the distance and road network complexity, gas stations can be efficiently and accurately queried and recommended.

[0089] Based on the same technical concept, the embodiment of the present application also provides a gas station query system, such as Figure 2 As shown, the system comprises:

[0090] The request receiving module 201 is used to receive a gas station query request sent by a user client, wherein the gas station query request carries query location information, and the query location information includes the user's real-time location and travel direction;

[0091] An intersection determination module 202 is used to determine the location of an intersection on the travel direction of the road section where the user's real-time location is located according to the query position information;

[0092] A gas station search module 203 is used to search for a set number of gas stations according to the locations of intersections in the travel direction of the road section where the user's real-time location is located;

[0093] The complexity calculation module 204 is used to calculate the road network complexity between each gas station in the set number of gas stations and the real-time location of the user;

[0094] The query result returning module 205 is used to return the gas stations with the road network complexity that meets the set conditions as query results to the user client.

[0095] Optionally, the complexity calculation module 204 is used to:

[0096] Calculating the distance between each of the set number of gas stations and the intersection in the travel direction of the road section where the user's real-time location is located;

[0097] The road network complexity of each gas station is determined according to the distance between each gas station and the intersection in the travel direction of the road section where the user's real-time location is located.

[0098] Optionally, calculating the distance between each of the set number of gas stations and the intersection in the travel direction of the road section where the user's real-time location is located includes:

[0099] According to a preset distance algorithm, the longitude and latitude of each of the set number of gas stations and the longitude and latitude of the intersection on the travel direction of the road section where the user's real-time location is located are calculated to obtain the distance between each of the set number of gas stations and the intersection on the travel direction of the road section where the user's real-time location is located.

[0100] Optionally, the system further comprises:

[0101] Gas stations whose distance from each of the set number of gas stations to the intersection in the travel direction of the road section where the user's real-time location is located is greater than a set distance threshold are filtered.

[0102] Optionally, determining the road network complexity of each gas station according to the distance between each gas station and the intersection in the travel direction of the road section where the user's real-time location is located includes:

[0103] The average value of the distance between the road where each gas station is located and the intersection in the travel direction of the road section where the user's real-time location is located is calculated as the road network complexity of each gas station.

[0104] Optionally, the query result returning module 205 is used to:

[0105] sorting the road network complexity between each of the set number of gas stations and the user's real-time location;

[0106] Determine a second set number of gas stations in ascending order as gas stations that meet the set condition of road network complexity;

[0107] The location information of the second set number of gas stations is respectively obtained and returned to the user client as a query result.

[0108] Optionally, after receiving the gas station query request sent by the user client, the system further includes:

[0109] The history query module is used to query whether there is a corresponding gas station history query result in the database according to the query direction information; if yes, obtain the corresponding gas station history query result and return it to the user client; if not, execute the next step.

[0110] The present application also provides an electronic device corresponding to the method provided in the above embodiment. Figure 3 , which shows a schematic diagram of an electronic device provided by some embodiments of the present application. The electronic device 20 may include: a processor 200, a memory 201, a bus 202 and a communication interface 203, wherein the processor 200, the communication interface 203 and the memory 201 are connected via the bus 202; the memory 201 stores a computer program that can be run on the processor 200, and the processor 200 executes the method provided by any of the aforementioned embodiments of the present application when running the computer program.

[0111] The memory 201 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one physical port 203 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.

[0112] The bus 202 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 201 is used to store programs, and the processor 200 executes the programs after receiving execution instructions. The method disclosed in any implementation of the aforementioned embodiment of the present application may be applied to the processor 200, or implemented by the processor 200.

[0113] The processor 200 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 200. The above processor 200 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a readily available programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 201, and the processor 200 reads the information in the memory 201 and completes the steps of the above method in combination with its hardware.

[0114] The electronic device provided in the embodiment of the present application and the method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, operated or implemented by them.

[0115] The present application also provides a computer-readable storage medium corresponding to the method provided in the above embodiment. Figure 4 The computer-readable storage medium shown is a CD 30 on which a computer program (ie, a program product) is stored. When the computer program is run by a processor, the method provided in any of the aforementioned embodiments is executed.

[0116] It should be noted that examples of the computer-readable storage medium may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.

[0117] The computer-readable storage medium provided in the above-mentioned embodiments of the present application and the method provided in the embodiments of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.

[0118] It should be noted that:

[0119] The algorithm and display provided herein are not inherently related to any particular computer, virtual device or other equipment. Various general purpose devices can also be used together with the teachings based on this. According to the above description, it is obvious to construct the structure required for this type of device. In addition, the application is not directed to any specific programming language. It should be understood that the content of the application described herein can be realized using various programming languages, and the description of the specific language above is to disclose the best mode of implementation of the application.

[0120] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0121] Similarly, it should be understood that in order to streamline the present application and help understand one or more of the various inventive aspects, in the above description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the disclosed method should not be interpreted as reflecting the following intention: the claimed application requires more features than the features clearly stated in each claim. More specifically, as reflected in the claims below, the inventive aspects are less than all the features of the single embodiment disclosed above. Therefore, the claims following the specific embodiment are hereby expressly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present application.

[0122] Those skilled in the art will appreciate that the modules in the devices in the embodiments may be adaptively changed and arranged in one or more devices different from the embodiments. The modules or units or components in the embodiments may be combined into one module or unit or component, and in addition they may be divided into a plurality of submodules or subunits or subcomponents. Except that at least some of such features and / or processes or units are mutually exclusive, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this manner may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature providing the same, equivalent or similar purpose.

[0123] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims below, any one of the claimed embodiments may be used in any combination.

[0124] The various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some or all components in the creation device of the virtual machine according to the embodiment of the present application. The application can also be implemented as a device or device program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0125] It should be noted that the above embodiments illustrate the present application rather than limit the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets should not be constructed as a limitation to the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present application may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.

[0126] The above is only a preferred specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or replacements that can be easily thought of by any technician familiar with the technical field within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims. A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

[0127] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0128] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A gas station query method, characterized in that: The method comprises: Receiving a gas station query request sent by a user client, the gas station query request carrying query location information, the query location information including the user's real-time location and travel direction; Determine the position of the intersection on the travel direction of the road section where the user's real-time position is located according to the query position information; Searching for a set number of gas stations based on the locations of intersections in the direction of travel of the road section where the user's real-time location is located; Calculating the road network complexity between each of the set number of gas stations and the user's real-time location; The gas stations with the road network complexity that meets the set conditions are returned to the user client as query results.

2. The method according to claim 1, characterized in that Calculating the road network complexity between each of the set number of gas stations and the real-time location of the user, including: Calculating the distance between each of the set number of gas stations and the intersection in the travel direction of the road section where the user's real-time location is located; The road network complexity of each gas station is determined according to the distance between each gas station and the intersection in the travel direction of the road section where the user's real-time location is located.

3. The method according to claim 2, characterized in that Calculating the distance between each of the set number of gas stations and the intersection in the travel direction of the road section where the user's real-time location is located, comprising: According to a preset distance algorithm, the longitude and latitude of each of the set number of gas stations and the longitude and latitude of the intersection on the travel direction of the road section where the user's real-time location is located are calculated to obtain the distance between each of the set number of gas stations and the intersection on the travel direction of the road section where the user's real-time location is located.

4. The method according to claim 3, characterized in that The method further comprises: Gas stations whose distance from each of the set number of gas stations to the intersection in the travel direction of the road section where the user's real-time location is located is greater than a set distance threshold are filtered.

5. The method according to claim 2, characterized in that Determining the road network complexity of each gas station according to the distance between each gas station and the intersection in the travel direction of the road section where the user's real-time location is located includes: The average value of the distance between the road where each gas station is located and the intersection in the travel direction of the road section where the user's real-time location is located is calculated as the road network complexity of each gas station.

6. The method according to claim 1, characterized in that Returning the gas stations of the road network complexity that meet the set conditions as the query results to the user client, including: sorting the road network complexity between each of the set number of gas stations and the user's real-time location; Determine a second set number of gas stations in ascending order as gas stations that meet the set condition of road network complexity; The location information of the second set number of gas stations is respectively obtained and returned to the user client as a query result.

7. The method according to claim 1, characterized in that After receiving the gas station query request sent by the user client, the method further includes: According to the query location information, query whether there is a corresponding gas station history query result in the database; if yes, obtain the corresponding gas station history query result and return it to the user client; if not, execute the next step.

8. A gas station query system, characterized in that: The system comprises: A request receiving module, used to receive a gas station query request sent by a user client, wherein the gas station query request carries query location information, and the query location information includes the user's real-time location and travel direction; A road intersection determination module, used to determine the position of the road intersection on the travel direction of the road section where the user's real-time position is located according to the query position information; A gas station search module, used to search for a set number of gas stations according to the locations of intersections on the travel direction of the road section where the user's real-time location is located; A complexity calculation module, used to calculate the road network complexity between each of the set number of gas stations and the user's real-time location; The query result returning module is used to return the gas stations with road network complexity that meet the set conditions as query results to the user client.

9. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and the computer-readable instructions can be executed by a processor to implement the method according to any one of claims 1-7.