CN116108293A - Oil price information display method, device, equipment and storage medium - Google Patents

Oil price information display method, device, equipment and storage medium Download PDF

Info

Publication number
CN116108293A
CN116108293A CN202310382160.6A CN202310382160A CN116108293A CN 116108293 A CN116108293 A CN 116108293A CN 202310382160 A CN202310382160 A CN 202310382160A CN 116108293 A CN116108293 A CN 116108293A
Authority
CN
China
Prior art keywords
information
preset range
oil price
price
fueling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310382160.6A
Other languages
Chinese (zh)
Inventor
王令
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qiansan Beijing Technology Co ltd
Original Assignee
Qiansan Beijing Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qiansan Beijing Technology Co ltd filed Critical Qiansan Beijing Technology Co ltd
Priority to CN202310382160.6A priority Critical patent/CN116108293A/en
Publication of CN116108293A publication Critical patent/CN116108293A/en
Pending legal-status Critical Current

Links

Images

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/9538Presentation of query results
    • 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

Abstract

The application relates to a method, a device, equipment and a storage medium for displaying oil price information. The main technical scheme comprises the following steps: acquiring current position information of a user, acquiring first gas station information according to the current position information, and calculating the lowest oil price in a first preset range according to the first gas station information; acquiring second gas station information according to the current position information; calculating average oil price in a second preset range according to the information of each second gas station, and acquiring national standard oil price in the second preset range; and displaying the information of each first gas station, and screening at least one from the lowest oil price, the average oil price and the national standard oil price for display. According to the method and the device, the first gas station information, the national standard oil price, the average oil price and the lowest oil price are unified to the vehicle-mounted terminal for display comparison, so that a user can intuitively see the first gas station information and select the oil station which is finally wanted to go to through comparison, and the effects of saving selection time and improving the oil filling efficiency are achieved.

Description

