Geographic information processing method, device, electronic device and medium
By calculating the distance set and the reference set between POIs to determine whether the points of interest are related, the problem of low accuracy and large calculation amount in calculating POI distances in the existing technology is solved, and a more efficient calculation process is achieved.
Patent Information
- Application Number
- CN202010482360.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-29
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-05-29
AI Technical Summary
The method used to calculate the distance between two Points of Interest (POI) in the prior art has low accuracy and a large amount of calculation, resulting in low efficiency.
Calculate the distance set based on the geographical information of the interest points and the geographical information of the reference points, generate the reference set, and determine whether the interest points are related, and then calculate the distance between the interest points, using the preset distance and distance set for rounding processing. Generate a reference set to reduce the amount of calculation and improve calculation efficiency.
The computing efficiency is improved, the amount of computing is reduced, the computing speed and user experience are enhanced, and the consumption of computing resources is reduced.
Smart Images

Figure CN113742435B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and more specifically, to a geographic information processing method, device, electronic device and medium. Background Art
[0002] With the rapid development of electronic technology and communication technology, various applications are increasingly used in mobile terminals such as mobile phones. Many applications usually involve some functions based on geographic location. For example, recommendation services based on points of interest (POIs). POI information is one of the important elements in electronic maps, covering geographical information that users are interested in in their daily lives, such as restaurants, entertainment, financial institutions, tourist attractions, landmark buildings, gas stations, and parking lots.
[0003] However, in the process of implementing the concept of the present invention, the inventors found that there are at least the following problems in the related art: the method for calculating the distance between two POIs in the related art has low accuracy and large amount of calculation. Summary of the invention
[0004] In view of this, the present disclosure provides a geographic information processing method, device, electronic device and medium.
[0005] One aspect of the present disclosure provides a geographic information processing method, including: based on geographic information of a first point of interest and respective geographic information of a plurality of reference points, calculating a distance between the first point of interest and each of the plurality of reference points to obtain a first distance set, the first distance set including a plurality of first distance information respectively corresponding to the plurality of reference points; based on geographic information of a second point of interest and respective geographic information of the plurality of reference points, calculating a distance between the second point of interest and each of the plurality of reference points to obtain a second distance set, the second distance set including a plurality of second distance information respectively corresponding to the plurality of reference points; based on a preset distance and the first distance set, generating a reference set, the reference set including a plurality of reference distance sets, each of the plurality of reference distance sets including a plurality of reference distance information respectively corresponding to the plurality of reference points; based on the second distance set and the reference set, determining whether the second point of interest is associated with the first point of interest; and if it is determined that the second point of interest is associated with the first point of interest, calculating the distance between the first point of interest and the second point of interest based on the geographic information of the first point of interest and the geographic information of the second point of interest.
[0006] According to an embodiment of the present disclosure, generating a reference set based on a preset distance and the first distance set includes: rounding the quotient between each first distance information in the multiple first distance information and the preset distance to obtain a basic reference distance set, and adding or subtracting at least one element in the basic reference distance set from a unit distance to obtain multiple other reference distance sets, wherein the basic reference distance set and the other reference distance sets constitute the reference set.
[0007] According to an embodiment of the present disclosure, the method further includes: rounding off the quotient between each second distance information in the plurality of second distance information and the preset distance to obtain a processed second distance set.
[0008] According to an embodiment of the present disclosure, determining whether the second point of interest is associated with the first point of interest based on the second distance set and the reference set includes: determining whether there is a reference distance set in the reference set that is the same as the processed second distance set, and if so, determining that the second point of interest is associated with the first point of interest.
[0009] According to an embodiment of the present disclosure, the second point of interest includes multiple second points of interest. The determining whether the second point of interest is associated with the first point of interest includes: determining whether each of the multiple second points of interest is associated with the first point of interest, and obtaining at least one associated second point of interest associated with the first point of interest. The calculating the distance between the first point of interest and the second point of interest includes: calculating the distance between each of the at least one associated second point of interest and the first point of interest. The method also includes: based on the distance between each associated second point of interest and the first point of interest, determining at least one second point of interest within the preset distance range of the first point of interest from the at least one associated second point of interest.
[0010] According to an embodiment of the present disclosure, the multiple reference points include three reference points.
[0011] According to an embodiment of the present disclosure, the geographic information includes longitude and latitude information.
[0012] Another aspect of the present disclosure provides a geographic information processing device, including a first calculation module, a second calculation module, a generation module, a first determination module and a third calculation module. The first calculation module is used to calculate the distance between the first interest point and each of the reference points based on the geographic information of the first interest point and the respective geographic information of the multiple reference points, and obtain a first distance set, wherein the first distance set includes a plurality of first distance information corresponding to the multiple reference points. The second calculation module is used to calculate the distance between the second interest point and each of the reference points based on the geographic information of the second interest point and the respective geographic information of the multiple reference points, and obtain a second distance set, wherein the second distance set includes a plurality of second distance information corresponding to the multiple reference points. The generation module is used to generate a reference set based on a preset distance and the first distance set, wherein the reference set includes a plurality of reference distance sets, and each of the plurality of reference distance sets includes a plurality of reference distance information corresponding to the plurality of reference points. The first determination module is used to determine whether the second interest point is associated with the first interest point based on the second distance set and the reference set. The third calculation module is used to calculate the distance between the first point of interest and the second point of interest based on the geographic information of the first point of interest and the geographic information of the second point of interest when it is determined that the second point of interest is associated with the first point of interest.
[0013] According to an embodiment of the present disclosure, generating a reference set based on a preset distance and the first distance set includes: rounding the quotient between each first distance information in the multiple first distance information and the preset distance to obtain a basic reference distance set, and adding or subtracting at least one element in the basic reference distance set from a unit distance to obtain multiple other reference distance sets, wherein the basic reference distance set and the other reference distance sets constitute the reference set.
[0014] According to an embodiment of the present disclosure, the device further includes: a processing module, configured to round off the quotient between each second distance information in the plurality of second distance information and the preset distance to obtain a processed second distance set.
[0015] According to an embodiment of the present disclosure, determining whether the second point of interest is associated with the first point of interest based on the second distance set and the reference set includes: determining whether there is a reference distance set in the reference set that is the same as the processed second distance set, and if so, determining that the second point of interest is associated with the first point of interest.
[0016] According to an embodiment of the present disclosure, the second point of interest includes multiple second points of interest. The determining whether the second point of interest is associated with the first point of interest includes: determining whether each of the multiple second points of interest is associated with the first point of interest, and obtaining at least one associated second point of interest associated with the first point of interest. The calculating the distance between the first point of interest and the second point of interest includes: calculating the distance between each of the at least one associated second point of interest and the first point of interest. The device also includes: a second determination module, which is used to determine at least one second point of interest within the preset distance range of the first point of interest from the at least one associated second point of interest based on the distance between each associated second point of interest and the first point of interest.
[0017] According to an embodiment of the present disclosure, the multiple reference points include three reference points.
[0018] According to an embodiment of the present disclosure, the geographic information includes longitude and latitude information.
[0019] Another aspect of the present disclosure provides an electronic device, comprising: one or more processors, and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the method as described above.
[0020] Another aspect of the present disclosure provides a computer-readable medium storing computer-executable instructions, which are used to implement the above method when executed.
[0021] Another aspect of the present disclosure provides a computer program, which includes computer executable instructions, and the instructions are used to implement the method described above when executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0023] Figure 1 The exemplary system architecture of the geographic information processing method and device according to the embodiment of the present disclosure is schematically shown;
[0024] Figure 2 The application scenarios of the geographic information processing method and device according to the embodiments of the present disclosure are schematically shown;
[0025] Figure 3 A flowchart of a geographic information processing method according to an embodiment of the present disclosure is schematically shown;
[0026] Figure 4A block diagram schematically shows a geographic information processing device according to an embodiment of the present disclosure; and
[0027] Figure 5 A block diagram of an electronic device according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0028] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0029] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The words "a", "an (kind)" and "the" used herein should also include the meanings of "multiple" and "multiple", unless the context clearly indicates otherwise. In addition, the terms "including", "comprising" and the like used herein indicate the presence of the features, steps, operations and / or components, but do not exclude the presence or addition of one or more other features, steps, operations or components.
[0030] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0031] In the case of using expressions such as "at least one of A, B, and C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but not be limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). In the case of using expressions such as "at least one of A, B, or C, etc.", it should generally be interpreted in accordance with the meaning of the expression generally understood by those skilled in the art (for example, "a system having at least one of A, B, or C" should include but not be limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.). Those skilled in the art should also understand that any transitional conjunctions and / or phrases that substantially indicate two or more optional items, whether in the specification, claims, or drawings, should be understood to give the possibility of including one of these items, either of these items, or both of these items. For example, the phrase "A or B" should be understood to include the possibilities of "A" or "B", or "A and B".
[0032] Embodiments of the present disclosure provide a geographic information processing method and device. The method includes calculating the distance between the first point of interest and each of the multiple reference points based on the geographic information of the first point of interest and the geographic information of each of the multiple reference points to obtain a first distance set. Based on the geographic information of the second point of interest and the geographic information of each of the multiple reference points, the distance between the second point of interest and each of the multiple reference points is calculated to obtain a second distance set. Then, based on the preset distance and the first distance set, a reference set is generated, the reference set includes multiple reference distance sets, and each of the multiple reference distance sets includes multiple reference distance information corresponding to multiple reference points. Based on the second distance set and the reference set, it is determined whether the second point of interest is associated with the first point of interest, and when it is determined that the second point of interest is associated with the first point of interest, the distance between the first point of interest and the second point of interest is calculated based on the geographic information of the first point of interest and the geographic information of the second point of interest.
[0033] Figure 1 A geographic information processing method and an exemplary system architecture 100 according to an embodiment of the present disclosure are schematically shown.
[0034] like Figure 1 As shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is a medium for providing a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0035] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).
[0036] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0037] The server 105 may be a server that provides various services, such as a background management server (only an example) that provides support for websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process the received data such as user requests, and feed back the processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0038] It should be noted that the geographic information processing method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the geographic information processing device provided in the embodiment of the present disclosure can generally be set in the server 105. The geographic information processing method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the geographic information processing device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the terminal devices 101, 102, 103 and / or the server 105.
[0039] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0040] Figure 2 The application scenarios of the geographic information processing method and device according to the embodiments of the present disclosure are schematically illustrated.
[0041] like Figure 2 As shown, the application scenario includes a first point of interest A and multiple second points of interest B (e.g., B1, B2, B3, and B4). The first point of interest A may represent the user's geographic location, and the multiple second points of interest B may represent the geographic locations of residential communities. The user may query all communities within a k-kilometer range from the user's current location through an application on a terminal device, where k may have any value greater than 0.
[0042] It can be understood that within the scope of an electronic map (for example, the world), the number of cells is very large, and directly calculating the distance from each cell to the user will bring a very large amount of calculation. Therefore, the method provided in the embodiment of the present disclosure can first determine whether each cell is associated with the user, filter out the cells associated with the user, and then calculate the distance between each associated cell and the user, and then determine the cells within a k-kilometer range from the user's current location, thereby reducing the amount of calculation and improving the calculation efficiency.
[0043] Figure 3 The flowchart of the geographic information processing method according to the embodiment of the present disclosure is schematically shown.
[0044] like Figure 3 As shown, the method includes operations S301 to S305.
[0045] In operation S301, based on the geographic information of the first point of interest and the respective geographic information of the multiple reference points, the distance between the first point of interest and each of the multiple reference points is calculated to obtain a first distance set, which includes multiple first distance information corresponding to the multiple reference points respectively.
[0046] According to the embodiments of the present disclosure, multiple points can be selected as reference points. For example, in order to reduce the amount of calculation, a smaller number of reference points can be selected, and in order to improve the correlation accuracy, a larger number of reference points can also be selected. Those skilled in the art can set according to actual needs, and the present disclosure does not limit this.
[0047] In the embodiment of the present disclosure, three different longitude and latitude coordinate points may be arbitrarily selected as reference points, for example, reference points C1, C2 and C3. In the embodiment of the present disclosure, the geographic information may be, for example, longitude and latitude information.
[0048] For example, the distance d1 between the first point of interest A and the reference point C1 can be calculated based on the longitude and latitude information of the first point of interest A and the longitude and latitude information of the reference point C1. The distance d2 between the first point of interest A and the reference point C2 can be calculated based on the longitude and latitude information of the first point of interest A and the longitude and latitude information of the reference point C2. The distance d3 between the first point of interest A and the reference point C3 can be calculated based on the longitude and latitude information of the first point of interest A and the longitude and latitude information of the reference point C3. Among them, d1, d2 and d3 can constitute a first distance set, d1 corresponds to the reference point C1, d2 corresponds to the reference point C2, and d3 corresponds to the reference point C3.
[0049] According to an embodiment of the present disclosure, the distances d1, d2, and d3 may use the same unit, such as kilometers.
[0050] In operation S302, based on the geographic information of the second point of interest and the respective geographic information of the multiple reference points, the distance between the second point of interest and each of the multiple reference points is calculated to obtain a second distance set, which includes multiple second distance information corresponding to the multiple reference points respectively.
[0051] According to an embodiment of the present disclosure, the distance d4 between the second point of interest B and the reference point C1 can be calculated based on the latitude and longitude information of the second point of interest B and the latitude and longitude information of the reference point C1. The distance d5 between the second point of interest B and the reference point C2 can be calculated based on the latitude and longitude information of the second point of interest B and the latitude and longitude information of the reference point C2. The distance d6 between the second point of interest B and the reference point C3 can be calculated based on the latitude and longitude information of the second point of interest B and the latitude and longitude information of the reference point C3. Among them, d4, d5 and d6 can constitute a second distance set, d4 corresponds to the reference point C1, d5 corresponds to the reference point C2, and d6 corresponds to the reference point C3.
[0052] In the embodiment of the present disclosure, the distances d4, d5 and d6 may use the same unit as the distances d1, d2 and d3, such as kilometers.
[0053] In operation S303, a reference set is generated based on the preset distance and the first distance set, the reference set including a plurality of reference distance sets, each of the plurality of reference distance sets including a plurality of reference distance information respectively corresponding to a plurality of reference points.
[0054] According to an embodiment of the present disclosure, the preset distance may be, for example, a preset distance from the first point of interest. The preset distance may be determined according to user input or according to a recommendation rule, which is not limited in the embodiment of the present disclosure. For example, the preset distance may be within a range of k kilometers from the first point of interest. The unit of the preset distance k may be the same as d1, d2, d3, d4, d5, and d6.
[0055] In an embodiment of the present disclosure, the quotient between each first distance information in a plurality of first distance information (for example, d1, d2, d3) and a preset distance can be rounded to obtain a basic reference distance set, and at least one element in the basic reference distance set can be added or subtracted from a unit distance to obtain a plurality of other reference distance sets, wherein the basic reference distance set and the other reference distance sets constitute a reference set.
[0056] For example, the first data set can be represented as {d1, d2, d3}, and the basic reference distance set can be represented as in, is the quotient of the distance d1 and the preset distance k rounded down, is the quotient of the distance d2 and the preset distance k rounded down, is the quotient of the distance d3 and the preset distance k rounded down. Then, A plurality of other reference distance sets are obtained by adding or subtracting the unit distance, where the unit distance may be 1, for example, to obtain the reference set shown in Table 1.
[0057] Table 1 Reference set diagram
[0058]
[0059]
[0060] In operation S304, it is determined whether the second point of interest is associated with the first point of interest based on the second distance set and the reference set.
[0061] According to the embodiment of the present disclosure, the quotient between each second distance information in a plurality of second distance information (for example, d4, d5, d6) and a preset distance may be rounded to obtain a processed second distance set.
[0062] For example, the second data set may be represented as {d4, d5, d6}, and the processed second data set may be in, is the quotient of the distance d4 and the preset distance k rounded down, is the quotient of the distance d5 and the preset distance k rounded down, It is the quotient between the distance d6 and the preset distance k rounded down.
[0063] In the embodiment of the present disclosure, it can be determined whether there is a reference distance set in the reference set that is the same as the processed second distance set. If so, it is determined that the second interest point is associated with the first interest point.
[0064] For example, the second dataset after processing The reference distance set from the reference set If the second data set is the same as the first data set, it means that the second point of interest is associated with the first point of interest. Distance from reference set The same can be: and The values are the same, and The values are the same, and The values are the same.
[0065] In operation S305, in a case where it is determined that the second point of interest is associated with the first point of interest, a distance between the first point of interest and the second point of interest is calculated based on geographic information of the first point of interest and geographic information of the second point of interest.
[0066] According to the embodiment of the present disclosure, if it is determined that the second point of interest is associated with the first point of interest, it means that the second point of interest is near the preset distance of the first point of interest, so that the second point of interest may be screened out to be within the preset distance of the first point of interest. Whether the second point of interest is within the preset distance of the first point of interest can be determined by calculating the specific distance between the second point of interest and the first point of interest.
[0067] For example, when there are multiple second interest points, it is possible to first determine whether each of the multiple second interest points is associated with the first interest point, and obtain at least one associated second interest point associated with the first interest point. Then, the distance between each of the at least one associated second interest point and the first interest point is calculated, and based on the distance between each associated second interest point and the first interest point, at least one second interest point within a preset distance range of the first interest point is determined from the at least one associated second interest point.
[0068] For example, a second point of interest B (cell) within 3 kilometers of a first point of interest A (e.g., user) is determined. It can be understood that the number of cells with known longitude and latitude information is very large. In the disclosed embodiment, multiple associated cells associated with the user can be determined from the large number of cells to achieve the first screening. Then, the specific distances between the multiple selected associated cells and the user are calculated, and the cells with a distance less than or equal to 3 kilometers are determined as the cells desired by the user, and feedback is given to the user.
[0069] When calculating the distance between two points based on longitude and latitude information (for example, the distance between a first point of interest and a reference point, the distance between a second point of interest and a reference point, and the distance between a first point of interest and a second point of interest), the longitude and latitude of the first point A can be set to (LonA, LatA), and the longitude and latitude of the second point B can be set to (LonB, LatB).
[0070] In one embodiment of the present disclosure, based on the 0-degree longitude as the benchmark, the east longitude takes the positive value of longitude (Longitude), the west longitude takes the negative value of longitude (-Longitude), the north latitude takes the value of 90-latitude (90-Latitude), and the south latitude takes the value of 90+latitude (90+Latitude). The two points after the above processing are counted as (MlonA, MLatA) and (MlonB, MLatB).
[0071] It can be understood that the earth is a nearly standard ellipsoid, with an equatorial radius of 6378.140 km, a polar radius of 6356.755 km, and an average radius of 6371.004 km. If we assume that the earth is a perfect sphere, then its radius is the average radius of the earth, recorded as R. For example, the distance between two points can be calculated according to the longitude and latitude information of the two points according to the two-point distance formula. The formula for calculating the distance between two points can be, for example:
[0072] C=sin(MLatA)*sin(MLatB)*cos(MLonA-MLonB)+cos(MLatA)*cos(MLatB)
[0073] Distance=R*Arccos(C)*Pi / 180
[0074] The units of R and Distance are the same. For example, if 6371.004 kilometers are used as the radius, the unit of Distance is kilometers.
[0075] In another embodiment of the present disclosure, only the longitude may be processed as positive or negative, and the latitude may not be processed as 90-Latitude. The formula for calculating the distance between two points may be, for example:
[0076] C=sin(LatA)*sin(LatB)+cos(LatA)*cos(LatB)*cos(MLonA-MLonB)
[0077] Distance=R*Arccos(C)*Pi / 180
[0078] In another embodiment of the present disclosure, the input and output of the trigonometric function may both be in radians, and the formula for calculating the distance between two points may be, for example:
[0079] C=sin(LatA*Pi / 180)*sin(LatB*Pi / 180)+cos(LatA*Pi / 180)*cos(LatB*Pi / 180)*cos((MLonA-MLonB)*Pi / 180)
[0080] Distance=R*Arccos(C)*Pi / 180
[0081] The disclosed embodiment can obtain a distance set of each POI with respect to the multiple reference points by setting multiple reference points, and can obtain a reference set of each POI based on the distance set and the preset distance, and then can determine whether the POIB is associated with the POIA by determining whether the distance set of the POIB is the same as any reference distance set in the reference set of the POIA. This method can narrow the calculation scope, avoid the occurrence of Cartesian products, save computing resources, and at the same time improve the calculation speed, accelerate the response speed, and improve the user experience.
[0082] Figure 4 The block diagram of the geographic information processing device 400 according to the embodiment of the present disclosure is schematically shown.
[0083] like Figure 4 As shown, the device 400 includes a first calculation module 410 , a second calculation module 420 , a generation module 430 , a first determination module 440 and a third calculation module 450 .
[0084] The first calculation module 410 is used to calculate the distance between the first point of interest and each of the multiple reference points based on the geographic information of the first point of interest and the respective geographic information of the multiple reference points, to obtain a first distance set, wherein the first distance set includes multiple first distance information corresponding to the multiple reference points respectively.
[0085] The second calculation module 420 is used to calculate the distance between the second point of interest and each of the multiple reference points based on the geographic information of the second point of interest and the respective geographic information of the multiple reference points, to obtain a second distance set, wherein the second distance set includes multiple second distance information corresponding to the multiple reference points respectively.
[0086] The generation module 430 is used to generate a reference set based on a preset distance and the first distance set, wherein the reference set includes multiple reference distance sets, and each reference distance set of the multiple reference distance sets includes multiple reference distance information corresponding to the multiple reference points respectively.
[0087] The first determination module 440 is configured to determine whether the second point of interest is associated with the first point of interest based on the second distance set and the reference set.
[0088] The third calculation module 450 is used to calculate the distance between the first point of interest and the second point of interest based on the geographic information of the first point of interest and the geographic information of the second point of interest when it is determined that the second point of interest is associated with the first point of interest.
[0089] According to an embodiment of the present disclosure, generating a reference set based on a preset distance and the first distance set includes: rounding the quotient between each first distance information in the multiple first distance information and the preset distance to obtain a basic reference distance set, adding or subtracting at least one element in the basic reference distance set from a unit distance to obtain multiple other reference distance sets, wherein the basic reference distance set and the other reference distance sets constitute the reference set.
[0090] According to an embodiment of the present disclosure, the device 100 further includes: a processing module (not shown in the figure) for rounding the quotient between each second distance information in the plurality of second distance information and the preset distance to obtain a processed second distance set.
[0091] According to an embodiment of the present disclosure, determining whether the second point of interest is associated with the first point of interest based on the second distance set and the reference set includes: determining whether there is a reference distance set in the reference set that is the same as the processed second distance set; if so, determining that the second point of interest is associated with the first point of interest.
[0092] According to an embodiment of the present disclosure, the second point of interest includes multiple second points of interest. The determining whether the second point of interest is associated with the first point of interest includes: determining whether each of the multiple second points of interest is associated with the first point of interest, and obtaining at least one associated second point of interest associated with the first point of interest. The calculating the distance between the first point of interest and the second point of interest includes: calculating the distance between each of the at least one associated second point of interest and the first point of interest. The device 400 also includes: a second determination module (not shown in the figure), which is used to determine at least one second point of interest within the preset distance range of the first point of interest from the at least one associated second point of interest based on the distance between each associated second point of interest and the first point of interest.
[0093] According to an embodiment of the present disclosure, the multiple reference points include three reference points.
[0094] According to an embodiment of the present disclosure, the geographic information includes longitude and latitude information.
[0095] According to an embodiment of the present disclosure, the apparatus 400 may, for example, execute the above reference Figure 3 The described method will not be repeated here.
[0096] According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits, or at least part of the functions of any one of them can be implemented in one module. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be split into multiple modules for implementation. According to the embodiments of the present invention, any one or more of the modules, submodules, units, and subunits can be at least partially implemented as hardware circuits, such as field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), systems on chips, systems on substrates, systems on packages, application specific integrated circuits (ASICs), or can be implemented by hardware or firmware in any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware, or in any appropriate combination of any of them. Alternatively, according to the embodiments of the present invention, one or more of the modules, submodules, units, and subunits can be at least partially implemented as computer program modules, and when the computer program modules are run, the corresponding functions can be performed.
[0097] For example, the first calculation module 410, the second calculation module 420, the generation module 430, the first determination module 440 and the third calculation module 450 can be combined in one module, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present invention, at least one of the first calculation module 410, the second calculation module 420, the generation module 430, the first determination module 440 and the third calculation module 450 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented in hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or in a suitable combination of software, hardware and firmware. Alternatively, at least one of the first calculation module 410, the second calculation module 420, the generation module 430, the first determination module 440 and the third calculation module 450 can be at least partially implemented as a computer program module, and when the program is executed by a computer, the function of the corresponding module can be executed.
[0098] Figure 5 A block diagram of an electronic device according to an embodiment of the present disclosure is schematically shown. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0099] like Figure 5 As shown, the electronic device 500 according to the embodiment of the present disclosure includes a processor 501, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 502 or the program loaded from the storage part 508 to the random access memory (RAM) 503. The processor 501 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (such as an application-specific integrated circuit (ASIC)), etc. The processor 501 may also include an onboard memory for caching purposes. The processor 501 may include a processor for executing reference Figure 3 The described method flow according to the embodiment of the present disclosure may be a single processing unit or multiple processing units for different actions.
[0100] In RAM 503, various programs and data required for the operation of system 500 are stored. Processor 501, ROM 502, and RAM 503 are connected to each other via bus 504. Processor 501 performs various operations as described above by executing programs in ROM 502 and / or RAM 503. It should be noted that the programs may also be stored in one or more memories other than ROM 502 and RAM 503. Processor 501 may also perform various operations as described above by executing programs stored in the one or more memories.
[0101] According to an embodiment of the present disclosure, the system 500 may further include an input / output (I / O) interface 505, which is also connected to the bus 504. The system 500 may further include one or more of the following components connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0102] According to an embodiment of the present disclosure, the method described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the processor 501, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0103] It should be noted that the computer-readable medium shown in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the foregoing. According to an embodiment of the present disclosure, the computer-readable medium may include the ROM 502 and / or RAM 503 described above and / or one or more memories other than ROM 502 and RAM 503.
[0104] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0105] As another aspect, the present disclosure further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device executes the above method.
[0106] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A geographic information processing method, include: Based on geographic information of the first point of interest and geographic information of each of the plurality of reference points, calculating a distance between the first point of interest and each of the plurality of reference points to obtain a first distance set, wherein the first distance set includes a plurality of first distance information respectively corresponding to the plurality of reference points; Based on the geographic information of the second point of interest and the geographic information of each of the multiple reference points, calculate the distance between the second point of interest and each of the multiple reference points to obtain a second distance set, where the second distance set includes multiple second distance information corresponding to the multiple reference points respectively; Based on a preset distance and the first distance set, a reference set is generated, the reference set comprising a plurality of reference distance sets, each of the plurality of reference distance sets comprising a plurality of reference distance information respectively corresponding to the plurality of reference points; determining whether the second point of interest is associated with the first point of interest based on the second distance set and the reference set; as well as In a case where it is determined that the second point of interest is associated with the first point of interest, calculating a distance between the first point of interest and the second point of interest based on the geographic information of the first point of interest and the geographic information of the second point of interest; The step of generating a reference set based on a preset distance and the first distance set includes: Rounding off the quotients between each first distance information in the plurality of first distance information and the preset distance to obtain a basic reference distance set; Add or subtract at least one element in the basic reference distance set from a unit distance to obtain a plurality of other reference distance sets, wherein the basic reference distance set and the other reference distance sets constitute the reference set.
2. The method according to claim 1, further comprising: include: The quotients between each second distance information in the plurality of second distance information and the preset distance are rounded to obtain a processed second distance set.
3. The method according to claim 2, in, The determining, based on the second distance set and the reference set, whether the second point of interest is associated with the first point of interest comprises: It is determined whether there is a reference distance set in the reference set that is the same as the processed second distance set, and if so, it is determined that the second interest point is associated with the first interest point.
4. The method according to claim 1, in, The second point of interest includes a plurality of second points of interest; The determining whether the second point of interest is associated with the first point of interest comprises: respectively determining whether each of the plurality of second points of interest is associated with the first point of interest, and obtaining at least one associated second point of interest associated with the first point of interest; The calculating the distance between the first point of interest and the second point of interest includes: calculating a distance between each of the at least one associated second interest point and the first interest point; The method further comprises: At least one second point of interest within the preset distance range of the first point of interest is determined from the at least one associated second point of interest based on the distance between each associated second point of interest and the first point of interest.
5. The method according to claim 1, in, The plurality of reference points includes three reference points.
6. The method according to claim 1, in, The geographic information includes latitude and longitude information.
7. A geographic information processing device, include: a first calculation module, configured to calculate the distance between the first point of interest and each of the plurality of reference points based on the geographic information of the first point of interest and the geographic information of each of the plurality of reference points, so as to obtain a first distance set, wherein the first distance set includes a plurality of first distance information respectively corresponding to the plurality of reference points; a second calculation module, configured to calculate the distance between the second point of interest and each of the reference points based on the geographic information of the second point of interest and the geographic information of each of the reference points, so as to obtain a second distance set, wherein the second distance set includes a plurality of second distance information respectively corresponding to the reference points; A generation module, configured to generate a reference set based on a preset distance and the first distance set, wherein the reference set includes multiple reference distance sets, each of the multiple reference distance sets includes multiple reference distance information corresponding to the multiple reference points, and the generation of the reference set based on the preset distance and the first distance set includes: rounding the quotient between each first distance information in the multiple first distance information and the preset distance to obtain a basic reference distance set; adding or subtracting at least one element in the basic reference distance set from a unit distance to obtain multiple other reference distance sets, wherein the basic reference distance set and the other reference distance sets constitute the reference set; a first determination module, configured to determine whether the second point of interest is associated with the first point of interest based on the second distance set and the reference set; and The third calculation module is used to calculate the distance between the first point of interest and the second point of interest based on the geographic information of the first point of interest and the geographic information of the second point of interest when it is determined that the second point of interest is associated with the first point of interest.
8. An electronic device, include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors are enabled to execute the method according to any one of claims 1 to 6.
9. A computer-readable medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the method according to any one of claims 1 to 6.
