Searching method and device for service network points, equipment, storage medium and product
By encoded location information into strings to filter bank outlets, the problem of inefficient query of bank outlets is solved, and faster query speed and lower system pressure are achieved.
Patent Information
- Application Number
- CN202510581105.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-07
- Publication Date
- 2025-08-15
AI Technical Summary
In the prior art, bank branch query efficiency is inefficient, especially when a large number of users query, the system pressure increases, and the traditional method is time-consuming and not timely enough.
By encode the location information into a string, filter candidate outlets using strings, narrow the query range, and sort it by distance, improving query efficiency.
It effectively narrows the range of candidate outlets, improves computing performance and user feedback speed, and reduces system pressure.
Smart Images

Figure CN120492745A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of location-based service technologies, and in particular to a method, device, equipment, storage medium, and product for searching a service point. Background Art
[0002] Service outlets are locations that provide services or sell products, typically located in different regions. Examples include bank and post office branches. Bank branches, for example, are spread across the country, totaling tens of thousands of branches of various types. Similarly, users are spread across the country. With the increasing diversification of banking services and growing user demand, demand for convenient and fast bank branch location tracking remains strong. Therefore, how to efficiently provide fast branch location tracking services to hundreds of millions of users is a question worth considering.
[0003] In the existing technology, when it is necessary to find information about bank branches near the current location, the traditional branch query method usually requires users to manually search or make a phone call for information, which is inefficient and not timely. In addition, calculating the distance is relatively time-consuming, especially when there are a large number of user inquiries. The system responds to tens of millions of requests every day. If the distance to all branches is calculated for each user's request, it will lead to inefficiency and increased system pressure. Summary of the Invention
[0004] The present invention provides a method, device, equipment, storage medium and product for searching a service outlet, so as to improve the efficiency of searching a service outlet.
[0005] According to one aspect of the present invention, a method for searching a service point is provided, comprising:
[0006] In response to a network point query request, extracting first location information corresponding to the network point query request;
[0007] Encoding the first location information into a first character string, and performing screening based on the first character string to obtain at least one candidate network point;
[0008] The distance between each candidate network point and the corresponding position of the first position information is calculated respectively, and the candidate network points are sorted in order of distance from near to far.
[0009] Furthermore, extracting the first location information corresponding to the network point query request includes:
[0010] Obtaining the initiator of the network query request;
[0011] The device positioning data of the initiating device is called, and the device positioning data is used as the first location information.
[0012] Furthermore, screening is performed based on the first character string to obtain at least one candidate network point, including:
[0013] Extracting the cached full network point information; wherein the full network point information includes all service network points in the database;
[0014] Extracting a second character string corresponding to each service outlet; wherein each second character string is obtained according to the second location information encoding of the corresponding service outlet;
[0015] Each of the second character strings is compared with the first character string, and at least one candidate network point is obtained according to the comparison result.
[0016] Furthermore, the cached full network information is extracted, including:
[0017] Extracting the full amount of network point information from the local cache;
[0018] If the full amount of network point information is not retrieved from the local cache, the full amount of network point information is retrieved from the target database cache.
[0019] Furthermore, each of the second character strings is compared with the first character string, and at least one candidate network point is obtained according to the comparison result, including:
[0020] extracting the leading position characters of each of the second character string and the first character string respectively;
[0021] The service network point corresponding to the character string having the same leading positional character as the first character string in each of the second character strings is determined as the candidate network point.
[0022] Furthermore, the full network point information includes a full network point list and detailed information corresponding to each service network point. The method further includes:
[0023] Extract the latest network point data from the database according to the set frequency;
[0024] Generating the full network list and detailed information corresponding to each service network based on the latest network data; wherein the full network list includes the identification and location information corresponding to each service network;
[0025] The full network point list and detailed information corresponding to each service network point are saved in the local cache and the target database cache.
[0026] According to another aspect of the present invention, a device for searching a service point is provided, comprising:
[0027] A first location information extraction module, configured to extract first location information corresponding to a network point query request in response to the network point query request;
[0028] a candidate network point screening module, configured to encode the first location information into a first character string, and perform screening based on the first character string to obtain at least one candidate network point;
[0029] The candidate network point sorting module calculates the distance between each candidate network point and the corresponding position of the first position information, and sorts the candidate network points in order of distance from near to far.
[0030] Optionally, the first location information extraction module is further configured to:
[0031] Obtaining the initiator of the network query request;
[0032] The device positioning data of the initiating device is called, and the device positioning data is used as the first location information.
[0033] Optionally, the candidate network site screening module is further configured to:
[0034] Extracting the cached full network point information; wherein the full network point information includes all service network points in the database;
[0035] Extracting a second character string corresponding to each service outlet; wherein each second character string is obtained according to the second location information encoding of the corresponding service outlet;
[0036] Each of the second character strings is compared with the first character string, and at least one candidate network point is obtained according to the comparison result.
[0037] Optionally, the candidate network site screening module is further configured to:
[0038] Extracting the full amount of network point information from the local cache;
[0039] If the full amount of network point information is not retrieved from the local cache, the full amount of network point information is retrieved from the target database cache.
[0040] Optionally, the candidate network site screening module is further configured to:
[0041] extracting the leading position characters of each of the second character string and the first character string respectively;
[0042] The service network point corresponding to the character string having the same leading positional character as the first character string in each of the second character strings is determined as the candidate network point.
[0043] Optionally, the full network point information includes a full network point list and detailed information corresponding to each service network point. The device further includes a data updating module for:
[0044] Extract the latest network point data from the database according to the set frequency;
[0045] Generating the full network list and detailed information corresponding to each service network based on the latest network data; wherein the full network list includes the identification and location information corresponding to each service network;
[0046] The full network point list and detailed information corresponding to each service network point are saved in the local cache and the target database cache.
[0047] According to another aspect of the present invention, an electronic device is provided, comprising:
[0048] at least one processor; and
[0049] a memory communicatively connected to the at least one processor; wherein,
[0050] The memory stores a computer program executable by the at least one processor. The computer program is executed by the at least one processor so that the at least one processor can execute the service point search method according to any embodiment of the present invention.
[0051] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the service point search method according to any embodiment of the present invention when executed.
[0052] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program / instructions. When the computer program / instructions are executed by a processor, the steps of the method for searching a service point according to any embodiment of the present invention are implemented.
[0053] The method for finding a service outlet disclosed in the present invention first extracts first location information corresponding to an outlet query request in response to the outlet query request; then encodes the first location information into a first character string, and screens the service outlets based on the first character string to obtain at least one candidate outlet; finally, calculates the distance between each candidate outlet and the corresponding location in the first location information, and sorts the candidate outlets in order of distance from closest to farthest. The method for finding a service outlet disclosed in the present invention, by converting the location information into a character string and using the character string to screen the service outlets, can eliminate most outlets that do not meet the requirements, narrow the candidate range, improve computing performance, and increase the speed of feedback to users.
[0054] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present invention, nor is it intended to limit the scope of the present invention. Other features of the present invention will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0055] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0056] Figure 1 This is a flow chart of a method for searching a service point according to the first embodiment of the present invention;
[0057] Figure 2 This is a flow chart of a method for searching a service point according to a second embodiment of the present invention;
[0058] Figure 3 This is a schematic diagram of the structure of a device for searching a service point according to a third embodiment of the present invention;
[0059] Figure 4 It is a structural diagram of an electronic device for implementing the service point search method according to the fourth embodiment of the present invention. DETAILED DESCRIPTION
[0060] In order to enable those skilled in the art to better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the embodiments described are only 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 making creative efforts should fall within the scope of protection of the present invention.
[0061] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0062] Example 1
[0063] Figure 1 This is a flow chart of a method for searching a service outlet provided in the first embodiment of the present invention. This embodiment is applicable to the case of searching for a nearby service outlet. The method can be executed by a search device for a service outlet. The search device for a service outlet can be implemented in the form of hardware and / or software. The search device for a service outlet can be configured in an electronic device. Figure 1 As shown, the method includes:
[0064] S110 . In response to a network point query request, extract first location information corresponding to the network point query request.
[0065] The network query request may be a request initiated by a user to query service networks near the user, and the first location information is the location of the user when the network query request is initiated.
[0066] In this embodiment, after the user initiates a network query request, in response to the request, the first location information corresponding to the network query request can be determined based on the network query request. For example, the first location information may include the latitude and longitude information of the user when the network query request is initiated.
[0067] S120: Encode the first location information into a first character string, and perform screening based on the first character string to obtain at least one candidate network point.
[0068] The first character string is character string data obtained by encoding the first location information, and the candidate service points are some service points selected from all service points based on the first character string.
[0069] In this embodiment, after obtaining the first location information, it can be encoded. For example, the first location information can be represented by latitude and longitude information, which is two-dimensional data. After encoding, it becomes a string, which is one-dimensional data. That is, through encoding, the original high-dimensional features can be represented by a relatively low-dimensional vector, thereby reducing the dimensionality of the data, i.e., achieving dimensionality reduction. The first string can then be used to screen the entire network of network data, selecting service network points that meet the set criteria as candidate network points.
[0070] Preferably, a Geohash encoding method can be used when encoding the first location information into the first string. GeoHash is a method for encoding longitude and latitude coordinates into a string, primarily used for geolocation search and spatial indexing. It converts longitude and latitude into binary, then combines and encodes them using Base32 to ultimately generate a string representation. The longer the generated string, the higher the accuracy of the representation.
[0071] S130 , respectively calculating the distance between each candidate network point and the corresponding position of the first position information, and sorting the candidate network points in order of distance from near to far.
[0072] In this embodiment, after obtaining each candidate network point, each candidate network point can be traversed based on its location and the position corresponding to the first location information, and the distance between each candidate network point and the position corresponding to the first location information can be calculated one by one. The candidate network points can then be sorted in order of distance from closest to farthest, and the sorting result can be provided to the user for selection.
[0073] The method for finding a service outlet disclosed in the present invention first extracts first location information corresponding to an outlet query request in response to the outlet query request; then encodes the first location information into a first character string, and screens the service outlets based on the first character string to obtain at least one candidate outlet; finally, calculates the distance between each candidate outlet and the corresponding location in the first location information, and sorts the candidate outlets in order of distance from closest to farthest. The method for finding a service outlet disclosed in the present invention, by converting the location information into a character string and using the character string to screen the service outlets, can eliminate most outlets that do not meet the requirements, narrow the candidate range, improve computing performance, and increase the speed of feedback to users.
[0074] Example 2
[0075] Figure 2 This is a flow chart of a method for searching a service point provided in the second embodiment of the present invention. This embodiment is a refinement of the above embodiment. Figure 2 As shown, the method includes:
[0076] S210 . In response to the network point query request, obtain the initiator of the network point query request.
[0077] Among them, the outlet query request can be a request initiated by the user to query the service outlets near the user. The first location information is the user's location when the outlet query request is initiated. The initiating device of the outlet query request can be a mobile phone, computer or other device that initiates the corresponding outlet query request and has positioning function.
[0078] In this embodiment, after the user initiates a network point query request, the initiating device of the network point query request can be obtained after obtaining authorization.
[0079] For example, if a user initiates a branch query request via a mobile phone, the user can obtain the mobile phone that initiated the request after obtaining the corresponding authorization.
[0080] S220: Call the device positioning data of the initiating device and use the device positioning data as the first location information.
[0081] The device positioning data is the positioning data of the device that initiated the network query request.
[0082] In this embodiment, after obtaining the initiating device of the network query request, the positioning data of the initiating device itself can be called with corresponding authorization and used as the first location information corresponding to the network query request. The first location information can be represented by longitude and latitude information.
[0083] S230: Encode the first location information into a first character string, and extract the cached full network point information.
[0084] Among them, the full network information includes all service outlets in the database.
[0085] In this embodiment, the full network point information includes relevant information of all service network points in the database, including but not limited to identification information, location information, attribute information, name, contact number, address details, etc. of each network point. Preferably, the full network point information includes a character string encoded according to the location information of each service network point.
[0086] In this embodiment, after obtaining the first location information, it can be encoded. For example, a Geohash encoding method can be used to convert the longitude and latitude data in the first location information into binary format and encode it into a string, i.e., a first string. The full amount of network point information can then be retrieved from the cache so that the full amount of network point information can be filtered based on the first string.
[0087] Optionally, the method for extracting the cached full network point information may be: extracting the full network point information from the local cache; if the extraction of the full network point information from the local cache fails, extracting the full network point information from the target database cache.
[0088] Specifically, when extracting full network information, the local cache can be used for extraction. If the extraction is successful, candidate network information is screened based on the full network information extracted from the local cache. If the extraction fails, the full network information is extracted from the target database cache. Preferably, the target database cache can be a Redis cache. Each time the full network information is updated, the latest data can be stored in both the local cache and the Redis cache.
[0089] S240: Extract the second character string corresponding to each service outlet, compare each second character string with the first character string, and obtain at least one candidate outlet according to the comparison result.
[0090] Each second character string is obtained by encoding the second location information of the corresponding service outlet.
[0091] In this embodiment, the full network point information includes information about all service network points in the database. The second character string corresponding to each service network point is also included in the full network point information as an attribute of the service network point. Based on the full network point information, the second character string corresponding to each service network point can be extracted. Each second character string can then be compared with the first character string to obtain at least one candidate network point.
[0092] Optionally, the method of comparing each second character string with the first character string and obtaining at least one candidate network point based on the comparison result may be: extracting the leading position characters of each second character string and the first character string respectively; and determining the service network point corresponding to the character string in each second character string that has the same leading position character as the first character string as the candidate network point.
[0093] Specifically, when comparing each second string with the first string, for each second string, the leading position characters of the second string and the first string can be extracted and compared. If they are the same, the service outlet corresponding to the second string is used as a candidate outlet. If they are different, the comparison is continued with the next second string until all second strings are traversed.
[0094] Furthermore, the full network point information may include a full network point list and detailed information corresponding to each service network point. In an embodiment of the present invention, it is also possible to: extract the latest network point data from the database according to a set frequency; generate a full network point list and detailed information corresponding to each service network point based on the latest network point data; wherein the full network point list includes the identification and location information corresponding to each service network point; and save the full network point list and detailed information corresponding to each service network point to the local cache and the target database cache.
[0095] Specifically, a scheduled task can be set to regularly update all branch information. During each update, the latest branch data is extracted from the database and cached to ensure that newly added branches can be found in subsequent steps and that closed or closed branches are not searched. During each update, the latitude and longitude information of all service branches can be encoded, and the resulting string can be stored in the cache as a branch attribute. Each cache can be saved to both the Redis cache and the local cache. Furthermore, the full branch information can include a full branch list and detailed information corresponding to each service branch. The full branch list stores the identification and location information of each service branch, while the detailed information for each service branch includes the branch's identification, name, phone number, address, and other information that needs to be displayed to the user. When screening candidate branches, only the information in the full branch list is required. After the candidate branches are screened, the detailed information for each candidate branch can be assembled into a message and returned to the user.
[0096] Preferably, since the use of cache will bring timeliness issues, a table can be set up in the database to record version number information, and a guard thread can be started in the application to obtain the version number from the database every set time (for example, 1 minute) and compare it with the local version number. If a difference is found, the cache is refreshed.
[0097] S250: Calculate the distance between each candidate network point and the corresponding position of the first position information, and sort the candidate network points in order of distance from near to far.
[0098] In this embodiment, after obtaining each candidate network point, each candidate network point can be traversed based on its location and the position corresponding to the first location information, and the distance between each candidate network point and the position corresponding to the first location information can be calculated one by one. The candidate network points can then be sorted in order of distance from closest to farthest, and the sorting result can be provided to the user for selection.
[0099] The service point search method provided by the embodiments of the present invention converts location information into a string and uses this string to filter service points. This method can eliminate most non-compliant points, narrow the candidate pool, improve computing performance, and increase user feedback speed. Furthermore, by caching service point data in both the target database cache and the local cache, database query requests can be reduced, ensuring timely data updates while further improving system computing performance.
[0100] Example 3
[0101] Figure 3 This is a schematic diagram of a structure of a device for searching a service point according to the third embodiment of the present invention. Figure 3 As shown, the apparatus includes: a first location information extraction module 310 , a candidate network point screening module 320 and a candidate network point sorting module 330 .
[0102] The first location information extraction module 310 is configured to extract first location information corresponding to the network point query request in response to the network point query request.
[0103] The candidate network point screening module 320 is configured to encode the first location information into a first character string, and perform screening based on the first character string to obtain at least one candidate network point.
[0104] The candidate network point sorting module 330 calculates the distance between each candidate network point and the corresponding position of the first position information, and sorts the candidate network points in order of distance from near to far.
[0105] Optionally, the first location information extraction module 310 is further configured to:
[0106] Obtain the initiating device of the network point query request; call the device positioning data of the initiating device, and use the device positioning data as the first location information.
[0107] Optionally, the candidate network site screening module 320 is further configured to:
[0108] Extracting cached full network point information; wherein the full network point information includes all service network points in the database; extracting a second character string corresponding to each service network point; wherein each second character string is obtained by encoding the second location information of the corresponding service network point; comparing each second character string with the first character string, and obtaining at least one candidate network point based on the comparison result.
[0109] Optionally, the candidate network site screening module 320 is further configured to:
[0110] Extract the full amount of network point information from the local cache; if the full amount of network point information cannot be extracted from the local cache, extract the full amount of network point information from the target database cache.
[0111] Optionally, the candidate network site screening module 320 is further configured to:
[0112] Extracting the leading position characters of each second character string and the first character string respectively; and determining the service outlets corresponding to the character strings in each second character string that have the same leading position characters as the first character string as candidate outlets.
[0113] Optionally, the full network point information includes a full network point list and detailed information corresponding to each service network point. The device further includes a data updating module for:
[0114] Extract the latest outlet data from the database at a set frequency; generate a full outlet list and detailed information corresponding to each service outlet based on the latest outlet data; wherein, the full outlet list includes the identification and location information corresponding to each service outlet; save the full outlet list and detailed information corresponding to each service outlet to the local cache and the target database cache.
[0115] The service point search device provided in the embodiment of the present invention can execute the service point search method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0116] Example 4
[0117] Figure 4A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or claimed herein.
[0118] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., which is communicatively connected to the at least one processor 11. The memory stores a computer program that can be executed by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 into the random access memory (RAM) 13. Various programs and data required for the operation of the electronic device 10 can also be stored in the RAM 13. The processor 11, ROM 12, and RAM 13 are connected to each other via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0119] Multiple components in the electronic device 10 are connected to the I / O interface 15, including an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.
[0120] The processor 11 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any other suitable processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the service point search method.
[0121] In some embodiments, the service point search method can be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of searching for a service point described above can be performed. Alternatively, in other embodiments, processor 11 can be configured to execute the service point search method in any other appropriate manner (e.g., via firmware).
[0122] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system-on-chip systems (SOCs), programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0123] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when the computer program is executed by the processor, the functions / operations specified in the flowcharts and / or block diagrams are implemented. The computer program may be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.
[0124] In the context of the present invention, computer-readable storage media can be tangible media that can contain or store a computer program for use with an instruction execution system, device or equipment or used in combination with an instruction execution system, device or equipment. Computer-readable storage media can include but are not limited to electronic, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, computer-readable storage media can be machine-readable signal media. More specific examples of machine-readable storage media can include electrical connections based on one or more lines, portable computer disks, hard disks, random access memories (RAM), read-only memories (ROM), erasable programmable read-only memories (EPROM or flash memory), optical fibers, portable compact disk read-only memories (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0125] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0126] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0127] A computing system may include clients and servers. The clients and servers are typically remote from each other and typically interact via a communication network. This client-server relationship arises through computer programs running on the respective computers, creating a client-server relationship. The server may be a cloud server, also known as a cloud computing server or cloud host. This server is a hosting product within the cloud computing service ecosystem that addresses the management difficulties and limited scalability of traditional physical hosting and VPS services.
Claims
1. A method for finding a service outlet, characterized in that: include: In response to a network point query request, extracting first location information corresponding to the network point query request; Encoding the first location information into a first character string, and performing screening based on the first character string to obtain at least one candidate network point; The distance between each candidate network point and the corresponding position of the first position information is calculated respectively, and the candidate network points are sorted in order of distance from near to far.
2. The method according to claim 1, characterized in that Extracting first location information corresponding to the network point query request includes: Obtaining the initiator of the network point query request; The device positioning data of the initiating device is called, and the device positioning data is used as the first location information.
3. The method according to claim 1, characterized in that Screening is performed based on the first character string to obtain at least one candidate network point, including: Extracting the cached full network point information; wherein the full network point information includes all service network points in the database; Extracting a second character string corresponding to each service outlet; wherein each second character string is obtained according to the second location information encoding of the corresponding service outlet; Each of the second character strings is compared with the first character string, and at least one candidate network point is obtained according to the comparison result.
4. The method according to claim 3, characterized in that Extract the cached full network information, including: Extracting the full amount of network point information from the local cache; If the full amount of network point information is not retrieved from the local cache, the full amount of network point information is retrieved from the target database cache.
5. The method according to claim 3, characterized in that Comparing each of the second character strings with the first character string, and obtaining at least one candidate network point according to the comparison result, includes: extracting the leading position characters of each of the second character string and the first character string respectively; The service network point corresponding to the character string having the same leading positional character as the first character string in each of the second character strings is determined as the candidate network point.
6. The method according to claim 4, characterized in that The full network point information includes a full network point list and detailed information corresponding to each service network point. The method further includes: Extract the latest network point data from the database according to the set frequency; Generating the full network list and detailed information corresponding to each service network based on the latest network data; wherein the full network list includes the identification and location information corresponding to each service network; The full network point list and detailed information corresponding to each service network point are saved in the local cache and the target database cache.
7. A device for searching a service outlet, characterized in that: include: A first location information extraction module, configured to extract first location information corresponding to a network point query request in response to the network point query request; a candidate network point screening module, configured to encode the first location information into a first character string, and perform screening based on the first character string to obtain at least one candidate network point; The candidate network point sorting module calculates the distance between each candidate network point and the corresponding position of the first position information, and sorts the candidate network points in order of distance from near to far.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the service point search method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the service point search method according to any one of claims 1 to 6 when executed.
10. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method for searching a service point according to any one of claims 1 to 6 are implemented.