Oil price information display method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of oil price display technologies, and in particular, to a method, an apparatus, a device, and a storage medium for displaying oil price information.
Background
With the rapid development of automobile technology, oil stations are greatly expanded, and with the increase of the number of the oil stations, the selection of users is more, and here, a net car driver is taken as an example, and because the daily car consumption of the net car driver is extremely large, oil is basically required to be added once every day; the daily fueling price of drivers is about 200 yuan, and the fueling cost of one month is about 6000 yuan or more, so most drivers are very critical in selecting oil stations, and can select oil stations with low price per liter and good facilities.
In the conventional implementation manner, when a network bus driver selects an oil station, the network bus driver needs to drive to a corresponding gas station to check the price of the oil station to determine whether to refuel at the oil station, and if the price is not proper, the network bus driver may change to another oil station, at this time, the network bus driver needs to drive to another oil station again to know the specific price, the prices of a plurality of oil stations cannot be compared at the same time, and whether the current price of the oil station is low cannot be determined.
Disclosure of Invention
Based on the above, the application provides a method, a device, equipment and a storage medium for displaying oil price information, which are used for displaying and comparing first oil station information, national standard oil price, average oil price and minimum oil price on a vehicle-mounted terminal, so that a user can intuitively see the information of each first oil station and select an oil station which is finally expected to go to through comparison, thereby saving selection time and improving the oiling efficiency.
In a first aspect, there is provided an oil price information display method, the method comprising:
acquiring current position information of a user, wherein the current position information is information of the current position of the user;
acquiring first gas station information according to the current position information, wherein the first gas station information is information of gas stations in a first preset range, and calculating the lowest oil price in the first preset range according to the first gas station information;
acquiring second gas station information according to the current position information, wherein the second gas station information is information of gas stations in a second preset range, and the second preset range is larger than the first preset range;
calculating average oil price in a second preset range according to the information of each second gas station, and acquiring national standard oil price in the second preset range;
and displaying the information of each first gas station, and screening at least one from the lowest oil price, the average oil price and the national standard oil price for display.
According to one possible implementation manner in the embodiment of the present application, at least one of the lowest oil price, the average oil price and the national standard fueling price is selected for display, including:
when the lowest oil price is greater than or equal to the average oil price, only displaying the average oil price and the national standard oil price;
and when the lowest oil price and the average oil price are both larger than or equal to the national standard oil price, only the national standard oil price is displayed.
According to one implementation manner in the embodiment of the application, at least one of the lowest oil price, the average oil price and the national standard fueling price is selected for display, and the method further comprises the following steps:
and when the first gas station does not exist in the first preset range, displaying only the national standard oil price.
According to one implementation manner in the embodiments of the present application, the first fuel station information includes a fuel price of each first fuel station and a total number of the first fuel stations, and the method further includes:
when the total number of the first gas stations in the first preset range is 0, automatically increasing the first preset range according to the preset increment, and,
and when the total number of the first gas stations in the first preset range is larger than the number of the preset gas stations, automatically reducing the first preset range according to the preset decrement.
According to an implementation manner in the embodiment of the present application, the first filling station information further includes a detailed address of each first filling station, and displaying each first filling station information includes:
displaying the information of each first gas station according to the oil numbers, the intelligent ordering rules and the first preset range; wherein, the oil number comprises any one of 92 numbers, 95 numbers and 98 numbers; the intelligent ordering rule comprises any one of a high-low rule according to the fueling price of each first fueling station or a distance rule according to the detailed address of each first fueling station from the current position of the user; the first preset range includes any one of 10km, 20km, 30km, 40km, and 50 km.
According to one implementation manner in the embodiment of the application, after the oil number is changed, the first gas station information is acquired again according to the current position information of the user;
if the information of the first gas station is consistent before and after the change of the oil number, displaying the lowest oil price in a first preset range before the change of the oil number;
if the first filling station information changes before and after the oil number change, the lowest oil price in the first preset range is recalculated according to the changed first filling station information and displayed.
According to an implementation manner in the embodiments of the present application, calculating the lowest fuel price in the first preset range according to the information of each first fuel station includes:
sequencing the fueling prices of the first fueling stations from low to high, and selecting the lowest fueling price of the first fueling station as the lowest fueling price in a first preset range;
the second filling station information includes a filling price of each second filling station and a total number of second filling stations, calculates an average fuel price in a second preset range according to each second filling station information, and includes:
adding the fueling prices of the second fueling stations to obtain a total fueling price;
and dividing the total oil price with the total number of the second gas stations to obtain the average oil price in the second preset range.
In a second aspect, there is provided an oil price information display device comprising:
the first acquisition module is used for acquiring the current position information of the user, wherein the current position information is the information of the current position of the user;
the first calculation module is used for acquiring first gas station information according to the current position information, wherein the first gas station information is information of gas stations in a first preset range, and calculating the lowest oil price in the first preset range according to the first gas station information;
the second acquisition module is used for acquiring second gas station information according to the current position information, wherein the second gas station information is information of gas stations in a second preset range, and the second preset range is larger than the first preset range;
the second calculation module is used for calculating the average oil price in a second preset range according to the information of each second gas station and acquiring the national standard oil price in the second preset range;
and the display module is used for displaying the information of each first gas station and screening and displaying at least one of the lowest oil price, the average oil price and the national standard oil price.
In a third aspect, there is provided a computer device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores computer instructions executable by the at least one processor to enable the at least one processor to perform the method referred to in the first aspect above.
In a fourth aspect, there is provided a computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method referred to in the first aspect above.
According to the technical content provided by the embodiment of the application, the current position information of the user is obtained; acquiring first gas station information according to the current position information, wherein the first gas station information is information of gas stations in a first preset range, and calculating the lowest oil price in the first preset range according to the first gas station information; acquiring second gas station information according to the current position information, wherein the second gas station information is information of gas stations in a second preset range, and the second preset range is larger than the first preset range; calculating average oil price in a second preset range according to the information of each second gas station, and acquiring national standard oil price in the second preset range; and displaying the information of each first gas station, and screening at least one from the lowest oil price, the average oil price and the national standard oil price for display. According to the operation, the first gas station information, the national standard oil price, the average oil price and the lowest oil price are unified to the vehicle-mounted terminal for display comparison, so that a user can intuitively see the first gas station information and select the oil station which is finally expected to go to through comparison, and the effects of saving the selection time and improving the oil filling efficiency are achieved.
Drawings
FIG. 1 is a flow chart of a method for displaying oil price information according to an embodiment;
FIG. 2 is a schematic diagram of a preferred flow of a method for displaying oil price information according to one embodiment;
FIG. 3 is a block diagram showing the structure of an oil price information display device according to an embodiment;
fig. 4 is a schematic structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
In one or more embodiments, the method for displaying oil price information provided by the application can be applied to computer equipment, and the computer equipment can comprise a terminal or a server. Specifically, the computer equipment acquires current position information of a user, wherein the current position information is information of the current position of the user; acquiring first gas station information according to the current position information, wherein the first gas station information is information of gas stations in a first preset range, and calculating the lowest oil price in the first preset range according to the first gas station information; acquiring second gas station information according to the current position information, wherein the second gas station information is information of gas stations in a second preset range, and the second preset range is larger than the first preset range; calculating average oil price in a second preset range according to the information of each second gas station, and acquiring national standard oil price in the second preset range; and displaying the information of each first gas station, and screening at least one from the lowest oil price, the average oil price and the national standard oil price for display. The terminal may be, but is not limited to, a vehicle-mounted terminal.
Fig. 1 is a flowchart of a method for displaying oil price information, which is provided in an embodiment of the present application, and the method may be executed by a vehicle-mounted terminal. As shown in fig. 1, the method may include the steps of:
step S101: and acquiring the current position information of the user.
The current position information is information of the current position of the user.
Specifically, the vehicle-mounted terminal acquires information of the current position of the user, so that the display of the final oil price information is realized based on the information of the current position of the user.
Step S103: and acquiring first gas station information according to the current position information, and calculating the lowest oil price in a first preset range according to the first gas station information.
The first preset range is a screening range specified by a user, the first gas stations are gas stations in the first preset range, the first gas station information is information of the first gas stations, and the first gas station information comprises, but is not limited to, a filling price of each first gas station and a first total number of gas stations.
Specifically, the first gas station information is acquired according to the current position information. Taking the network about car driver as an example, assuming that the first preset range is 50km, on a certain section of road, the network about car driver finds that the oil quantity is insufficient and needs to be added, searching information of all first gas stations within 50km from the current position of the network about car driver as an origin, and calculating the lowest oil price in the first preset range according to the information of each first gas station.
In one implementation, the fueling prices of the first fueling stations are ranked from low to high, and the lowest fueling price of the first fueling station is selected as the lowest fueling price within the first preset range. Here, assuming that 3 first fuel stations are searched, the fuel prices of each first fuel station are A1, A2 and A3, and the fuel prices of A1, A2 and A3 are sorted from low to high, and the lowest fuel price in the first preset range is selected as the lowest fuel price.
Of course, other ways than the above can be used to determine the minimum oil price. There is no particular limitation herein.
Step S105: and acquiring the information of the second gas station according to the current position information.
The second gas station information is information of gas stations in a second preset range, the second preset range refers to an area which comprises and is larger than the first preset range, the second preset range can be divided by administrative area boundaries, for example, the second preset range can be a village area, a town area, a city area or the like; and the second fuel station information includes, but is not limited to, a fuel price for each second fuel station and a second fuel station total number.
Specifically, the second gas station information may be obtained according to the current location information, where the second gas station information is information of gas stations in a second preset range, and the second preset range includes and is greater than the first preset range, so that the total number of the second gas stations is also greater than or equal to the total number of the first gas stations.
Step S107: and calculating the average oil price in a second preset range according to the information of each second gas station, and acquiring the national standard oil price in the second preset range.
The national standard oil price refers to the oil price meeting the international standard, and the national standard oil price in the second preset range can be obtained by accessing and calling the international standard oil price information updated on the oil price website in real time.
In one implementation, the fueling prices of the second fueling stations are summed to obtain a total fueling price; and dividing the total oil price with the total number of the second gas stations to obtain the average oil price in the second preset range. Still taking the network about car driver as an example, assume that the second preset range refers to a city area, and searching is performed by using the current city area of the network about car driver. Assuming that 5 second fuel stations are searched, the fuel prices of each second fuel station are respectively denoted as B1, B2, B3, B4 and B5, and B1, B2, B3, B4 and B5 are added to obtain a total fuel price denoted by Bz, the average fuel price in the second preset range is denoted by Ba, that is, ba=bz/5.
Of course, other ways than the above can be used to determine the average oil price. And will not be described in detail herein.
Step S109: and displaying the information of each first gas station, and screening at least one from the lowest oil price, the average oil price and the national standard oil price for display.
Specifically, the first fuel station information is displayed, and the first fuel station information is displayed in the form of a fuel card. The fueling card comprises a first fueling station picture, a first fueling station name, a distance between the first fueling station and the current position information of the user, a detailed address of the first fueling station and a fueling price of the first fueling station; and at least one of the lowest oil price, the average oil price and the national standard oil price is selected for display.
It can be seen that the embodiment of the application obtains the current position information of the user; acquiring first gas station information according to the current position information, wherein the first gas station information is information of gas stations in a first preset range, and calculating the lowest oil price in the first preset range according to the first gas station information; acquiring second gas station information according to the current position information, wherein the second gas station information is information of gas stations in a second preset range, and the second preset range is larger than the first preset range; calculating average oil price in a second preset range according to the information of each second gas station, and acquiring national standard oil price in the second preset range; and displaying the information of each first gas station, and screening at least one from the lowest oil price, the average oil price and the national standard oil price for display. According to the operation, the first gas station information, the national standard oil price, the average oil price and the lowest oil price are unified to the vehicle-mounted terminal for display comparison, so that a user can intuitively see the first gas station information and select the oil station which is finally expected to go to through comparison, and the effects of saving the selection time and improving the oil filling efficiency are achieved.
The following describes in detail the above-mentioned step 109 "and the selection of at least one from among the lowest oil price, the average oil price and the national standard fueling price" with reference to examples.
In one possible manner, when the lowest oil price in the first preset range is greater than or equal to the average oil price in the second preset range, only the average oil price and the national standard oil price are displayed. Here, since the lowest oil price in the first preset range is greater than the average oil price in the second preset range, it is explained that the oil price of the gas station in the first preset range cannot meet the demand of the user for price, and therefore, only the average oil price and the national standard oil price can be displayed. Further, when the lowest oil price in the first preset range is greater than the average oil price in the second preset range, the terminal may expand the first preset range by a certain proportion, for example, each time the first preset range is expanded by 10%, so as to obtain an expanded range, the expanded range is greater than the first preset range and less than the second preset range, then calculate the lowest oil price of the gas station in the expanded range, continuously compare the lowest oil price of the expanded range with the average oil price in the second preset range, if the lowest oil price in the expanded range is still greater than the average oil price in the second preset range, continue to expand, and so on until the lowest oil price in the expanded range is less than the average oil price in the second preset range, at this time, display the information of the lowest oil price in the current expanded range and the gas station corresponding to the lowest oil price.
In one implementation manner, when the lowest oil price in the first preset range is smaller than the average oil price in the second preset range, displaying the lowest oil price in the first preset range, and further displaying the related information of the gas station corresponding to the lowest oil price in the first preset range. At this time, the average oil price and the national standard oil price in the second preset range may or may not be displayed.
In another implementation, only the national standard oil price is displayed when both the minimum oil price and the average oil price are greater than or equal to the national standard oil price. Here, since the lowest oil price in the first preset range and the average oil price in the second preset range are both greater than the national standard oil price, it is indicated that the oil prices of the gas stations in the first preset range and the second preset range are generally higher, and at this time, a full search mode may be entered, one or more gas stations with oil prices lower than the national standard oil price may be selected from all the gas stations in the second preset range, and the selected gas stations are sorted in distance, so that the gas stations with prices lower than the national standard oil price and closer to the national standard oil price are preferentially displayed. By adopting the scheme, hierarchical search can be realized without directly entering a full-scale search mode, the lowest price of the first preset range is compared with the average price of the second preset range and the national standard price, the search range is expanded hierarchically, and the full-scale search mode is only entered under certain conditions, so that the gas station meeting the price advantage and meeting the distance advantage can be searched and displayed, and the overall search efficiency and accuracy can be improved.
In another possible way, only the national standard oil price is displayed when the first filling station is not present within the first preset range. Here, the first filling station information is acquired according to the current location information of the user, but if the first filling station information is not acquired, that is, the first filling station is not present in the first preset range, only the national standard oil price may be displayed.
By comparing the lowest oil price, the average oil price and the national standard oil price, at least one of the lowest oil price, the average oil price and the national standard oil adding price can be screened and displayed, so that a user can refer to the fuel and can be helped to select the first fuel station to which the user wants to go more quickly.
In one embodiment, the method further comprises: when the total number of the first gas stations in the first preset range is 0, the first preset range is automatically increased according to the preset increment, and when the total number of the first gas stations in the first preset range is larger than the preset gas stations, the first preset range is automatically reduced according to the preset decrement.
Wherein, the preset increment can be increased by 10km each time; the preset decrement may be reduced by 10km each time; the preset number of gas stations may be 5.
Specifically, since the first preset range is preset in advance, it is also uncertain how many first fuel stations will be searched within the first preset range at this time.
In one implementation manner, if the total number of the first gas stations searched in the first preset range is 0, the first preset range may be automatically increased according to the preset increment, that is, if the first preset range is 20km at this time, the first preset range will be automatically increased to 30km, and then the searching is performed again.
In another implementation manner, if the total number of the first gas stations searched in the first preset range is greater than 5, the first preset range may be automatically reduced according to a preset decrement. If the first preset range is 50km, the first preset range is automatically reduced to 40km, and then searching is performed again.
By the operation, the selection opportunity of the user for the first gas station can be increased by increasing the first preset range; by reducing the first preset range, more accurate information of the first gas station can be provided for the user, so that the time for the user to select the gas station is greatly reduced, and the effect of improving the refueling efficiency of the user is achieved.
In one embodiment, displaying each first fueling station information includes: and displaying the information of each first gas station according to the oil numbers, the intelligent ordering rules and the first preset range.
Wherein, the oil number comprises any one of 92 numbers, 95 numbers and 98 numbers; the intelligent ordering rule comprises any one of a high-low rule according to the fueling price of each first fueling station or a distance rule according to the detailed address of each first fueling station from the current position of the user; the first preset range includes any one of 10km, 20km, 30km, 40km, and 50 km.
Here, the information of each first gas station is displayed according to the oil number, the intelligent ordering rule and the first preset range. Assuming that the oil number is 92, the intelligent ordering rule is a rule of height according to the oiling price of each first filling station, and the first preset range is 30km. In other words, the fuel filling price of the No. 92 fuel of each first fuel station information within 30km is displayed in the form of a fuel filling card from top to bottom.
According to the operation, the information of each first gas station is displayed according to the oil numbers, the intelligent ordering rules and the first preset range, so that a user can conveniently and quickly select the gas station with cheap bidding price and relatively close distance to the user.
In one embodiment, the method further comprises: after the oil number is changed, the information of the first gas station is acquired again according to the current position information of the user; if the information of the first gas station is consistent before and after the change of the oil number, displaying the lowest oil price in a first preset range before the change of the oil number; if the first filling station information changes before and after the oil number change, the lowest oil price in the first preset range is recalculated according to the changed first filling station information and displayed.
Specifically, after the oil number is changed, the first gas station information is acquired again according to the current position information of the user. Here, it is assumed that the search is started according to the number 92 oil, and the user needs to add the number 95 oil at this time, the user can change the oil number, after the change, the vehicle-mounted terminal can reacquire the first gas station information according to the current position information of the user, and compares the reacquired first gas station information with the first gas station information before the oil number change, if the first gas station information keeps consistent before and after the oil number change, which means that no change exists, the lowest oil price in the first preset range before the oil number change is still adopted for display, and the calculation is not needed. If the first fuel station information changes before and after the fuel number change, the lowest fuel price may also change, so that the lowest fuel price in the first preset range needs to be recalculated and displayed according to each changed first fuel station information.
According to the operation, the first gas station information before and after the oil number is changed is compared to determine whether the minimum oil price needs to be recalculated, so that the waste of calculation resources caused by direct recalculation is prevented, and meanwhile, the accuracy of the displayed minimum oil price can be ensured when the information is changed.
In connection with the implementation of the above embodiments, a preferred method flow provided in connection with the embodiments of the present application is described below by way of example in connection with fig. 2. As shown in fig. 2, the method may include the steps of:
step S201, obtaining the current position information of the user, wherein the current position information is the information of the current position of the user.
Step S202, first gas station information is obtained according to the current position information, the first gas station information is information of gas stations in a first preset range, and the first gas station information comprises the fuel price of each first gas station.
Step S203, the fueling prices of the first fueling stations are ranked from low to high, and the lowest fueling price of the first fueling station is selected as the lowest fueling price in the first preset range.
Step S204, second gas station information is obtained according to the current position information, the second gas station information is information of gas stations in a second preset range, and the second gas station information comprises the fuel filling price of each second gas station and the total number of the second gas stations.
Step S205, the fueling prices of the second fueling stations are summed to obtain a total fueling price.
And S206, dividing the total fuel price with the total number of the second fuel stations to obtain the average fuel price in the second preset range.
Step S207, obtaining the national standard oil price in the second preset range.
And step S208, displaying the information of each first gas station according to the oil numbers, the intelligent ordering rules and the first preset range.
And step S209, screening at least one from the lowest oil price, the average oil price and the national standard oil price for display.
In step S2091, when the lowest oil price is equal to or higher than the average oil price, only the average oil price and the national standard oil price are displayed.
And step S2092, only displaying the national standard oil price when the lowest oil price and the average oil price are both greater than or equal to the national standard oil price.
In step S2093, when the first gas station does not exist in the first preset range, only the national standard oil price is displayed.
It should be understood that, although the steps in the flowcharts of fig. 1-2 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly stated in the present application, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1-2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with at least a portion of the other steps or sub-steps or stages of other steps.
The method embodiment described above may be applied to a variety of application scenarios, which may include, but are not limited to, the following application scenarios:
after the vehicle-mounted terminal acquires the current position information of the user, the vehicle-mounted terminal displays the information of each first gas station in the form of a fueling card, and screens and displays at least one of the lowest fuel price, the average fuel price and the national standard fuel price. The user can select the corresponding fueling card through comparison, navigate to the first fueling station that wants to be reached, and complete fueling operation.
Fig. 3 is a schematic structural diagram of an oil price information display device according to an embodiment of the present application, where the device is configured to perform the method flows shown in fig. 1-2. As shown in fig. 3, the apparatus may include: a first acquisition module 301, a first calculation module 303, a second acquisition module 305, a second calculation module 307, and a display module 309. The main functions of each component module are as follows:
a first obtaining module 301, configured to obtain current location information of a user, where the current location information is information of a current location of the user;
the first calculating module 303 is configured to obtain first gas station information according to the current location information, where the first gas station information is information of gas stations in a first preset range, and calculate a lowest oil price in the first preset range according to each first gas station information;
a second obtaining module 305, configured to obtain second gas station information according to the current location information, where the second gas station information is information of gas stations in a second preset range, and the second preset range is greater than the first preset range;
the second calculating module 307 is configured to calculate an average oil price in a second preset range according to the information of each second gas station, and obtain a national standard oil price in the second preset range;
and a display module 309, configured to display the information of each first gas station, and select at least one from the lowest fuel price, the average fuel price and the national standard fuel price for display.
In one embodiment, the display module 309 is further configured to:
when the lowest oil price is greater than or equal to the average oil price, only displaying the average oil price and the national standard oil price;
and when the lowest oil price and the average oil price are both larger than or equal to the national standard oil price, only the national standard oil price is displayed.
In one embodiment, the display module 309 is further configured to:
and when the first gas station does not exist in the first preset range, displaying only the national standard oil price.
In one embodiment, the first fuel station information includes a fuel price of each first fuel station and a first total number of fuel stations, the apparatus further being configured to:
when the total number of the first gas stations in the first preset range is 0, the first preset range is automatically increased according to the preset increment, and when the total number of the first gas stations in the first preset range is larger than the preset gas stations, the first preset range is automatically reduced according to the preset decrement.
In one embodiment, the first fuel station information further includes a detailed address of each first fuel station, each first fuel station information is displayed, and the apparatus is further configured to:
displaying the information of each first gas station according to the oil numbers, the intelligent ordering rules and the first preset range; wherein, the oil number comprises any one of 92 numbers, 95 numbers and 98 numbers; the intelligent ordering rule comprises any one of a high-low rule according to the fueling price of each first fueling station or a distance rule according to the detailed address of each first fueling station from the current position of the user; the first preset range includes any one of 10km, 20km, 30km, 40km, and 50 km.
In one embodiment, the apparatus is further for:
after the oil number is changed, the information of the first gas station is acquired again according to the current position information of the user;
if the information of the first gas station is consistent before and after the change of the oil number, displaying the lowest oil price in a first preset range before the change of the oil number;
if the first filling station information changes before and after the oil number change, the lowest oil price in the first preset range is recalculated according to the changed first filling station information and displayed.
In one embodiment, the apparatus is further for:
sequencing the fueling prices of the first fueling stations from low to high, and selecting the lowest fueling price of the first fueling station as the lowest fueling price in a first preset range;
adding the fueling prices of the second fueling stations to obtain a total fueling price;
and dividing the total oil price with the total number of the second gas stations to obtain the average oil price in the second preset range.
According to the specific embodiment provided by the application, the technical scheme provided by the application can have the following advantages:
1) By displaying the lowest oil price, the average oil price and the national standard oil price, the user can clearly see how much money the user can save, and the user can conveniently and quickly find the oil station the user wants to go to.
2) By displaying the lowest oil price, the user can be helped to save time and cost, and the user can see the lowest oil price
Directly filling oil to a corresponding first filling station; and when the lowest oil price is not displayed, the oil station similar to the average oil price can be selected, so that the effect of saving the selection time is achieved.
It is to be understood that not necessarily all of the above advantages may be achieved simultaneously in the practice of any one of the methods or articles of manufacture of the present application.
The same and similar parts of the above embodiments are all referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments in part.
It should be noted that, in the embodiments of the present application, the use of user data may be involved, and in practical applications, user specific personal data may be used in the schemes described herein within the scope allowed by applicable laws and regulations under the condition that the applicable laws and regulations of the country are met (for example, the user explicitly agrees, the user is explicitly notified, the user is explicitly authorized, etc.).
According to embodiments of the present application, there is also provided a computer device, a computer-readable storage medium.
As shown in fig. 4, is a block diagram of a computer device according to an embodiment of the present application. Computer equipment is intended to represent various forms of digital computers or mobile devices. Wherein the digital computer may comprise a desktop computer, a portable computer, a workstation, a personal digital assistant, a server, a mainframe computer, and other suitable computers. The mobile device may include a tablet, a smart phone, a wearable device, etc.
As shown in fig. 4, the apparatus 400 includes a computing unit 401, a ROM 402, a RAM 403, a bus 404, and an input/output (I/O) interface 405, and the computing unit 401, the ROM 402, and the RAM 403 are connected to each other by the bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
The computing unit 401 may perform various processes in the method embodiments of the present application according to computer instructions stored in a Read Only Memory (ROM) 402 or computer instructions loaded from a storage unit 408 into a Random Access Memory (RAM) 403. The computing unit 401 may be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. The computing unit 401 may include, but is not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), as well as any suitable processor, controller, microcontroller, etc. In some embodiments, the methods provided by embodiments of the present application may be implemented as a computer software program tangibly embodied on a computer-readable storage medium, such as the storage unit 408.
RAM 403 may also store various programs and data required for operation of device 400. Part or all of the computer program may be loaded and/or installed onto the device 400 via the ROM 402 and/or the communication unit 409.
The input unit 406, the output unit 407, the storage unit 408, and the communication unit 409 in the device 400 may be connected to the I/O interface 405. Wherein the input unit 406 may be such as a keyboard, mouse, touch screen, microphone, etc.; the output unit 407 may be, for example, a display, a speaker, an indicator light, or the like. The device 400 is capable of exchanging information, data, etc. with other devices through the communication unit 409.
It should be noted that the device may also include other components necessary to achieve proper operation. It may also include only the components necessary to implement the present application, and not necessarily all the components shown in the figures.
Various implementations of the systems and techniques described here can be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof.
Computer instructions for implementing the methods of the present application may be written in any combination of one or more programming languages. These computer instructions may be provided to the computing unit 401 such that the computer instructions, when executed by the computing unit 401, such as a processor, cause the steps involved in the method embodiments of the present application to be performed.
The computer readable storage medium provided herein may be a tangible medium that may contain, or store, computer instructions for performing the steps involved in the method embodiments of the present application. The computer readable storage medium may include, but is not limited to, storage media in the form of electronic, magnetic, optical, electromagnetic, and the like.
The above embodiments do not limit the scope of the application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application are intended to be included within the scope of the present application.

