Website retrieval method and device, computer equipment and computer readable storage medium
By converting the coordinates of users under the first coordinate system to the target coordinates under the second coordinate system, and determining the coordinate search range based on the target coordinates, the problem of inaccurate points position caused by different map applications using different coordinate systems is solved, and the user experience is improved, and the problem of poor application stability is avoided.
Patent Information
- Application Number
- CN202411513541.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-03-28
AI Technical Summary
Since different map applications use different coordinate systems, errors are prone to retrieval of outlet locations, affecting the user experience. In addition, developers rely on the API of a specific map service provider. If the service provider changes the API or stops the service, it will lead to poor application stability.
A network point search method is provided, by converting the specified user coordinates of the user under the first coordinate system to the target user coordinates under the second coordinate system, and determining the coordinate search range based on the target user coordinates, calculating the geographical distance between the network points to be calculated and the user, selecting the network points to be displayed that meet the preset distance conditions, and displaying them under the first coordinate system.
It solves the problem of inaccurate point locations caused by different map applications using different coordinate systems, ensures the consistency of user searching for point locations on any map application, significantly improves the user experience, and avoids the problem of poor application stability caused by map service providers changing APIs or stopping services.
Smart Images

Figure CN119719520A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a website search method, device, computer equipment and computer-readable storage medium. Background Art
[0002] With the continuous development of computer technology, maps and electronic navigation systems have been widely used. Many newly developed applications currently involve map functions, allowing users to query surrounding store outlets through map functions, and select and go to the nearest outlet according to distance and map instructions.
[0003] In related technologies, in order to improve the security of application data, developers often choose the official API interfaces provided by various mainstream map applications to implement map functions. However, since different mainstream map applications use different coordinate systems, applications developed using different coordinate systems are prone to errors when retrieving network point locations, resulting in inaccurate network point locations retrieved by users, which seriously affects the user experience. At the same time, since developers rely on the API provided by a specific map service provider, if the service provider subsequently changes its API interface, increases service fees, or stops service, developers will have to re-evaluate and redevelop all map functions involved in the application, resulting in poor application stability. Summary of the invention
[0004] In view of this, the present application provides a network point retrieval method, device, computer equipment and computer-readable storage medium, the main purpose of which is to solve the problem that applications currently developed using different coordinate systems are prone to errors when retrieving network point locations, resulting in inaccurate network point locations retrieved by users, which seriously affects the user experience. At the same time, since developers rely on the API provided by a specific map service provider, if the service provider subsequently changes its API interface, increases service fees or stops service, developers will have to re-evaluate and develop all map functions involved in the application, resulting in poor application stability.
[0005] According to the first aspect of the present application, a method for searching a website is provided, the method comprising:
[0006] In response to the network point query instruction, obtaining user coordinates specified by the user in a first coordinate system, where the first coordinate system is a coordinate system corresponding to a map application selected by the user based on a visual interface;
[0007] Convert the designated user coordinates into target user coordinates in a second coordinate system, and determine a coordinate search range according to the target user coordinates, wherein the second coordinate system is a coordinate system corresponding to a map application specified by a network point search function;
[0008] Determine a plurality of network points to be measured according to the coordinate search range, obtain the designated network point coordinates of each network point to be measured in the second coordinate system, and calculate the geographical distance between each network point to be measured and the user according to the designated network point coordinates of each network point to be measured and the target user coordinates;
[0009] A network point to be measured whose geographical distance meets a preset distance condition is selected as a network point to be displayed, the designated network point coordinates of the network point to be displayed are converted into target network point coordinates under a first coordinate system, and the network point to be displayed is displayed on the electronic map in the visualization interface according to the target network point coordinates.
[0010] Optionally, converting the designated user coordinates into target user coordinates in a second coordinate system includes:
[0011] Reading the longitude coordinates of the designated user and the latitude coordinates of the designated user in the designated user coordinates, correcting the longitude coordinates of the designated user by using a preset longitude offset parameter, and correcting the latitude coordinates of the designated user by using a preset latitude offset parameter, wherein the preset longitude offset parameter and the preset latitude offset parameter are determined according to a standard protocol of the first coordinate system and the second coordinate system;
[0012] Determine a correction distance and a correction angle according to the corrected longitude coordinates of the designated user and the corrected latitude coordinates of the designated user;
[0013] Calculate the cosine value of the correction angle, and use the product of the cosine value and the correction distance as the longitude coordinate of the target user; calculate the sine value of the correction angle, and use the product of the sine value and the correction distance as the latitude coordinate of the target user;
[0014] The target user longitude coordinates and the target user latitude coordinates are combined into target user coordinates in the second coordinate system.
[0015] Optionally, determining a coordinate search range according to the target user coordinates includes:
[0016] Determine a preset search range, and calculate the ratio of the preset search range to the number of kilometers corresponding to each longitude, take the difference between the longitude coordinate of the target user and the ratio as the minimum longitude coordinate value, and take the sum of the longitude coordinate of the target user and the ratio as the maximum longitude coordinate value;
[0017] Calculate the ratio of the preset search range to the number of kilometers corresponding to each latitude, take the difference between the target user's latitude coordinate and the ratio as the minimum latitude coordinate value, and take the sum of the target user's latitude coordinate and the ratio as the maximum latitude coordinate value;
[0018] The coordinate search range is determined according to the coordinates formed by the minimum longitude coordinate value and the minimum latitude coordinate value, the coordinates formed by the minimum longitude coordinate value and the maximum latitude coordinate value, the coordinates formed by the maximum longitude coordinate value and the minimum latitude coordinate value, and the coordinates formed by the maximum longitude coordinate value and the maximum latitude coordinate value.
[0019] Optionally, converting the designated grid point coordinates of the to-be-displayed grid points into target grid point coordinates in a first coordinate system includes:
[0020] Reading the longitude coordinates of the designated network point and the latitude coordinates of the designated network point in the designated network point coordinates, and determining the distance to be corrected and the angle to be corrected according to the longitude coordinates of the designated network point and the latitude coordinates of the designated network point;
[0021] Calculate the cosine value of the angle to be corrected, and use the product of the cosine value and the distance to be corrected as the longitude coordinate to be corrected; calculate the sine value of the angle to be corrected, and use the product of the sine value and the distance to be corrected as the latitude coordinate to be corrected;
[0022] The latitude coordinates to be corrected are corrected by using a preset latitude offset parameter to obtain the latitude coordinates of the target network point, and the longitude coordinates to be corrected are corrected by using a preset longitude offset parameter to obtain the longitude coordinates of the target network point;
[0023] The target network point longitude coordinates and the target network point latitude coordinates are combined into the target network point coordinates in the first coordinate system.
[0024] Optionally, determining a plurality of network points to be measured according to the coordinate search range includes:
[0025] Traversing all the network points, matching the designated network point coordinates of each network point with the coordinate search range;
[0026] If the matching result indicates that the coordinates of the designated network point are within the coordinate search range, the network point associated with the designated network point coordinates is determined as the network point to be measured, and the designated network point coordinates of the next network point are obtained to match with the coordinate search range;
[0027] If the matching result indicates that the designated network point coordinates are not within the search coordinate range, the designated network point coordinates of the next network point are obtained to match with the coordinate search range.
[0028] Optionally, the acquiring of designated network point coordinates of each network point to be measured in the second coordinate system, and calculating the geographical distance between each network point to be measured and the user according to the designated network point coordinates of each network point to be measured and the target user coordinates, includes:
[0029] Determine the designated network point coordinates of the network point to be measured and the target user coordinates of the user, the designated network point coordinates include the designated network point longitude coordinates and the designated network point latitude coordinates, and the target user coordinates include the target user longitude coordinates and the target user latitude coordinates;
[0030] Calculating the longitude difference between the longitude coordinates of the designated network point and the longitude coordinates of the target user, and determining the arc corresponding to the longitude difference;
[0031] Calculating the latitude difference between the latitude coordinates of the designated network point and the latitude coordinates of the target user, and determining the arc corresponding to the latitude difference;
[0032] The spherical distance between the coordinates of the designated network point and the coordinates of the target user is calculated according to the radian corresponding to the longitude difference and the radian corresponding to the latitude difference, and the product of the spherical distance and the preset unit conversion parameter is used as the geographical distance between the network point to be measured and the user.
[0033] Optionally, displaying the to-be-displayed network point on the electronic map in the visualization interface according to the coordinates of the target network point includes:
[0034] Determine the geographical distance between each of the to-be-displayed outlets and the user, and sort the to-be-displayed outlets in ascending order of the geographical distances;
[0035] According to the order of the network points to be displayed, the positions of the network points to be displayed are rendered on the electronic map of the visualization interface one by one according to the target network point coordinates of the network points to be displayed.
[0036] According to a second aspect of the present application, a network site search device is provided, the device comprising:
[0037] A latitude and longitude coordinate conversion module, for obtaining, in response to a network point query instruction, a user-specified user coordinate in a first coordinate system, where the first coordinate system is a coordinate system corresponding to a map application selected by the user based on a visual interface;
[0038] A latitude and longitude coordinate conversion module, used to convert the designated user coordinates into target user coordinates in a second coordinate system, and determine a coordinate search range according to the target user coordinates, wherein the second coordinate system is a coordinate system corresponding to a map application designated by a network point search function;
[0039] A geographic distance measurement module, used to determine a plurality of network points to be measured according to the coordinate search range, and obtain the designated network point coordinates of each network point to be measured in the second coordinate system, and to measure the geographic distance between each network point to be measured and the user according to the designated network point coordinates of each network point to be measured and the target user coordinates;
[0040] A geographical location search module is used to select the network points to be measured whose geographical distances meet the preset distance conditions as the network points to be displayed;
[0041] The latitude and longitude coordinate conversion module is used to convert the designated network point coordinates of the network point to be displayed into the target network point coordinates in the first coordinate system, and to display the network point to be displayed on the electronic map in the visualization interface according to the target network point coordinates.
[0042] Optionally, a longitude and latitude coordinate conversion module is used to read the longitude coordinates of the designated user and the latitude coordinates of the designated user in the designated user coordinates, use a preset longitude offset parameter to correct the longitude coordinates of the designated user, and use a preset latitude offset parameter to correct the latitude coordinates of the designated user, wherein the preset longitude offset parameter and the preset latitude offset parameter are determined according to the standard protocol of the first coordinate system and the second coordinate system; determine a correction distance and a correction angle according to the corrected longitude coordinates of the designated user and the corrected latitude coordinates of the designated user; calculate the cosine value of the correction angle, and use the product of the cosine value and the correction distance as the longitude coordinates of the target user, calculate the sine value of the correction angle, and use the product of the sine value and the correction distance as the latitude coordinates of the target user; and combine the longitude coordinates of the target user and the latitude coordinates of the target user into the target user coordinates under the second coordinate system.
[0043] Optionally, a longitude and latitude coordinate conversion module is used to determine a preset search range, and calculate the ratio of the preset search range to the number of kilometers corresponding to each longitude, and take the difference between the longitude coordinate of the target user and the ratio as the minimum longitude coordinate value, and take the sum of the longitude coordinate of the target user and the ratio as the maximum longitude coordinate value; calculate the ratio of the preset search range to the number of kilometers corresponding to each latitude, and take the difference between the latitude coordinate of the target user and the ratio as the minimum latitude coordinate value, and take the sum of the latitude coordinate of the target user and the ratio as the maximum latitude coordinate value; determine the coordinate search range according to the coordinates formed by the minimum longitude coordinate value and the minimum latitude coordinate value, the coordinates formed by the minimum longitude coordinate value and the maximum latitude coordinate value, the coordinates formed by the maximum longitude coordinate value and the minimum latitude coordinate value, and the coordinates formed by the maximum longitude coordinate value and the maximum latitude coordinate value.
[0044] Optionally, a longitude and latitude coordinate conversion module is used to read the longitude coordinates and latitude coordinates of the designated grid point in the designated grid point coordinates, and determine the distance to be corrected and the angle to be corrected according to the longitude coordinates and latitude coordinates of the designated grid point; calculate the cosine value of the angle to be corrected, and use the product of the cosine value and the distance to be corrected as the longitude coordinate to be corrected, calculate the sine value of the angle to be corrected, and use the product of the sine value and the distance to be corrected as the latitude coordinate to be corrected; use a preset latitude offset parameter to correct the latitude coordinate to obtain the latitude coordinate of the target grid point, and use a preset longitude offset parameter to correct the longitude coordinate to obtain the longitude coordinate of the target grid point; combine the longitude coordinate of the target grid point and the latitude coordinate of the target grid point into the target grid point coordinates under the first coordinate system.
[0045] Optionally, the geographic distance measurement module is used to traverse all network points and match the designated network point coordinates of each network point with the coordinate search range; if the matching result indicates that the designated network point coordinates are within the coordinate search range, the network point associated with the designated network point coordinates is determined as the network point to be measured, and the designated network point coordinates of the next network point are obtained to match with the coordinate search range; if the matching result indicates that the designated network point coordinates are not within the search coordinate range, the designated network point coordinates of the next network point are obtained to match with the coordinate search range.
[0046] Optionally, the geographic distance measurement module is used to determine the designated network point coordinates of the network point to be measured and the target user coordinates of the user, the designated network point coordinates include the designated network point longitude coordinates and the designated network point latitude coordinates, and the target user coordinates include the target user longitude coordinates and the target user latitude coordinates; calculate the longitude difference between the designated network point longitude coordinates and the target user longitude coordinates, and determine the radian corresponding to the longitude difference; calculate the latitude difference between the designated network point latitude coordinates and the target user latitude coordinates, and determine the radian corresponding to the latitude difference; calculate the spherical distance between the designated network point coordinates and the target user coordinates based on the radian corresponding to the longitude difference and the radian corresponding to the latitude difference, and take the product of the spherical distance and a preset unit conversion parameter as the geographic distance between the network point to be measured and the user.
[0047] Optionally, a latitude and longitude coordinate conversion module is used to determine the geographical distance between each of the to-be-displayed outlets and the user, and to sort the to-be-displayed outlets in ascending order of the geographical distance; and to render the positions of the to-be-displayed outlets one by one on the electronic map of the visualization interface according to the target outlet coordinates of the to-be-displayed outlets in the order of the to-be-displayed outlets.
[0048] According to a third aspect of the present application, a computer device is provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any one of the methods described in the first aspect when executing the computer program.
[0049] According to a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the methods described in the first aspect are implemented.
[0050] By means of the above technical scheme, the present application provides a network point search method, device, computer equipment and computer-readable storage medium. The present application first responds to the network point query instruction, determines the first coordinate system corresponding to the map application selected by the user based on the visual interface, and then obtains the user coordinates specified by the user in the first coordinate system. Further, the second coordinate system corresponding to the map application specified by the network point search function is determined, the specified user coordinates are converted into the target user coordinates in the second coordinate system, and the coordinate search range is determined according to the target user coordinates. Next, multiple network points to be measured are determined according to the coordinate search range. The designated network point coordinates of multiple network points to be measured in the second coordinate system are obtained, and the geographical distance between each network point to be measured and the user is calculated according to the designated network point coordinates and the target user coordinates of each network point to be measured. Finally, the network points to be measured whose geographical distance meets the preset distance condition are selected as the network points to be displayed, the designated network point coordinates of the network points to be displayed are converted into the target network point coordinates in the first coordinate system, and the network points to be displayed are displayed on the electronic map in the visual interface according to the target network point coordinates. The embodiment of the present application solves the problem of inaccurate location of network points due to different coordinate systems used by different map applications by establishing a conversion system between the first coordinate system and the second coordinate system, so that users can maintain consistency when searching for the location of network points on any map application, significantly improving the user experience. In addition, the embodiment of the present application does not rely on the API interface of a specific map application, and can avoid the problem of poor application stability caused by service providers changing the API, increasing fees or stopping services, thereby improving the sustainability of the application.
[0051] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0052] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Also, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:
[0053] Figure 1 A schematic diagram of a method for searching a website provided in an embodiment of the present application is shown;
[0054] Figure 2 A schematic diagram of a method for searching a website provided in an embodiment of the present application is shown;
[0055] Figure 3 A schematic diagram of the structure of a network point search device provided in an embodiment of the present application is shown;
[0056] Figure 4 A schematic diagram of the device structure of a computer device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0057] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.
[0058] With the continuous development of computer technology, maps and electronic navigation systems have been widely used. Many newly developed applications currently involve map functions, allowing users to query surrounding store outlets through map functions, and select according to distance and go to the nearest outlet according to map instructions. At present, in order to improve the security of application data, developers often choose the official API interface provided by various mainstream map applications to implement map functions. However, since different mainstream map applications use different coordinate systems, applications developed using different coordinate systems are prone to errors when retrieving outlet locations, resulting in inaccurate outlet locations retrieved by users, seriously affecting the user experience. At the same time, since developers rely on APIs provided by specific map service providers, if the service provider subsequently changes its API interface, increases service fees, or stops service, developers will have to re-evaluate and redevelop all map functions involved in the application, resulting in poor application stability. Therefore, an embodiment of the present application provides an outlet retrieval method, such as Figure 1 As shown, the method includes:
[0059] 101. In response to a network point query instruction, obtain user coordinates specified by a user in a first coordinate system, where the first coordinate system is a coordinate system corresponding to a map application selected by the user based on a visual interface.
[0060] Specifically, after the user accesses the application system based on the terminal device, the network point query function can be triggered in the visual interface provided by the application system to generate a network point query instruction. Further, in response to the network point query instruction, the system determines the map application selected by the user and the first coordinate system used by the map application, and then determines the designated user coordinates corresponding to the user in the first coordinate system.
[0061] 102. Convert the designated user coordinates into target user coordinates in a second coordinate system, and determine a coordinate search range according to the target user coordinates. The second coordinate system is a coordinate system corresponding to a map application designated by a network point search function.
[0062] Specifically, considering that the coordinate system used by the map application selected by the user may be different from the coordinate system used to develop the map function, in order to avoid errors in the geographical distance measured when performing subsequent network point retrieval, in the actual operation process, it is necessary to first convert the specified user coordinates into the target user coordinates under the second coordinate system, and then use the target user coordinates and the preset search range to determine the maximum longitude coordinate, minimum longitude coordinate, maximum latitude coordinate and minimum latitude coordinate. Finally, the coordinate search range is determined based on the maximum longitude coordinate, minimum longitude coordinate, maximum latitude coordinate and minimum latitude coordinate, to provide support for the subsequent preliminary screening of all network points.
[0063] 103. Determine a plurality of network points to be measured according to the coordinate search range, obtain designated network point coordinates of the plurality of network points to be measured in the second coordinate system, and calculate the geographical distance between each network point to be measured and the user according to the designated network point coordinates of each network point to be measured and the target user coordinates.
[0064] Specifically, in order to recommend network points that are closer to the user in the map application and improve the accuracy of the recommendation, in this step, the longitude and latitude coordinates of all network points are first preliminarily screened according to the coordinate search range. The network points whose longitude and latitude coordinates are within the coordinate search range are marked as network points to be measured, and then the geographic distance between each network point to be measured and the user is measured by obtaining the designated network point coordinates of multiple network points to be measured in the second coordinate system.
[0065] 104. Selecting a network point to be measured whose geographical distance meets a preset distance condition as a network point to be displayed, converting the designated network point coordinates of the network point to be displayed into target network point coordinates in the first coordinate system, and displaying the network point to be displayed on an electronic map in the visualization interface according to the target network point coordinates.
[0066] Specifically, the preset distance condition can be a system default distance range, or a distance range set by the developer according to actual needs. In the actual operation process, since the electronic map selected by the user adopts the first coordinate system, after the system determines the designated network point coordinates of the network point to be displayed, it is necessary to convert these designated network point coordinates into the target network point coordinates under the second coordinate system. After the coordinate conversion is completed, the location of the network point to be displayed is rendered in the electronic map of the visualization interface based on the converted coordinates.
[0067] The method provided in the embodiment of the present application can determine the first coordinate system corresponding to the map application selected by the user based on the visual interface in response to the network point query instruction, and then obtain the designated user coordinates of the user in the first coordinate system. Further, the second coordinate system corresponding to the map application specified by the network point search function is determined, the designated user coordinates are converted into the target user coordinates in the second coordinate system, and the coordinate search range is determined according to the target user coordinates. Next, the designated network point coordinates of multiple network points to be measured in the second coordinate system are obtained, and the geographical distance between each network point to be measured and the user is measured according to the designated network point coordinates and the target user coordinates of each network point to be measured. Finally, the network points to be measured whose geographical distances meet the preset distance conditions are selected as the network points to be displayed, the designated network point coordinates of the network points to be displayed are converted into the target network point coordinates in the first coordinate system, and the network points to be displayed are displayed on the electronic map in the visual interface according to the target network point coordinates. The embodiment of the present application solves the problem of inaccurate network point positions caused by different coordinate systems used by different map applications by establishing a conversion system between the first coordinate system and the second coordinate system, so that the user can maintain consistency when searching for the location of the network points on any map application, which significantly improves the user experience. In addition, the embodiments of the present application do not rely on the API interface of a specific map application, and can avoid the problem of poor application stability caused by the service provider changing the API, increasing fees or stopping services, thereby improving the sustainability of the application.
[0068] The present application embodiment provides a method for searching a website. Figure 2 As shown, the method includes:
[0069] 201. In response to a network point query instruction, determine a first coordinate system corresponding to a map application selected by a user based on a visual interface, and obtain a user coordinate specified by the user in the first coordinate system.
[0070] In the embodiment of the present application, the map application selected by the user based on the visual interface is mainly the mainstream map application in the current market, including Tencent Map, Baidu Map, Amap, etc. Among them, Baidu Map has the characteristics of detailed coordinates and timely update of location information, and can provide users with accurate map display. Tencent Map, on the other hand, excels in integration, especially in being able to achieve seamless docking in applications such as Tencent official accounts and mini-programs, while meeting the needs of active users and abundant traffic, it greatly improves the convenience of user experience. Therefore, the embodiment of the present application uses the mutual conversion of Tencent map coordinates and Baidu map coordinates as an example to illustrate the network point retrieval method, wherein the first coordinate system is the coordinate system GCJ-02 used by Tencent Map, and the second coordinate system is the coordinate system BD-09 used by Baidu Map. BD-09 is a coordinate system further encrypted on the basis of GCJ-02, and is only used by Baidu Map.
[0071] In actual application, when the user wants to view nearby outlets through a terminal device, the outlet query function can be triggered through the function entry provided by the visual interface, thereby issuing an outlet query instruction. With the help of the visual interface, users can easily initiate queries, which increases the convenience of operation. It should be noted that the terminal device can be a mobile phone, computer, tablet computer and other devices, and this application does not specifically limit the model of the terminal device. Furthermore, in order to improve the accuracy of the service and the user experience, and to ensure that the outlets recommended to the user are determined based on the user's real location, the system will obtain the user's specified user coordinates in the first coordinate system, that is, the coordinates in Tencent Maps, after receiving the query instruction initiated by the user.
[0072] 202. Determine a second coordinate system corresponding to the map application specified by the network point search function, and convert the specified user coordinates into target user coordinates in the second coordinate system.
[0073] In the embodiment of the present application, in order to solve the problem of inaccurate network point location caused by different coordinate systems used by different map applications, it is necessary to convert the designated user coordinates obtained in the GCJ-02 coordinate system into the target user coordinates in the second coordinate system BD-09 coordinate system, and then use the target user coordinates to perform subsequent network point retrieval operations, so that the user can obtain more accurate location feedback. The specific process of converting the designated user coordinates into the target user coordinates is as follows:
[0074] First, read the longitude coordinates of the specified user and the latitude coordinates of the specified user in the specified user coordinates. Use the preset longitude offset parameter to correct the longitude coordinates of the specified user, and use the preset latitude offset parameter to correct the latitude coordinates of the specified user. It should be noted that the preset longitude offset parameter is 0.0065, and the preset latitude offset parameter is 0.006. The preset longitude offset parameter and the preset latitude offset parameter are determined according to the standard protocol of the GCJ-02 coordinate system and the BD-09 coordinate system. Specifically, calculate the difference between the longitude coordinates of the specified user and the preset longitude offset parameter of 0.0065, and use the difference as the corrected longitude coordinates of the user. Calculate the difference between the latitude coordinates of the specified user and the preset latitude offset parameter of 0.006, and use the difference as the corrected latitude coordinates of the user.
[0075] Next, according to the corrected longitude coordinates of the designated user and the corrected latitude coordinates of the designated user, the corrected distance z and the corrected angle θ are calculated using the following formulas 1 and 2.
[0076]
[0077]
[0078] Wherein, x is the corrected longitude coordinate of the specified user; y is the corrected latitude coordinate of the specified user.
[0079] Finally, the cosine value of the correction angle θ is calculated, and the product of the cosine value and the correction distance z is used as the longitude coordinate of the target user, the sine value of the correction angle θ is calculated, and the product of the sine value and the correction distance z is used as the latitude coordinate of the target user, and the longitude coordinate of the target user and the latitude coordinate of the target user are combined into the target user coordinate in the second coordinate system. In the embodiment of the present application, the problem of inaccurate location of the network point caused by different coordinate systems used by different map applications can be solved through precise offset and correction calculation, so that the location of the network point retrieved by the user on any map application can be consistent, thereby improving the user experience.
[0080] 203. Determine a coordinate search range according to the target user coordinates, and determine a plurality of network points to be measured among all network points according to the coordinate search range.
[0081] In the embodiment of the present application, considering that the geographical distance measurement of all network points needs to consume a lot of resources, the system will preliminarily screen all network points when performing geographical distance measurement, and then perform geographical distance measurement on the screened network points to be measured, while avoiding the waste of computing resources, the working efficiency and response speed of the system are improved. The specific process of determining multiple network points to be measured is as follows:
[0082] First, the system determines the preset search range. The preset search range can use the system default distance range, or it can use the distance range set by the developer according to actual needs. During actual operation, the distance range can be set to 5km, 10km, or 30km.
[0083] Further, the ratio of the preset search range to the number of kilometers corresponding to each longitude is calculated, and the difference between the longitude coordinate of the target user and the ratio is used as the minimum longitude coordinate value. The sum of the longitude coordinate of the target user and the ratio is used as the maximum longitude coordinate value. The ratio of the preset search range to the number of kilometers corresponding to each latitude is calculated, and the difference between the latitude coordinate of the target user and the ratio is used as the minimum latitude coordinate value, and the sum of the latitude coordinate of the target user and the ratio is used as the maximum latitude coordinate value. The coordinate search range is composed of the coordinates composed of the minimum longitude coordinate value and the minimum latitude coordinate value, the coordinates composed of the minimum longitude coordinate value and the maximum latitude coordinate value, the coordinates composed of the maximum longitude coordinate value and the minimum latitude coordinate value, and the coordinates composed of the maximum longitude coordinate value and the maximum latitude coordinate value. For example, the longitude coordinate of the target user is 120.0°, the latitude coordinate of the target user is 30.0°, and the preset search range is 5km. The ratio of the preset search range to the number of kilometers corresponding to each longitude 10.28374258026089786013677476285 is approximately 0.486204313359344, and the ratio of the preset search range to the number of kilometers corresponding to each latitude 11.17126915064105572998430142873 is approximately 0.447576719580968. The minimum longitude coordinate value is 120.0°-0.486204313359344°, which is approximately 119.513796°; the maximum longitude coordinate value is 120.0°+0.486204313359344°, which is approximately 120.486204°; the minimum latitude coordinate value is 30.0°-0.447576719580968°, which is approximately 29.552423°; the maximum latitude coordinate value is 30.0°+0.447576719580968°, which is approximately 30.447577°. The resulting coordinate retrieval range is: lower left corner: (119.513796°, 29.552423°); upper left corner: (119.513796°, 30.447577°); lower right corner: (120.486204°, 29.552423°); upper right corner: (120.486204°, 30.447577°).
[0084] Finally, all the points are traversed, and the designated point coordinates of each point are matched with the coordinate search range. If the matching result indicates that the designated point coordinates are within the coordinate search range, the point associated with the designated point coordinates is determined as the point to be measured, and the designated point coordinates of the next point are obtained to match with the coordinate search range. If the matching result indicates that the designated point coordinates are not within the search coordinate range, the designated point coordinates of the next point are obtained to match with the coordinate search range.
[0085] 204. Obtain designated network point coordinates of a plurality of network points to be measured in the second coordinate system, and calculate the geographical distance between each network point to be measured and the user according to the designated network point coordinates of each network point to be measured and the target user coordinates.
[0086] In the embodiment of the present application, in order to accurately measure the geographical distance between the network point to be measured and the target user, it is necessary to obtain the coordinates of the network point to be measured and the target user in the same coordinate system, that is, obtain the designated network point coordinates of the network point to be measured in the second coordinate system and the target user coordinates of the target user in the second coordinate system. Then, according to the designated network point coordinates and the target user coordinates of each network point to be measured, the geographical distance between each network point to be measured and the user is measured. The specific process of measuring the geographical distance between each network point to be measured and the user is as follows:
[0087] First, determine the designated network point coordinates of the network point to be measured and the target user coordinates of the user, the designated network point coordinates include the designated network point longitude coordinates and the designated network point latitude coordinates, and the target user coordinates include the target user longitude coordinates and the target user latitude coordinates. Specifically, the longitude difference between the designated network point longitude coordinates and the target user longitude coordinates is calculated according to the following formula 3, and the radian dLon corresponding to the longitude difference is determined. The latitude difference between the designated network point latitude coordinates and the target user latitude coordinates is calculated according to the following formula 4, and the radian dLat corresponding to the latitude difference is determined.
[0088] Formula 3: dLon = rad(lon2-lon1)
[0089] Formula 4: dLat=rad(lat2-lat1)
[0090] Among them, lon2 is the longitude coordinate of the designated network point; lon1 is the longitude coordinate of the target user; lat2 is the latitude coordinate of the designated network point; lat1 is the latitude coordinate of the target user. Then, according to the arc corresponding to the longitude difference and the arc corresponding to the latitude difference, the spherical distance between the designated network point coordinate and the target user coordinate is calculated. Specifically, the spherical distance distance can be calculated based on the following formulas 5 to 7:
[0091] Formula 5: distance=R*c
[0092]
[0093]
[0094] Where R is the radius of the Earth.
[0095] Finally, the product of the spherical distance and the preset unit conversion parameter is used as the geographical distance between the network point to be measured and the user.
[0096] 205. Selecting a network point to be measured whose geographical distance meets a preset distance condition as a network point to be displayed, and converting the designated network point coordinates of the network point to be displayed into target network point coordinates in the first coordinate system.
[0097] In the embodiment of the present application, the longitude coordinates and latitude coordinates of the designated network point in the designated network point coordinates are read, and the following formula 8 and formula are used according to the longitude coordinates and latitude coordinates of the designated network point.
[0098] Formula 9 calculates the distance z to be corrected and the angle θ to be corrected.
[0099]
[0100]
[0101] Wherein, x is the longitude coordinate of the designated point; y is the latitude coordinate of the designated point. Further, the cosine value of the angle θ to be corrected is calculated, and the product of the cosine value and the distance z to be corrected is used as the longitude coordinate to be corrected, and the sine value of the angle θ to be corrected is calculated, and the product of the sine value and the distance z to be corrected is used as the latitude coordinate to be corrected. The latitude coordinate to be corrected is corrected by using the preset latitude offset parameter to obtain the latitude coordinate of the target point, and the longitude coordinate to be corrected is corrected by using the preset longitude offset parameter to obtain the longitude coordinate of the target point. Specifically, the sum of the preset latitude offset parameter and the latitude coordinate to be corrected is used as the latitude coordinate of the target point, the sum of the preset longitude offset parameter and the longitude coordinate to be corrected is used as the longitude coordinate of the target point, and the longitude coordinate of the target point and the latitude coordinate of the target point are combined into the target point coordinate under the first coordinate system. By calculating the longitude and latitude coordinates to be corrected, the target point coordinate can be more accurately derived from the designated point coordinates, thereby improving the accuracy of positioning.
[0102] 206. Display the network points to be displayed on the electronic map in the visualization interface according to the coordinates of the target network points.
[0103] Specifically, determine the geographical distance between each outlet to be displayed and the user, and sort the outlets to be displayed in order of geographical distance from small to large, so that the outlet closest to the user will be ranked first, making it easier for the user to quickly find the nearest outlet. According to the order of the outlets to be displayed, the outlets to be displayed are rendered on the electronic map of the visualization interface in the form of icons, labels or other visual elements according to the target outlet coordinates of the outlets to be displayed one by one. During the rendering process, interactive functions can be added to each outlet to be displayed. For example, after clicking on the outlet, a detailed information window pops up to display the address, contact information, service content, etc. of the outlet. By rendering the location of the outlets on the electronic map, users can be provided with intuitive and clear information display, thereby improving user satisfaction.
[0104] The method provided in the embodiment of the present application can determine the first coordinate system corresponding to the map application selected by the user based on the visual interface in response to the network point query instruction, and then obtain the specified user coordinates of the user in the first coordinate system. Further, determine the second coordinate system corresponding to the map application specified by the network point search function, convert the specified user coordinates into the target user coordinates in the second coordinate system, and determine the coordinate search range according to the target user coordinates. Next, determine a plurality of network points to be measured according to the coordinate search range. Obtain the designated network point coordinates of a plurality of network points to be measured in the second coordinate system, and calculate the geographical distance between each network point to be measured and the user according to the designated network point coordinates and the target user coordinates of each network point to be measured. Finally, select the network points to be measured whose geographical distance meets the preset distance condition as the network points to be displayed, convert the designated network point coordinates of the network points to be displayed into the target network point coordinates in the first coordinate system, and display the network points to be displayed on the electronic map in the visual interface according to the target network point coordinates. The embodiment of the present application solves the problem of inaccurate location of network points due to different coordinate systems used by different map applications by establishing a conversion system between the first coordinate system and the second coordinate system, so that users can maintain consistency when searching for the location of network points on any map application, significantly improving the user experience. In addition, the embodiment of the present application does not rely on the API interface of a specific map application, and can avoid the problem of poor application stability caused by service providers changing the API, increasing fees or stopping services, thereby improving the sustainability of the application.
[0105] Further, as Figure 1 In the specific implementation of the method, the present application embodiment provides a network point search device, such as Figure 3 As shown, the device includes: a latitude and longitude coordinate conversion module 301, a geographic distance measurement module 302, and a geographic location retrieval module 303.
[0106] The latitude and longitude coordinate conversion module 301 is used to obtain the user coordinates specified by the user in a first coordinate system in response to the network point query instruction, where the first coordinate system is the coordinate system corresponding to the map application selected by the user based on the visual interface;
[0107] The latitude and longitude coordinate conversion module 301 is used to convert the designated user coordinates into target user coordinates in a second coordinate system, and determine a coordinate search range according to the target user coordinates, wherein the second coordinate system is a coordinate system corresponding to a map application designated by a network point search function;
[0108] The geographic distance measuring module 302 is used to determine a plurality of network points to be measured according to the coordinate search range, obtain the designated network point coordinates of each network point to be measured in the second coordinate system, and measure the geographic distance between each network point to be measured and the user according to the designated network point coordinates of each network point to be measured and the target user coordinates;
[0109] The geographical location search module 303 is used to select the network points to be measured whose geographical distances meet the preset distance conditions as the network points to be displayed;
[0110] The latitude and longitude coordinate conversion module 301 is used to convert the designated network point coordinates of the network point to be displayed into the target network point coordinates in the first coordinate system, and to display the network point to be displayed on the electronic map in the visualization interface according to the target network point coordinates.
[0111] In a specific application scenario, the longitude and latitude coordinate conversion module 301 is used to read the longitude coordinates of the designated user and the latitude coordinates of the designated user in the designated user coordinates, use a preset longitude offset parameter to correct the longitude coordinates of the designated user, and use a preset latitude offset parameter to correct the latitude coordinates of the designated user, wherein the preset longitude offset parameter and the preset latitude offset parameter are determined according to the standard protocol of the first coordinate system and the second coordinate system; determine the correction distance and the correction angle according to the corrected longitude coordinates of the designated user and the corrected latitude coordinates of the designated user; calculate the cosine value of the correction angle, and use the product of the cosine value and the correction distance as the longitude coordinates of the target user, calculate the sine value of the correction angle, and use the product of the sine value and the correction distance as the latitude coordinates of the target user; combine the longitude coordinates of the target user and the latitude coordinates of the target user into the target user coordinates under the second coordinate system.
[0112] In a specific application scenario, the longitude and latitude coordinate conversion module 301 is used to determine a preset search range, and calculate the ratio of the preset search range to the number of kilometers corresponding to each longitude, and use the difference between the longitude coordinate of the target user and the ratio as the minimum longitude coordinate value, and use the sum of the longitude coordinate of the target user and the ratio as the maximum longitude coordinate value; calculate the ratio of the preset search range to the number of kilometers corresponding to each latitude, and use the difference between the latitude coordinate of the target user and the ratio as the minimum latitude coordinate value, and use the sum of the latitude coordinate of the target user and the ratio as the maximum latitude coordinate value; determine the coordinate search range according to the coordinates formed by the minimum longitude coordinate value and the minimum latitude coordinate value, the coordinates formed by the minimum longitude coordinate value and the maximum latitude coordinate value, the coordinates formed by the maximum longitude coordinate value and the minimum latitude coordinate value, and the coordinates formed by the maximum longitude coordinate value and the maximum latitude coordinate value.
[0113] In a specific application scenario, the longitude and latitude coordinate conversion module 301 is used to read the longitude coordinates and latitude coordinates of the specified grid point in the specified grid point coordinates, and determine the distance to be corrected and the angle to be corrected according to the longitude coordinates and latitude coordinates of the specified grid point; calculate the cosine value of the angle to be corrected, and use the product of the cosine value and the distance to be corrected as the longitude coordinate to be corrected, calculate the sine value of the angle to be corrected, and use the product of the sine value and the distance to be corrected as the latitude coordinate to be corrected; use the preset latitude offset parameter to correct the latitude coordinate to obtain the latitude coordinate of the target grid point, and use the preset longitude offset parameter to correct the longitude coordinate to obtain the longitude coordinate of the target grid point; combine the longitude coordinate of the target grid point and the latitude coordinate of the target grid point into the target grid point coordinate under the first coordinate system.
[0114] In a specific application scenario, the geographic distance measurement module 302 is used to traverse all network points and match the designated network point coordinates of each network point with the coordinate search range; if the matching result indicates that the designated network point coordinates are within the coordinate search range, the network point associated with the designated network point coordinates is determined as the network point to be measured, and the designated network point coordinates of the next network point are obtained to match with the coordinate search range; if the matching result indicates that the designated network point coordinates are not within the search coordinate range, the designated network point coordinates of the next network point are obtained to match with the coordinate search range.
[0115] In a specific application scenario, the geographic distance measurement module 302 is used to determine the designated network point coordinates of the network point to be measured and the target user coordinates of the user, the designated network point coordinates include the designated network point longitude coordinates and the designated network point latitude coordinates, and the target user coordinates include the target user longitude coordinates and the target user latitude coordinates; calculate the longitude difference between the designated network point longitude coordinates and the target user longitude coordinates, and determine the radian corresponding to the longitude difference; calculate the latitude difference between the designated network point latitude coordinates and the target user latitude coordinates, and determine the radian corresponding to the latitude difference; calculate the spherical distance between the designated network point coordinates and the target user coordinates based on the radian corresponding to the longitude difference and the radian corresponding to the latitude difference, and use the product of the spherical distance and the preset unit conversion parameter as the geographic distance between the network point to be measured and the user.
[0116] In a specific application scenario, the latitude and longitude coordinate conversion module 301 is used to determine the geographical distance between each of the to-be-displayed outlets and the user, and to sort the to-be-displayed outlets in ascending order of the geographical distance; and to render the positions of the to-be-displayed outlets one by one on the electronic map of the visualization interface according to the order of the to-be-displayed outlets and the target outlet coordinates of the to-be-displayed outlets.
[0117] The device provided in the embodiment of the present application can respond to the network point query instruction, determine the first coordinate system corresponding to the map application selected by the user based on the visual interface, and then obtain the specified user coordinates of the user in the first coordinate system. Further, determine the second coordinate system corresponding to the map application specified by the network point search function, convert the specified user coordinates into the target user coordinates in the second coordinate system, and determine the coordinate search range according to the target user coordinates. Next, determine a plurality of network points to be measured according to the coordinate search range. Obtain the designated network point coordinates of a plurality of network points to be measured in the second coordinate system, and calculate the geographical distance between each network point to be measured and the user according to the designated network point coordinates and the target user coordinates of each network point to be measured. Finally, select the network points to be measured whose geographical distance meets the preset distance condition as the network points to be displayed, convert the designated network point coordinates of the network points to be displayed into the target network point coordinates in the first coordinate system, and display the network points to be displayed on the electronic map in the visual interface according to the target network point coordinates. The embodiment of the present application solves the problem of inaccurate location of network points due to different coordinate systems used by different map applications by establishing a conversion system between the first coordinate system and the second coordinate system, so that users can maintain consistency when searching for the location of network points on any map application, significantly improving the user experience. In addition, the embodiment of the present application does not rely on the API interface of a specific map application, and can avoid the problem of poor application stability caused by service providers changing the API, increasing fees or stopping services, thereby improving the sustainability of the application.
[0118] It should be noted that for other corresponding descriptions of the functional units involved in the network point search device provided in the embodiment of the present application, reference can be made to Figure 1 and Figure 2 The corresponding description in will not be repeated here.
[0119] In an exemplary embodiment, see Figure 4 , and also provides a device, which includes a communication bus, a processor, a memory and a communication interface, and may also include an input and output interface and a display device, wherein each functional unit can communicate with each other through the bus. The memory stores a computer program, and the processor is used to execute the program stored in the memory and execute the network site retrieval method in the above embodiment.
[0120] A computer-readable storage medium stores a computer program, which implements the steps of the network site search method when executed by a processor.
[0121] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by hardware, or by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.
[0122] Those skilled in the art will appreciate that the accompanying drawings are merely schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily required for implementing the present application.
[0123] Those skilled in the art will appreciate that the modules in the device in the implementation scenario can be distributed in the device in the implementation scenario according to the implementation scenario description, or can be changed accordingly and located in one or more devices different from the implementation scenario. The modules in the above implementation scenario can be combined into one module, or can be further split into multiple sub-modules.
[0124] The above application serial numbers are for description only and do not represent the advantages or disadvantages of the implementation scenarios.
[0125] The above disclosure only discloses several specific implementation scenarios of the present application. However, the present application is not limited thereto, and any changes that can be conceived by technicians in this field should fall within the scope of protection of the present application.
Claims
1. A website search method, characterized in that: include: In response to the network point query instruction, obtaining user coordinates specified by the user in a first coordinate system, where the first coordinate system is a coordinate system corresponding to a map application selected by the user based on a visual interface; Convert the designated user coordinates into target user coordinates in a second coordinate system, and determine a coordinate search range according to the target user coordinates, wherein the second coordinate system is a coordinate system corresponding to a map application specified by a network point search function; Determine a plurality of network points to be measured according to the coordinate search range, obtain the designated network point coordinates of each network point to be measured in the second coordinate system, and calculate the geographical distance between each network point to be measured and the user according to the designated network point coordinates of each network point to be measured and the target user coordinates; A network point to be measured whose geographical distance meets a preset distance condition is selected as a network point to be displayed, the designated network point coordinates of the network point to be displayed are converted into target network point coordinates under a first coordinate system, and the network point to be displayed is displayed on the electronic map in the visualization interface according to the target network point coordinates.
2. The method according to claim 1, characterized in that The converting the designated user coordinates into target user coordinates in a second coordinate system includes: Reading the longitude coordinates of the designated user and the latitude coordinates of the designated user in the designated user coordinates, correcting the longitude coordinates of the designated user by using a preset longitude offset parameter, and correcting the latitude coordinates of the designated user by using a preset latitude offset parameter, wherein the preset longitude offset parameter and the preset latitude offset parameter are determined according to a standard protocol of the first coordinate system and the second coordinate system; Determine a correction distance and a correction angle according to the corrected longitude coordinates of the designated user and the corrected latitude coordinates of the designated user; Calculate the cosine value of the correction angle, and use the product of the cosine value and the correction distance as the longitude coordinate of the target user; calculate the sine value of the correction angle, and use the product of the sine value and the correction distance as the latitude coordinate of the target user; The target user longitude coordinates and the target user latitude coordinates are combined into target user coordinates in the second coordinate system.
3. The method according to claim 2, characterized in that The determining of a coordinate search range according to the target user coordinates includes: Determine a preset search range, and calculate the ratio of the preset search range to the number of kilometers corresponding to each longitude, take the difference between the longitude coordinate of the target user and the ratio as the minimum longitude coordinate value, and take the sum of the longitude coordinate of the target user and the ratio as the maximum longitude coordinate value; Calculate the ratio of the preset search range to the number of kilometers corresponding to each latitude, take the difference between the target user's latitude coordinate and the ratio as the minimum latitude coordinate value, and take the sum of the target user's latitude coordinate and the ratio as the maximum latitude coordinate value; The coordinate search range is determined according to the coordinates formed by the minimum longitude coordinate value and the minimum latitude coordinate value, the coordinates formed by the minimum longitude coordinate value and the maximum latitude coordinate value, the coordinates formed by the maximum longitude coordinate value and the minimum latitude coordinate value, and the coordinates formed by the maximum longitude coordinate value and the maximum latitude coordinate value.
4. The method according to claim 2, characterized in that: The step of converting the designated grid point coordinates of the grid points to be displayed into target grid point coordinates in the first coordinate system includes: Reading the longitude coordinates of the designated network point and the latitude coordinates of the designated network point in the designated network point coordinates, and determining the distance to be corrected and the angle to be corrected according to the longitude coordinates of the designated network point and the latitude coordinates of the designated network point; Calculate the cosine value of the angle to be corrected, and use the product of the cosine value and the distance to be corrected as the longitude coordinate to be corrected; calculate the sine value of the angle to be corrected, and use the product of the sine value and the distance to be corrected as the latitude coordinate to be corrected; The latitude coordinates to be corrected are corrected by using a preset latitude offset parameter to obtain the latitude coordinates of the target network point, and the longitude coordinates to be corrected are corrected by using a preset longitude offset parameter to obtain the longitude coordinates of the target network point; The target network point longitude coordinates and the target network point latitude coordinates are combined into the target network point coordinates in the first coordinate system.
5. The method according to claim 1, characterized in that The step of determining a plurality of network points to be measured according to the coordinate search range includes: Traversing all the network points, matching the designated network point coordinates of each network point with the coordinate search range; If the matching result indicates that the coordinates of the designated network point are within the coordinate search range, the network point associated with the designated network point coordinates is determined as the network point to be measured, and the designated network point coordinates of the next network point are obtained to match with the coordinate search range; If the matching result indicates that the designated network point coordinates are not within the search coordinate range, the designated network point coordinates of the next network point are obtained to match with the coordinate search range.
6. The method according to claim 5, characterized in that The step of obtaining the designated network point coordinates of each network point to be measured in the second coordinate system, and calculating the geographical distance between each network point to be measured and the user according to the designated network point coordinates of each network point to be measured and the target user coordinates, includes: Determine the designated network point coordinates of the network point to be measured and the target user coordinates of the user, the designated network point coordinates include the designated network point longitude coordinates and the designated network point latitude coordinates, and the target user coordinates include the target user longitude coordinates and the target user latitude coordinates; Calculating the longitude difference between the longitude coordinates of the designated network point and the longitude coordinates of the target user, and determining the arc corresponding to the longitude difference; Calculating the latitude difference between the latitude coordinates of the designated network point and the latitude coordinates of the target user, and determining the arc corresponding to the latitude difference; The spherical distance between the coordinates of the designated network point and the coordinates of the target user is calculated according to the radian corresponding to the longitude difference and the radian corresponding to the latitude difference, and the product of the spherical distance and the preset unit conversion parameter is used as the geographical distance between the network point to be measured and the user.
7. The method according to claim 1, characterized in that The step of displaying the network point to be displayed on the electronic map in the visualization interface according to the coordinates of the target network point includes: Determine the geographical distance between each of the to-be-displayed outlets and the user, and sort the to-be-displayed outlets in ascending order of the geographical distances; According to the order of the network points to be displayed, the positions of the network points to be displayed are rendered on the electronic map of the visualization interface one by one according to the target network point coordinates of the network points to be displayed.
8. A website search device, characterized in that: include: A latitude and longitude coordinate conversion module, for obtaining, in response to a network point query instruction, a user-specified user coordinate in a first coordinate system, where the first coordinate system is a coordinate system corresponding to a map application selected by the user based on a visual interface; A latitude and longitude coordinate conversion module, used to convert the designated user coordinates into target user coordinates in a second coordinate system, and determine a coordinate search range according to the target user coordinates, wherein the second coordinate system is a coordinate system corresponding to a map application designated by a network point search function; A geographic distance measurement module, used to determine a plurality of network points to be measured according to the coordinate search range, and obtain the designated network point coordinates of each network point to be measured in the second coordinate system, and to measure the geographic distance between each network point to be measured and the user according to the designated network point coordinates of each network point to be measured and the target user coordinates; A geographical location search module is used to select the network points to be measured whose geographical distances meet the preset distance conditions as the network points to be displayed; The latitude and longitude coordinate conversion module is used to convert the designated network point coordinates of the network point to be displayed into the target network point coordinates in the first coordinate system, and to display the network point to be displayed on the electronic map in the visualization interface according to the target network point coordinates.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.