Claims (10)

1. A method of displaying oil price information, the method comprising:
acquiring current position information of a user, wherein the current position information is information of the current position of the user;
acquiring first gas station information according to the current position information, wherein the first gas station information is information of gas stations in a first preset range, and calculating the lowest oil price in the first preset range according to each first gas station information;
acquiring second gas station information according to the current position information, wherein the second gas station information is information of gas stations in a second preset range, and the second preset range is larger than the first preset range;
calculating average oil price in the second preset range according to the information of each second gas station, and acquiring national standard oil price in the second preset range;
and displaying the information of each first gas station, and screening at least one from the lowest oil price, the average oil price and the national standard oil price for display.
2. The method of claim 1, wherein said selecting and displaying at least one of said minimum oil price, said average oil price, and said national standard fueling price comprises:
when the lowest oil price is greater than or equal to the average oil price, only displaying the average oil price and the national standard oil price;
and when the lowest oil price and the average oil price are both greater than or equal to the national standard oil price, displaying only the national standard oil price.
3. The method of claim 2, wherein said selecting and displaying at least one of said minimum oil price, said average oil price, and said national standard fueling price further comprises:
and when the first filling station does not exist in the first preset range, displaying only the national standard oil price.
4. The method of claim 1, wherein the first fueling station information comprises a fueling price for each first fueling station and a first fueling station total number, the method further comprising:
when the total number of the first gas stations in the first preset range is 0, automatically increasing the first preset range according to preset increment, and,
and automatically reducing the first preset range according to preset decrement when the total number of the first gas stations in the first preset range is larger than the preset gas station number.
5. The method of claim 4, wherein the first fueling station information further comprises a detailed address of each first fueling station, and wherein displaying each first fueling station information comprises:
displaying the information of each first gas station according to the oil numbers, the intelligent ordering rules and the first preset range; wherein the oil number comprises any one of 92 numbers, 95 numbers and 98 numbers; the intelligent ordering rule comprises any one of a high-low rule according to the fueling price of each first fueling station or a distance rule according to the detailed address of each first fueling station from the current position of the user; the first preset range includes any one of 10km, 20km, 30km, 40km, and 50 km.
6. The method of claim 5, wherein the method further comprises:
after the oil number is changed, acquiring first gas station information again according to the current position information of the user;
if the information of the first gas station is consistent before and after the change of the oil number, displaying the lowest oil price in a first preset range before the change of the oil number;
and if the first filling station information changes before and after the oil number is changed, recalculating the lowest oil price in the first preset range according to the changed first filling station information and displaying.
7. The method of any of claims 4-6, wherein calculating the lowest fuel price within the first predetermined range from the first fueling station information comprises:
sequencing the fueling prices of the first fueling stations from low to high, and selecting the lowest fueling price of the first fueling station as the lowest fueling price in a first preset range;
the second fuel station information includes a fuel price of each second fuel station and a total number of second fuel stations, and the calculating the average fuel price in the second preset range according to each second fuel station information includes:
adding the fueling prices of the second fueling stations to obtain a total fueling price;
and dividing the total oil price with the total number of the second gas stations to obtain the average oil price in a second preset range.
8. An oil price information display device, characterized in that the device comprises:
the first acquisition module is used for acquiring current position information of a user, wherein the current position information is information of the current position of the user;
the first calculation module is used for acquiring first gas station information according to the current position information, wherein the first gas station information is information of gas stations in a first preset range, and calculating the lowest oil price in the first preset range according to the first gas station information;
the second acquisition module is used for acquiring second gas station information according to the current position information, wherein the second gas station information is information of gas stations in a second preset range, and the second preset range is larger than the first preset range;
the second calculation module is used for calculating the average oil price in the second preset range according to the information of each second gas station and acquiring the national standard oil price in the second preset range;
and the display module is used for displaying the information of each first gas station and screening and displaying at least one of the lowest oil price, the average oil price and the national standard oil price.
9. A computer device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores computer instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
10. A computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any of claims 1 to 7.
CN202310382160.6A 2023-04-11 2023-04-11 Oil price information display method, device, equipment and storage medium Pending CN116108293A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310382160.6A CN116108293A (en) 2023-04-11 2023-04-11 Oil price information display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310382160.6A CN116108293A (en) 2023-04-11 2023-04-11 Oil price information display method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116108293A true CN116108293A (en) 2023-05-12

Family

ID=86256510

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310382160.6A Pending CN116108293A (en) 2023-04-11 2023-04-11 Oil price information display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116108293A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101821732A (en) * 2007-09-10 2010-09-01 神达电脑股份有限公司 Nearest-neighbor geographic search
CN102902754A (en) * 2012-09-24 2013-01-30 曹欢欢 Method and device for searching interest point
WO2014205422A2 (en) * 2013-06-20 2014-12-24 Parshionikar Uday Systems, methods, apparatuses, computer readable medium for controlling electronic devices
CN104634350A (en) * 2013-11-14 2015-05-20 北京四维图新科技股份有限公司 Method and device for inquiring gas station information as well as navigation terminal
CN110704757A (en) * 2019-10-22 2020-01-17 北京牛卡福网络科技有限公司 Refueling strategy recommendation method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101821732A (en) * 2007-09-10 2010-09-01 神达电脑股份有限公司 Nearest-neighbor geographic search
CN102902754A (en) * 2012-09-24 2013-01-30 曹欢欢 Method and device for searching interest point
WO2014205422A2 (en) * 2013-06-20 2014-12-24 Parshionikar Uday Systems, methods, apparatuses, computer readable medium for controlling electronic devices
CN104634350A (en) * 2013-11-14 2015-05-20 北京四维图新科技股份有限公司 Method and device for inquiring gas station information as well as navigation terminal
CN110704757A (en) * 2019-10-22 2020-01-17 北京牛卡福网络科技有限公司 Refueling strategy recommendation method and device

Similar Documents

Publication Publication Date Title
CN108920462B (en) Point of interest (POI) retrieval method and device based on map
CN110062939B (en) Method, system and apparatus for converting static images into interactive maps
US9442905B1 (en) Detecting neighborhoods from geocoded web documents
CN107368510B (en) A kind of shop search ordering method and device
US20140071170A1 (en) Non-uniformly scaling a map for emphasizing areas of interest
CN103514290A (en) Electronic map information point acquisition method, acquisition device and server
CN110704757B (en) Refueling strategy recommendation method and device
CN113077181B (en) Parking station setting method, device, medium and electronic equipment
CN111522838B (en) Address similarity calculation method and device
JP2012528375A (en) Providing patent maps by viewpoint
CN112581261A (en) Wind control rule determination method and device
CN110672108B (en) Gasoline station recommendation method and device based on driving direction
US11023962B2 (en) Searching available rental vehicles based on adjustable parameters
CN114880289A (en) File grouping display method and computing device
EP3799619A1 (en) Selecting points of interest for display on a personalized digital map
CN107341221B (en) Index structure establishing and associated retrieving method, device, equipment and storage medium
CN116108293A (en) Oil price information display method, device, equipment and storage medium
EP3253031A1 (en) Searching available rental vehicles based on adjustable parameters
CN116107576A (en) Page component rendering method and device, electronic equipment and vehicle
CN103063219A (en) Method for navigation electronic map pretreatment and display
CN110609927A (en) Visual family tree layout method, terminal device and storage medium
CN112000274B (en) Zooming method, device and equipment for screen of vehicle-mounted intelligent equipment
CN111539796B (en) Order processing method, device and storage medium
CN113032663A (en) Parking lot recommendation method, recommendation system, storage medium and electronic device
CN113139139A (en) Method, apparatus, electronic device, and medium for determining boarding point

Legal Events

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

Application publication date: 20230512