A method, apparatus and electronic device for processing point of interest data
By obtaining the sub-point names and coordinates of the point of interest (POI) data, determining the sub-point abbreviations and area containers, generating construct names, and combining aliases to correct erroneous names, the problem of incomplete names in POI data is solved, thus improving the user experience of electronic maps.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-29
- Publication Date
- 2026-04-03
AI Technical Summary
In existing technologies, the names of point-of-interest (POI) data may be incomplete or incorrect, leading to travel inconvenience.
By obtaining the sub-point names and coordinates from the point of interest data, the abbreviations of the sub-points and the area containers are determined. The target area container and the abbreviations of the sub-points are used to generate a construction name. The target name is determined by combining the alias and the construction name, and the sub-point names in the point of interest data are replaced.
It effectively corrected the incorrect names in the point of interest data, improved the user experience of electronic maps, and avoided travel inconveniences.
Smart Images

Figure CN116069958B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing technology, and in particular to a method, apparatus, and electronic device for processing point-of-interest (POI) data. Background Technology
[0002] With the development of technology, electronic maps have brought convenience to people's lives. The graphics displayed in electronic maps are basically composed of points, lines, and polygons, and Points of Interest (POIs), as an important component of point data, are an indispensable part of electronic maps. Their quality directly determines the user experience of electronic maps.
[0003] In existing technologies, each POI typically contains data such as name, address, coordinates, and type. However, this data may be incomplete or contain errors, especially the name of the POI. This is because the personnel responsible for collecting the POI name and the area may be different, or they may collect the data at different times. Furthermore, since many buildings (such as residential communities) do not have signs for their doors or entrances, or only have abbreviations for the doors, the data collectors often judge the names based on experience or add abbreviations to the doors. This leads to many incorrect names for doors or entrances, causing considerable inconvenience to travelers. Summary of the Invention
[0004] This invention provides a method for processing point-of-interest (POI) data, which corrects the names of sub-points in the PIO data to avoid delays caused by incorrect sub-point names.
[0005] Accordingly, embodiments of the present invention also provide an interest point data processing device and an electronic device to ensure the implementation and application of the above methods.
[0006] To address the above problems, this invention discloses a method for processing point-of-interest (POI) data, specifically including:
[0007] Acquire point of interest (POI) data, which includes the name and coordinates of sub-points;
[0008] The abbreviation of the sub-point is determined based on the name of the sub-point;
[0009] Based on the coordinates of the sub-point, determine one or more area containers to which the sub-point belongs, and determine the target area container from the one or more area containers;
[0010] The construction name of the sub-point is generated using the target region container and the sub-point abbreviation;
[0011] Obtain the alias corresponding to the sub-point based on the region container;
[0012] The target name is determined based on the alias corresponding to the sub-point and the constructed name, and the target name replaces the name of the sub-point in the point of interest data.
[0013] Optionally, replacing the name of a sub-point in the point of interest data with the target name includes:
[0014] Determine whether there is a directional word in the abbreviation of the sub-point;
[0015] If the abbreviation of the sub-point contains a directional term, determine the directional region to which the sub-point belongs in the target area container based on the coordinates of the sub-point, and determine whether the directional term meets the directional conditions based on the directional region;
[0016] If the directional term meets the orientation condition, then the name of the sub-point in the point of interest data will be replaced by the target name.
[0017] Optionally, determining the target name based on the alias corresponding to the sub-point and the constructed name includes:
[0018] Determine whether the constructed name exists in the alias corresponding to the sub-point;
[0019] If the constructed name exists in the alias corresponding to the sub-point, then the constructed name is determined to be the target name.
[0020] Optionally, it also includes:
[0021] If the construction name is not found in the alias corresponding to the sub-point, the abbreviation of the sub-point is expanded, and multiple first construction names are generated according to the expanded abbreviation of the sub-point.
[0022] From the plurality of first construction names, the name belonging to the alias corresponding to the sub-point is determined as the target name.
[0023] Optionally, the step of expanding the abbreviation of the sub-point and generating multiple first construction names according to the expanded abbreviation includes:
[0024] The abbreviation of the sub-point is expanded according to the direction name and / or according to the numerical value, and multiple first construction names are generated according to the expanded abbreviation of the sub-point.
[0025] Optionally, the method further includes:
[0026] If no alias exists for the sub-point, determine the partition term in the target region container and delete the partition term;
[0027] The name container corresponding to the sub-point is determined based on the name of the sub-point, and the similarity between the target region container after deleting the partition term and the name container is determined.
[0028] If the similarity is greater than a preset threshold, a second constructed name is generated based on the target region container after deleting the partition term and the abbreviation of the sub-point;
[0029] The second constructed name replaces the name of the sub-point in the point of interest data.
[0030] Optionally, determining the target slice container from the one or more slice containers includes:
[0031] Determine the inclusion relationship between the one or more slice containers, and determine the innermost slice container from the one or more slice containers according to the inclusion relationship, as the target slice container.
[0032] This invention also discloses an interest point data processing device, specifically including:
[0033] The data acquisition module is used to acquire point of interest data, which includes the name and coordinates of the sub-points;
[0034] The name separation module is used to determine the abbreviation of the sub-point corresponding to the sub-point based on the name of the sub-point;
[0035] The target area container determination module is used to determine one or more area containers to which the sub-point belongs based on the coordinates of the sub-point, and to determine the target area container from the one or more area containers;
[0036] The first name construction module is used to generate the construction name of the sub-point using the target region container and the sub-point abbreviation;
[0037] The alias acquisition module is used to acquire the alias corresponding to the sub-point based on the region container;
[0038] The name replacement module is used to determine the target name based on the alias corresponding to the sub-point and the constructed name, and replace the name of the sub-point in the point of interest data with the target name.
[0039] Optionally, the name replacement module includes:
[0040] The directional word determination submodule is used to determine whether there is a directional word in the abbreviation of the sub-point;
[0041] The orientation region determination submodule is used to determine the orientation region to which the sub-point belongs in the target area container based on the coordinates of the sub-point if there is an orientation term in the abbreviation of the sub-point; and to determine whether the orientation term meets the orientation conditions based on the orientation region.
[0042] The name replacement submodule is used to replace the name of the sub-point in the point of interest data with the target name if the direction word meets the orientation condition.
[0043] Optionally, the name replacement module includes:
[0044] The alias determination submodule is used to determine whether the constructed name exists in the alias corresponding to the sub-point;
[0045] The first name determination submodule is used to determine the construction name as the target name if the construction name exists in the alias corresponding to the sub-point.
[0046] Optionally, it also includes:
[0047] The name construction submodule is used to expand the abbreviation of the sub-point if the construction name does not exist in the alias corresponding to the sub-point, and generate multiple first construction names according to the expanded sub-point abbreviation;
[0048] The second name determination submodule is used to determine, from the plurality of first constructed names, the name belonging to the alias corresponding to the sub-point as the target name.
[0049] Optionally, the name construction submodule includes:
[0050] The name construction unit is used to expand the abbreviation of the sub-point according to the direction name and / or according to the numerical value, and generate multiple first construction names according to the expanded abbreviation of the sub-point.
[0051] Optionally, the device further includes:
[0052] The partition term deletion module is used to determine the partition term in the target region container and delete the partition term when there is no alias corresponding to the sub-point.
[0053] The similarity determination module is used to determine the name container corresponding to the sub-point based on the name of the sub-point, and to determine the similarity between the target region container after deleting the partition term and the name container;
[0054] The second name construction module is used to generate a second constructed name based on the target region container and the sub-point abbreviation after deleting the partition words if the similarity is greater than a preset threshold.
[0055] The second name replacement module is used to replace the names of sub-points in the point of interest data with the second constructed name.
[0056] Optionally, the target area container determination module includes:
[0057] The target segment container determination submodule is used to determine the inclusion relationship between the one or more segment containers, and to determine the innermost segment container as the target segment container based on the inclusion relationship.
[0058] This invention also discloses a readable storage medium, which, when the instructions in the storage medium are executed by the processor of an electronic device, enables the electronic device to perform the point of interest data processing method as described in any of the embodiments of this invention.
[0059] This invention also discloses an electronic device, including a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:
[0060] Acquire point of interest (POI) data, which includes the name and coordinates of sub-points;
[0061] The abbreviation of the sub-point is determined based on the name of the sub-point;
[0062] Based on the coordinates of the sub-point, determine one or more area containers to which the sub-point belongs, and determine the target area container from the one or more area containers;
[0063] The construction name of the sub-point is generated using the target region container and the sub-point abbreviation;
[0064] Obtain the alias corresponding to the sub-point based on the region container;
[0065] The target name is determined based on the alias corresponding to the sub-point and the constructed name, and the target name replaces the name of the sub-point in the point of interest data.
[0066] Optionally, replacing the name of a sub-point in the point of interest data with the target name includes:
[0067] Determine whether there is a directional word in the abbreviation of the sub-point;
[0068] If the abbreviation of the sub-point contains a directional term, determine the directional region to which the sub-point belongs in the target area container based on the coordinates of the sub-point, and determine whether the directional term meets the directional conditions based on the directional region;
[0069] If the directional term meets the orientation condition, then the name of the sub-point in the point of interest data will be replaced by the target name.
[0070] Optionally, determining the target name based on the alias corresponding to the sub-point and the constructed name includes:
[0071] Determine whether the constructed name exists in the alias corresponding to the sub-point;
[0072] If the constructed name exists in the alias corresponding to the sub-point, then the constructed name is determined to be the target name.
[0073] Optionally, it also includes:
[0074] If the construction name is not found in the alias corresponding to the sub-point, the abbreviation of the sub-point is expanded, and multiple first construction names are generated according to the expanded abbreviation of the sub-point.
[0075] From the plurality of first construction names, the name belonging to the alias corresponding to the sub-point is determined as the target name.
[0076] Optionally, the step of expanding the abbreviation of the sub-point and generating multiple first construction names according to the expanded abbreviation includes:
[0077] The abbreviation of the sub-point is expanded according to the direction name and / or according to the numerical value, and multiple first construction names are generated according to the expanded abbreviation of the sub-point.
[0078] Optionally, the method further includes:
[0079] If no alias exists for the sub-point, determine the partition term in the target region container and delete the partition term;
[0080] The name container corresponding to the sub-point is determined based on the name of the sub-point, and the similarity between the target region container after deleting the partition term and the name container is determined.
[0081] If the similarity is greater than a preset threshold, a second constructed name is generated based on the target region container after deleting the partition term and the abbreviation of the sub-point;
[0082] The second constructed name replaces the name of the sub-point in the point of interest data.
[0083] Optionally, determining the target slice container from the one or more slice containers includes:
[0084] Determine the inclusion relationship between the one or more slice containers, and determine the innermost slice container from the one or more slice containers according to the inclusion relationship, as the target slice container.
[0085] The embodiments of the present invention have the following advantages:
[0086] In this embodiment of the invention, by using the name of a sub-point (e.g., a door or entrance / exit), the name container to which the sub-point belongs is separated, and then the area container to which the sub-point belongs is found based on the coordinates of the sub-point. The name of the sub-point is corrected by using the area container to which the sub-point belongs and the alias of the sub-point, so as to avoid delays in people's travel due to incorrect sub-point names. Attached Figure Description
[0087] Figure 1 This is a flowchart illustrating the steps of an embodiment of the point of interest data processing method of the present invention;
[0088] Figure 2 This is a schematic diagram of the center point of a region according to the present invention;
[0089] Figure 3 This is a schematic diagram of the directional region of one of the directional regions of the present invention;
[0090] Figure 4 This is a schematic diagram of the area where a sub-point is located according to the present invention;
[0091] Figure 5 This is a schematic diagram of another area where a sub-point of the present invention is located;
[0092] Figure 6 This is a schematic diagram of another area where a sub-point of the present invention is located;
[0093] Figure 7 This is a structural block diagram of an embodiment of a point-of-interest data processing device according to the present invention;
[0094] Figure 8 A structural block diagram of an electronic device for processing point-of-interest data is shown according to an exemplary embodiment;
[0095] Figure 9 This is a schematic diagram of the structure of an electronic device for processing point-of-interest data according to another exemplary embodiment of the present invention. Detailed Implementation
[0096] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0097] Points of Interest (POIs) refer to any geographic object that can be abstracted as a point, especially geographic entities closely related to people's lives. They typically include attributes such as name, coordinates, address, and type (label). In geographic information systems, a building, a company, a residential area, a gate, a parking lot, a bus stop, etc., can all be considered POIs.
[0098] Principal-Child Point Relationships: These describe the relationships between Points of Interest (POIs). They typically include naming relationships and containment relationships between regions / areas, such as:
[0099] (1) The principal-sub-point relationship established by the inclusion relationship between the area surfaces: If the park where "Sogou Map" is located is "Tsinghua Science Park", then the POI "Sogou Map" and POI "Tsinghua Science Park" can be described as having a principal-sub-point relationship, with "Tsinghua Science Park" being called the principal point and "Sogou Map" being called the sub-point.
[0100] (2) The master-child relationship established through the association between names: The POI “Sohu Network Building - East Gate” and the POI “Sohu Network Building” are described as having a master-child relationship, with “Sohu Network Building” being called the master point and “Sohu Network Building - East Gate” being called the child point;
[0101] Sub-point abbreviation: The name of the sub-point after removing the main point name. Sub-points may or may not have an abbreviation. For example, in the relationship in "(1)" above, the sub-point "Sogou Map" has no abbreviation; in the relationship in "(2)" above, the abbreviation of the sub-point "Sohu Network Building - East Gate" is "East Gate";
[0102] Name container: The main point in the main and child points that are associated by name is the name container, such as "Sohu Network Building" in "(2)" above;
[0103] Area container: The principal point among the principal child points associated with the area surface is the area container, such as "Tsinghua Science Park" in "(1)" above.
[0104] In existing technologies, the names in Points of Interest (POIs) may contain errors, causing considerable inconvenience to travelers. Therefore, it is necessary to correct the names in POIs. In this embodiment of the invention, point of interest data is acquired, which includes the name and coordinates of sub-points. An abbreviation for the sub-point is determined based on its name. One or more area containers to which the sub-point belongs are determined based on its coordinates, and a target area container is determined from these one or more area containers. A constructed name for the sub-point is generated based on the target area container and the abbreviation. An alias for the sub-point is obtained based on the area container. A target name is determined based on the alias and the constructed name, and this target name replaces the name of the sub-point in the point of interest data. This avoids delays caused by incorrect sub-point names.
[0105] Reference Figure 1 The diagram illustrates a flowchart of an embodiment of a point-of-interest (POI) data processing method according to the present invention. The method may specifically include the following steps:
[0106] Step 101: Obtain point of interest data, which includes the name and coordinates of the sub-points;
[0107] Points of Interest (POIs) data can include information such as the name and coordinates of sub-points. Sub-points can be doors or entrances / exits, etc. The coordinates of a sub-point include a series of latitude and longitude coordinates, which can be used to determine the area corresponding to the sub-point. The name of a sub-point consists of a name container (i.e., the main point) and a short name for the sub-point. For example, if the name of a sub-point is "Jiaming Tongcheng - South Gate", then "Jiaming Tongcheng" is the name container for the sub-point, and "South Gate" is the short name for the sub-point.
[0108] Step 102: Determine the abbreviation of the sub-point corresponding to the sub-point based on the name of the sub-point;
[0109] In a practical implementation, the name container and abbreviation of the sub-point can be obtained by separating the name of the sub-point.
[0110] Step 103: Determine one or more area containers to which the sub-point belongs based on the coordinates of the sub-point, and determine the target area container from the one or more area containers;
[0111] Specifically, the region where a sub-point is located can be determined based on its coordinates, and further, one or more area containers to which the sub-point belongs can be determined based on its region. For example, the area containers to which the sub-point belongs based on its coordinates could be: Jiaming Tongcheng, Jiaming Tongcheng Area F. Furthermore, a target area container can be determined from the one or more area containers to which the sub-point belongs. This target area container is the area closest to or innermost of the sub-point, for example, Jiaming Tongcheng Area F.
[0112] Step 104: Using the target region container and the abbreviation of the sub-point, generate the construction name of the sub-point;
[0113] Specifically, the name of the sub-point can be reconstructed by combining the target area container and the abbreviation of the sub-point to generate the constructed name of the sub-point. For example, if the target area container is: Jiaming Tongcheng F District, and the abbreviation of the sub-point is: South Gate, then the constructed name of the generated sub-point is: Jiaming Tongcheng F District - South Gate.
[0114] Step 105: Obtain the alias corresponding to the sub-point based on the region container;
[0115] Among them, the alias of a sub-point is a name other than its formal or standardized name. The alias of a sub-point can be determined from collected user feedback information. In some application scenarios, different users may have different names for the same sub-point (such as a door or entrance / exit). These different names for the sub-point can be collected as the alias of the sub-point. For example, the alias of a sub-point can be Jiaming Tongcheng F District - South Gate, Jiaming Tongcheng F District - Southeast Gate, Jiaming Tongcheng F District - South Gate 1, Jiaming Tongcheng F District - South Gate 2, etc.
[0116] Step 106: Determine the target name based on the alias corresponding to the sub-point and the constructed name, and replace the name of the sub-point in the point of interest data with the target name.
[0117] Specifically, we can determine whether a construct name exists in the alias corresponding to the sub-point. If a construct name exists in the alias corresponding to the sub-point, the construct name can be directly determined as the target name. For example, if "Jiaming Tongcheng F District - South Gate" exists in the alias of the sub-point, then the target name is determined to be "Jiaming Tongcheng F District - South Gate", and the initial name of the sub-point "Jiaming Tongcheng - South Gate" is corrected to "Jiaming Tongcheng F District - South Gate".
[0118] In a preferred embodiment of the present invention, step 106 may specifically include the following sub-steps:
[0119] Determine whether there is a directional word in the abbreviation of the sub-point;
[0120] If the abbreviation of the sub-point contains a directional term, determine the directional region to which the sub-point belongs in the target area container based on the coordinates of the sub-point, and determine whether the directional term meets the directional conditions based on the directional region;
[0121] If the directional term meets the orientation condition, then the name of the sub-point in the point of interest data will be replaced by the target name.
[0122] In this embodiment of the invention, when replacing the name of a sub-point in the point of interest data with the target name, it can be further determined whether the directional word in the target name is reasonable, so that if the directional word is reasonable, the target name can be used to replace the name of the sub-point in the point of interest data.
[0123] Specifically, it can be determined whether the abbreviation of a sub-point contains a directional word. For example, if the abbreviation of a sub-point is "South Gate," then "South" is a directional word, indicating the presence of a directional word in the abbreviation. If a directional word is present in the abbreviation, the directional region to which the sub-point belongs within the target area container is determined based on its coordinates. In practice, the center point of the area (i.e., the target area container) is first calculated: the minimum and maximum longitude coordinates (Xmax and Xmin) are obtained based on the area's longitude coordinates; the minimum and maximum latitude coordinates (Ymax and Ymin) are obtained based on the area's latitude coordinates. Therefore, the coordinates of the center point can be calculated as: Longitude = (Xmin + Xmax) / 2, Latitude = (Ymin + Ymax) / 2. The area is then divided based on its center point, for example, into East, West, South, North, Southeast, Southwest, Northwest, and Northeast regions. Figure 2 As shown. Then, based on the coordinates of the sub-point, the directional region to which the sub-point belongs in the target area container can be determined. For example, whether "Jiaming Tongcheng F District - South Gate" belongs to the southern region of the area container "Jiaming Tongcheng F District".
[0124] Furthermore, the system can determine whether a directional term meets the location criteria based on the directional region. If the directional term meets the location criteria, the name of the sub-point in the point of interest data is replaced with the target name. For example, if the directional term "south" belongs to the "southern region," then the directional term is considered to meet the location criteria. In practical implementation, since different geographic entities are built in different directions, it can be set that as long as the directional term is not in the opposite region of the directional region to which the corresponding sub-point belongs, the directional term is considered to meet the location criteria. For example, if the directional region to which the sub-point belongs is "southern region," and the opposite region of "southern region" is "northern region," then as long as the directional term is not "north," the directional term is considered to meet the location criteria. Figure 3 As shown, "non-eastern region" is the reverse region of the eastern region, "non-western region" is the reverse region of the western region, "non-southern region" is the reverse region of the southern region, "non-northern region" is the reverse region of the northern region, "non-southern region" is the reverse region of the southeastern region, "non-southern region" is the reverse region of the southwestern region, "non-northwestern region" is the reverse region of the northwestern region, and "non-northeastern region" is the reverse region of the northeastern region.
[0125] In a preferred embodiment of the present invention, step 106 includes:
[0126] Determine whether the constructed name exists in the alias corresponding to the sub-point; if the constructed name exists in the alias corresponding to the sub-point, then determine that the constructed name is the target name.
[0127] In this embodiment of the invention, it is determined whether a construction name exists in the alias corresponding to the sub-point; if a construction name exists in the alias corresponding to the sub-point, the construction name can be directly determined as the target name. For example, if the sub-point alias contains "Jiaming Tongcheng F District - South Gate", then the target name is determined to be "Jiaming Tongcheng F District - South Gate".
[0128] In a preferred embodiment of the present invention, step 106 further includes:
[0129] If the construction name is not found in the alias corresponding to the sub-point, the abbreviation of the sub-point is expanded to generate multiple first construction names; from the multiple first construction names, the name belonging to the alias corresponding to the sub-point is determined as the target name.
[0130] Here, the first constructive name refers to the name reconstructed after expanding the abbreviation of the sub-point. In this embodiment of the invention, if there is no constructive name in the alias corresponding to the sub-point, the abbreviation of the sub-point can be expanded to obtain multiple first constructive names, for example, by synonym substitution. Furthermore, the name belonging to the alias corresponding to the sub-point can be determined from the multiple first constructive names as the target name.
[0131] In a preferred embodiment of the present invention, the abbreviation of the sub-point is expanded to obtain a plurality of first construction names, including:
[0132] The abbreviation of the sub-point is expanded according to the direction name and / or according to the numerical value to obtain multiple first construction names.
[0133] Specifically, the abbreviation of a sub-point can be expanded according to its direction name. For example, if the abbreviation of a sub-point is "West Gate", then the abbreviation of that sub-point can be expanded to "Southwest Gate", "Northwest Gate", etc. Alternatively, the abbreviation of a sub-point can be expanded according to its numerical value. For example, the abbreviation of a sub-point can be expanded to "West Gate 1", "West Gate 2", ... "West Gate N". Alternatively, the abbreviation of a sub-point can be expanded both according to its direction name and its numerical value, such as "Southwest Gate 1", "Southwest Gate 2", ... "Southwest Gate N", "Northwest Gate 1", "Northwest Gate 2", ... "Northwest Gate N".
[0134] Furthermore, by reconstructing according to the target area container and the expanded sub-point abbreviation, multiple first construction names are obtained, such as "Ruidu International South District - Southwest Gate", "Ruidu International South District - Northwest Gate", "Ruidu International South District - West Gate 1", "Ruidu International South District - West Gate 2"... "Ruidu International South District - Northwest Gate N", etc.
[0135] In a preferred embodiment of the present invention, the method further includes:
[0136] If no alias exists for the sub-point, determine the partition term in the target region container and delete the partition term;
[0137] The name container corresponding to the sub-point is determined based on the name of the sub-point, and the similarity between the target region container after deleting the partition term and the name container is determined.
[0138] If the similarity is greater than a preset threshold, a second constructed name is generated based on the target region container after deleting the partition term and the abbreviation of the sub-point;
[0139] The second constructed name replaces the name of the sub-point in the point of interest data.
[0140] In this embodiment of the invention, when there is no alias corresponding to a sub-point, the partition word in the target area container is determined and the partition word is deleted. For example, the partition word in "Jintian Park - North District" is "North District", and after removing the partition word, it becomes "Jintian Park".
[0141] Then, the name container corresponding to the sub-point is determined by separating the sub-point's name, and the similarity between the target region container and the name container after deleting the partition term is calculated. In the specific implementation, the similarity is calculated as follows: Step 1: Remove the administrative division part from the names of the region container and the name container respectively; Step 2: Obtain the maximum common substring from the names of the region container and the name container after removing the administrative division; Step 3: Calculate the proportion of the maximum common substring in each name; Step 4: When the proportion of the maximum common substring reaches a preset threshold (e.g., 80%) of their original names (after removing the administrative division part), it is necessary to continue to check whether their non-common substrings contain different directional words and numeric characters. If different directional words or numeric characters exist, the similarity drops to 0.
[0142] By determining whether the similarity exceeds a preset threshold, if the similarity exceeds the preset threshold, a second constructed name is generated based on the target region container and sub-point abbreviation after deleting the partitioning words, and this second constructed name replaces the sub-point name in the point of interest data. The preset threshold is a pre-defined critical value; for example, a preset threshold of 80%. If the similarity exceeds 80%, the newly generated second constructed name is used as the sub-point name.
[0143] In a preferred embodiment of the present invention, determining a target slice container from the one or more slice containers includes:
[0144] Determine the inclusion relationship between the one or more slice containers, and determine the innermost slice container from the one or more slice containers according to the inclusion relationship, as the target slice container.
[0145] The innermost segment container is the smallest segment container among all the segment containers to which the child point belongs. This is achieved by first determining the inclusion relationships among all the segment containers to which the child point belongs, and then selecting the innermost segment container as the target segment container based on these relationships. Specifically, the innermost segment container can be determined in the following two ways:
[0146] Case 1: If the area containers are contained within each other, the contained area container is the innermost area container. Case 2: If the area containers are intersecting, the intersecting part must occupy more than a certain percentage of the area of one area container (e.g., 80%) and no more than a certain percentage of the area of the other area container (e.g., 20%). The area container that meets these conditions is the innermost area container.
[0147] The embodiments of the present invention will be explained and illustrated below with three examples.
[0148] [First scenario: The sub-point's alias contains the name "target region container + sub-point abbreviation"] For example... Figure 4 As shown, 401 is the original location of the sub-point "Jiaming Tongcheng - South Gate"; the area enclosed by 402 is the innermost area container of the sub-point "Jiaming Tongcheng F District"; the area enclosed by 403 is the main point name container "Jiaming Tongcheng".
[0149] (1) Assume that the original sub-points in the interest point data are named: Jiaming Tongcheng-South Gate.
[0150] (2) Name container of the main point: Jiaming Tongcheng;
[0151] (3) Abbreviation of sub-point: South Gate;
[0152] (4) The area container to which the sub-point belongs: Jiaming Tongcheng, Jiaming Tongcheng F area;
[0153] (5) The innermost region container to which the sub-point belongs (i.e., the target region container): Jiaming Tongcheng F District;
[0154] (6) Reconstruct the sub-point name using the innermost region container to which the sub-point belongs: Jiaming Tongcheng F District - South Gate;
[0155] (7) The alias of the sub-point contains exactly the reconstructed sub-point name: Jiaming Tongcheng F District - South Gate;
[0156] (8) Determine whether the directional words in the newly constructed sub-point name meet the directional conditions of the directional region to which the sub-point belongs in the innermost area container, that is, determine whether “Jiaming Tongcheng F District - South Gate” belongs to the southern region of the area container “Jiaming Tongcheng F District”.
[0157] (9) If both (7) and (8) above are true, then the newly constructed sub-point name is determined as the sub-point name, that is, “Jiaming Tongcheng F District - South Gate” is determined as the new sub-point name.
[0158] [Second scenario: After using a synonym replacement for the sub-point abbreviation, the name resulting from "region container name + the sub-point abbreviation after the synonym" happens to be an alias for the sub-point.] For example... Figure 5 As shown, 501 is the location of the original sub-point "Ruidu International - West Gate"; the area enclosed by 502 is the innermost area container of the sub-point "Ruidu International South Area"; the area enclosed by 503 is the main point name container "Ruidu International";
[0159] (1) Assume that the original sub-points in the point of interest data are named: Ruidu International-West Gate;
[0160] (2) Main point name container: Ruidu International;
[0161] (3) Sub-point abbreviation: West Gate;
[0162] (4) The area container to which the sub-point belongs: Ruidu International, Ruidu International South Area;
[0163] (5) The innermost area container to which the sub-point belongs: Ruidu International South Zone;
[0164] (6) Reconstruct the sub-point name using the innermost region container to which the sub-point belongs: Ruidu International South Zone - West Gate;
[0165] (7) The newly constructed “Ruidu International South District - West Gate” cannot be found from the aliases of the sub-points;
[0166] Then, the abbreviations for sub-points are expanded, including expansion of direction names and gate numbers, namely: Southwest Gate, Northwest Gate, West 1 Gate, West 2 Gate, ... West N Gate, Southwest 1 Gate, Southwest 2 Gate, ... Southwest N Gate, Northwest 1 Gate, Northwest 2 Gate, ... Northwest N Gate. Then, the name of the innermost area container to which the sub-point belongs is combined with the newly expanded abbreviations to form new names. For example, it can be combined into: Ruidu International South District - Southwest Gate, Ruidu International South District - Northwest Gate, Ruidu International South District - West 1 Gate, Ruidu International South District - West 2 Gate, ... Ruidu International South District - Northwest N Gate;
[0167] (8) Match the reconstructed sub-point name and the sub-point alias. As an example, assume that the reconstructed sub-point name "Ruidu International South District - Southwest Gate 3" exists in the sub-point alias.
[0168] (9) Determine whether the directional words in the newly constructed sub-point name meet the directional conditions of the directional area to which the sub-point belongs in the innermost area container, that is, determine whether “Ruidu International South District - Southwest Gate 3” belongs to the southwest area of the area container “Ruidu International South District”.
[0169] (10) If both (8) and (9) above are true, then the newly constructed sub-point name is determined as the sub-point name, that is, “Jiaruidu International South District - Southwest Gate 3” is determined as the new sub-point name.
[0170] [Third scenario: The name container has no partitions (stages), but the region container has partitions (stages). For region containers and name containers with high name similarity, replace the original sub-point names with the region name + sub-point abbreviation.] For example... Figure 6 As shown, 601 is the location of the original sub-point "Jintian Park - East Gate"; the area enclosed by 602 is the innermost area container of the sub-point "Jintian Park - North Area"; and the area enclosed by 603 is the main point name container "Jintian Park".
[0171] (1) Assume that the original sub-points in the point of interest data are named: Jintian Park - East Gate;
[0172] (2) Main point name container: Jintian Park;
[0173] (3) Abbreviation of sub-point: East Gate;
[0174] (4) Sub-point area container: Jintian Park, Jintian Park-North Area;
[0175] (5) The innermost area container to which the sub-point belongs: Jintian Park - North Area;
[0176] (6) Reconstruct the sub-point name using the innermost area container to which the sub-point belongs: Jintian Park-North Area-East Gate;
[0177] (7) No alias record was found in the sub-point, so the above "first case" and "second case" cannot be used;
[0178] (8) Remove the zoning or phase information from the area container: "Jintian Park - North District" becomes "Jintian Park" after removing the zoning information "North District";
[0179] (9) Calculate the similarity between the name of the area container after removing the partition information and the name of the main point container. If the similarity exceeds 80%, the newly constructed name is used as the recommended name of the sub-point: that is, calculate the similarity between "Jintian Park" and "Jintian Park". If the similarity is 100% (exceeding 80%), then "Jintian Park-North District-East Gate" is used as the name of the new sub-point.
[0180] (10) If the newly recommended sub-point name contains a directional word, further determine whether the directional word in the newly recommended sub-point name meets the directional conditions of the directional area to which the sub-point belongs in the innermost area container, that is, determine whether "Jintian Park-North District-East Gate" is in the eastern area of "Jintian Park-North District".
[0181] (11) If both (9) and (10) above are true, then the newly constructed sub-point name is determined as the sub-point name, that is, "Jintian Park-North District-East Gate" is determined as the new sub-point name.
[0182] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0183] Reference Figure 7 The diagram illustrates a structural block diagram of an embodiment of a point-of-interest (POI) data processing device according to the present invention. The device may specifically include the following modules:
[0184] Data acquisition module 701 is used to acquire point of interest data, which includes the name and coordinates of the sub-points;
[0185] The name separation module 702 is used to determine the abbreviation of the sub-point corresponding to the sub-point based on the name of the sub-point;
[0186] The target area container determination module 703 is used to determine one or more area containers to which the sub-point belongs based on the coordinates of the sub-point, and to determine the target area container from the one or more area containers;
[0187] The first name construction module 704 is used to generate the construction name of the sub-point using the target region container and the sub-point abbreviation;
[0188] Alias acquisition module 705 is used to acquire the alias corresponding to the sub-point according to the area container;
[0189] The name replacement module 706 is used to determine the target name based on the alias corresponding to the sub-point and the constructed name, and replace the name of the sub-point in the point of interest data with the target name.
[0190] In a preferred embodiment of the present invention, the name replacement module 706 includes:
[0191] The directional word determination submodule is used to determine whether there is a directional word in the abbreviation of the sub-point;
[0192] The orientation region determination submodule is used to determine the orientation region to which the sub-point belongs in the target area container based on the coordinates of the sub-point if there is an orientation term in the abbreviation of the sub-point; and to determine whether the orientation term meets the orientation conditions based on the orientation region.
[0193] The name replacement submodule is used to replace the name of the sub-point in the point of interest data with the target name if the direction word meets the orientation condition.
[0194] In a preferred embodiment of the present invention, the name replacement module 706 includes:
[0195] The alias determination submodule is used to determine whether the constructed name exists in the alias corresponding to the sub-point;
[0196] The first name determination submodule is used to determine the construction name as the target name if the construction name exists in the alias corresponding to the sub-point.
[0197] In a preferred embodiment of the present invention, the name replacement module 706 further includes:
[0198] The name construction submodule is used to expand the abbreviation of the sub-point if the construction name does not exist in the alias corresponding to the sub-point, and generate multiple first construction names according to the expanded sub-point abbreviation;
[0199] The second name determination submodule is used to determine, from the plurality of first constructed names, the name belonging to the alias corresponding to the sub-point as the target name.
[0200] In a preferred embodiment of the present invention, the name construction submodule includes:
[0201] The name construction unit is used to expand the abbreviation of the sub-point according to the direction name and / or according to the numerical value, and generate multiple first construction names according to the expanded abbreviation of the sub-point.
[0202] In a preferred embodiment of the present invention, the device further includes:
[0203] The partition term deletion module is used to determine the partition term in the target region container and delete the partition term when there is no alias corresponding to the sub-point.
[0204] The similarity determination module is used to determine the name container corresponding to the sub-point based on the name of the sub-point, and to determine the similarity between the target region container after deleting the partition term and the name container;
[0205] The second name construction module is used to generate a second constructed name based on the target region container and the sub-point abbreviation after deleting the partition words if the similarity is greater than a preset threshold.
[0206] The second name replacement module is used to replace the names of sub-points in the point of interest data with the second constructed name.
[0207] In a preferred embodiment of the present invention, the target area container determination module 703 includes:
[0208] The target segment container determination submodule is used to determine the inclusion relationship between the one or more segment containers, and to determine the innermost segment container as the target segment container based on the inclusion relationship.
[0209] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.
[0210] Figure 8 This is a structural block diagram illustrating an electronic device 800 for point-of-interest data processing according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, smart wearable device, etc.
[0211] Reference Figure 8 The electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.
[0212] Processing component 802 typically controls the overall operation of electronic device 800, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the methods described above. Furthermore, processing component 802 may include one or more modules to facilitate interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate interaction between multimedia component 808 and processing component 802.
[0213] Memory 804 is configured to store various types of data to support the operation of device 800. Examples of this data include instructions for any application or method operating on electronic device 800, contact data, phonebook data, messages, pictures, videos, etc. Memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0214] Power component 806 provides power to various components of electronic device 800. Power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 800.
[0215] Multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 808 includes a front-facing camera and / or a rear-facing camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0216] Audio component 810 is configured to output and / or input audio signals. For example, audio component 810 includes a microphone (MIC) configured to receive external audio signals when electronic device 800 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 804 or transmitted via communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
[0217] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0218] Sensor assembly 814 includes one or more sensors for providing state assessments of various aspects of electronic device 800. For example, sensor assembly 814 may detect the on / off state of device 800, the relative positioning of components such as the display and keypad of electronic device 800, changes in position of electronic device 800 or a component of electronic device 800, the presence or absence of user contact with electronic device 800, orientation or acceleration / deceleration of electronic device 800, and temperature changes of electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 814 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.
[0219] Communication component 816 is configured to facilitate wired or wireless communication between electronic device 800 and other devices. Electronic device 800 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 816 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0220] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0221] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, which can be executed by a processor 820 of an electronic device 800 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0222] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to perform a point-of-interest data processing method, the method comprising:
[0223] Acquire point of interest (POI) data, which includes the name and coordinates of sub-points;
[0224] The abbreviation of the sub-point is determined based on the name of the sub-point;
[0225] Based on the coordinates of the sub-point, determine one or more area containers to which the sub-point belongs, and determine the target area container from the one or more area containers;
[0226] The construction name of the sub-point is generated using the target region container and the sub-point abbreviation;
[0227] Obtain the alias corresponding to the sub-point based on the region container;
[0228] The target name is determined based on the alias corresponding to the sub-point and the constructed name, and the target name replaces the name of the sub-point in the point of interest data.
[0229] Optionally, replacing the name of a sub-point in the point of interest data with the target name includes:
[0230] Determine whether there is a directional word in the abbreviation of the sub-point;
[0231] If the abbreviation of the sub-point contains a directional term, determine the directional region to which the sub-point belongs in the target area container based on the coordinates of the sub-point, and determine whether the directional term meets the directional conditions based on the directional region;
[0232] If the directional term meets the orientation condition, then the name of the sub-point in the point of interest data will be replaced by the target name.
[0233] Optionally, determining the target name based on the alias corresponding to the sub-point and the constructed name includes:
[0234] Determine whether the constructed name exists in the alias corresponding to the sub-point;
[0235] If the constructed name exists in the alias corresponding to the sub-point, then the constructed name is determined to be the target name.
[0236] Optionally, it also includes:
[0237] If the construction name is not found in the alias corresponding to the sub-point, the abbreviation of the sub-point is expanded, and multiple first construction names are generated according to the expanded abbreviation of the sub-point.
[0238] From the plurality of first construction names, the name belonging to the alias corresponding to the sub-point is determined as the target name.
[0239] Optionally, the step of expanding the abbreviation of the sub-point and generating multiple first construction names according to the expanded abbreviation includes:
[0240] The abbreviation of the sub-point is expanded according to the direction name and / or according to the numerical value, and multiple first construction names are generated according to the expanded abbreviation of the sub-point.
[0241] Optionally, the method further includes:
[0242] If no alias exists for the sub-point, determine the partition term in the target region container and delete the partition term;
[0243] The name container corresponding to the sub-point is determined based on the name of the sub-point, and the similarity between the target region container after deleting the partition term and the name container is determined.
[0244] If the similarity is greater than a preset threshold, a second constructed name is generated based on the target region container after deleting the partition term and the abbreviation of the sub-point;
[0245] The second constructed name replaces the name of the sub-point in the point of interest data.
[0246] Optionally, determining the target slice container from the one or more slice containers includes:
[0247] Determine the inclusion relationship between the one or more slice containers, and determine the innermost slice container from the one or more slice containers according to the inclusion relationship, as the target slice container.
[0248] Figure 9This is a schematic diagram illustrating the structure of an electronic device 900 for information recommendation according to another exemplary embodiment of the present invention. The electronic device 900 can be a server, which can vary significantly depending on its configuration or performance. It may include one or more central processing units (CPUs) 922 (e.g., one or more processors) and a memory 932, and one or more storage media 930 (e.g., one or more mass storage devices) for storing application programs 942 or data 944. The memory 932 and storage media 930 can be temporary or persistent storage. The program stored in the storage media 930 may include one or more modules (not shown in the diagram), each module including a series of instruction operations on the server. Furthermore, the CPU 922 may be configured to communicate with the storage media 930 and execute the series of instruction operations in the storage media 930 on the server.
[0249] The server may also include one or more power supplies 926, one or more wired or wireless network interfaces 950, one or more input / output interfaces 958, one or more keyboards 956, and / or one or more operating systems 941, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™, etc.
[0250] An electronic device includes a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:
[0251] Acquire point of interest (POI) data, which includes the name and coordinates of sub-points;
[0252] The abbreviation of the sub-point is determined based on the name of the sub-point;
[0253] Based on the coordinates of the sub-point, determine one or more area containers to which the sub-point belongs, and determine the target area container from the one or more area containers;
[0254] The construction name of the sub-point is generated using the target region container and the sub-point abbreviation;
[0255] Obtain the alias corresponding to the sub-point based on the region container;
[0256] The target name is determined based on the alias corresponding to the sub-point and the constructed name, and the target name replaces the name of the sub-point in the point of interest data.
[0257] Optionally, replacing the name of a sub-point in the point of interest data with the target name includes:
[0258] Determine whether there is a directional word in the abbreviation of the sub-point;
[0259] If the abbreviation of the sub-point contains a directional term, determine the directional region to which the sub-point belongs in the target area container based on the coordinates of the sub-point, and determine whether the directional term meets the directional conditions based on the directional region;
[0260] If the directional term meets the orientation condition, then the name of the sub-point in the point of interest data will be replaced by the target name.
[0261] Optionally, determining the target name based on the alias corresponding to the sub-point and the constructed name includes:
[0262] Determine whether the constructed name exists in the alias corresponding to the sub-point;
[0263] If the constructed name exists in the alias corresponding to the sub-point, then the constructed name is determined to be the target name.
[0264] Optionally, it also includes:
[0265] If the construction name is not found in the alias corresponding to the sub-point, the abbreviation of the sub-point is expanded, and multiple first construction names are generated according to the expanded abbreviation of the sub-point.
[0266] From the plurality of first construction names, the name belonging to the alias corresponding to the sub-point is determined as the target name.
[0267] Optionally, the step of expanding the abbreviation of the sub-point and generating multiple first construction names according to the expanded abbreviation includes:
[0268] The abbreviation of the sub-point is expanded according to the direction name and / or according to the numerical value, and multiple first construction names are generated according to the expanded abbreviation of the sub-point.
[0269] Optionally, the method further includes:
[0270] If no alias exists for the sub-point, determine the partition term in the target region container and delete the partition term;
[0271] The name container corresponding to the sub-point is determined based on the name of the sub-point, and the similarity between the target region container after deleting the partition term and the name container is determined.
[0272] If the similarity is greater than a preset threshold, a second constructed name is generated based on the target region container after deleting the partition term and the abbreviation of the sub-point;
[0273] The second constructed name replaces the name of the sub-point in the point of interest data.
[0274] Optionally, determining the target slice container from the one or more slice containers includes:
[0275] Determine the inclusion relationship between the one or more slice containers, and determine the innermost slice container from the one or more slice containers according to the inclusion relationship, as the target slice container.
[0276] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.
[0277] Embodiments of the present invention are described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0278] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0279] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0280] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.
[0281] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.
[0282] The present invention has provided a detailed description of a point-of-interest (POI) data processing method, a POI data processing device, and an electronic device. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, those skilled in the art will recognize that there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A method for processing point-of-interest (POI) data, characterized in that, The method includes: Acquire point of interest (POI) data, which includes the names and coordinates of sub-points; The abbreviation of the sub-point is determined based on the name of the sub-point; Based on the coordinates of the sub-point, determine one or more area containers to which the sub-point belongs, and determine the target area container from the one or more area containers; The construction name of the sub-point is generated using the target region container and the sub-point abbreviation; Obtain the alias corresponding to the sub-point based on the region container; Determining a target name based on the alias corresponding to the sub-point and the constructed name, and replacing the name of the sub-point in the point of interest data with the target name, includes: determining whether the constructed name exists in the alias corresponding to the sub-point; if the constructed name exists in the alias corresponding to the sub-point, determining the constructed name as the target name; if the constructed name does not exist in the alias corresponding to the sub-point, expanding the abbreviation of the sub-point and generating multiple first constructed names according to the expanded abbreviation of the sub-point; and determining the name belonging to the alias corresponding to the sub-point as the target name from the multiple first constructed names.
2. The method according to claim 1, characterized in that, Replacing the names of sub-points in the point of interest data with the target name includes: Determine whether there is a directional word in the abbreviation of the sub-point; If the abbreviation of the sub-point contains a directional term, determine the directional region to which the sub-point belongs in the target area container based on the coordinates of the sub-point, and determine whether the directional term meets the directional conditions based on the directional region; If the directional term meets the directional conditions, then the target name replaces the name of the sub-point in the point of interest data.
3. The method according to claim 1, characterized in that, The abbreviation of the sub-point is expanded, and multiple first construction names are generated according to the expanded abbreviation, including: The abbreviation of the sub-point is expanded according to the direction name and / or according to the numerical value, and multiple first construction names are generated according to the expanded abbreviation of the sub-point.
4. The method according to claim 1, characterized in that, The method further includes: If no alias exists for the sub-point, determine the partition term in the target region container and delete the partition term; The name container corresponding to the sub-point is determined based on the name of the sub-point, and the similarity between the target region container after deleting the partition term and the name container is determined. If the similarity is greater than a preset threshold, a second constructed name is generated based on the target region container and the sub-point abbreviation after deleting the partition words; The second constructed name replaces the name of the sub-point in the point of interest data.
5. The method according to claim 1, characterized in that, Determining the target slice container from the one or more slice containers includes: Determine the inclusion relationship between the one or more slice containers, and determine the innermost slice container from the one or more slice containers according to the inclusion relationship, as the target slice container.
6. An interest point data processing device, characterized in that, The device includes: The data acquisition module is used to acquire point of interest data, which includes the name and coordinates of the sub-points; The name separation module is used to determine the abbreviation of the sub-point corresponding to the sub-point based on the name of the sub-point; The target area container determination module is used to determine one or more area containers to which the sub-point belongs based on the coordinates of the sub-point, and to determine the target area container from the one or more area containers; The first name construction module is used to generate the construction name of the sub-point using the target region container and the sub-point abbreviation; The alias acquisition module is used to acquire the alias corresponding to the sub-point based on the region container; A name replacement module is used to determine a target name based on the alias corresponding to the sub-point and the constructed name, and replace the name of the sub-point in the point of interest data with the target name. The module includes: an alias determination submodule, used to determine whether the constructed name exists in the aliases corresponding to the sub-point; a first name determination submodule, used to determine the constructed name as the target name if the constructed name exists in the aliases corresponding to the sub-point; a name construction submodule, used to expand the abbreviation of the sub-point if the constructed name does not exist in the aliases corresponding to the sub-point, and generate multiple first constructed names according to the expanded abbreviation; and a second name determination submodule, used to determine the name belonging to the aliases corresponding to the sub-point from the multiple first constructed names as the target name.
7. The apparatus according to claim 6, characterized in that, The name replacement module includes: The directional word determination submodule is used to determine whether there is a directional word in the abbreviation of the sub-point; The orientation region determination submodule is used to determine the orientation region to which the sub-point belongs in the target area container based on the coordinates of the sub-point if the abbreviation of the sub-point contains an orientation term, and to determine whether the orientation term meets the orientation conditions based on the orientation region. The name replacement submodule is used to replace the name of the sub-point in the point of interest data with the target name if the directional word meets the directional conditions.
8. The apparatus according to claim 6, characterized in that, The name construction submodule includes: The name construction unit is used to expand the abbreviation of the sub-point according to the direction name and / or according to the numerical value, and generate multiple first construction names according to the expanded abbreviation of the sub-point.
9. The apparatus according to claim 6, characterized in that, The device further includes: The partition term deletion module is used to determine the partition term in the target region container and delete the partition term when there is no alias corresponding to the sub-point. The similarity determination module is used to determine the name container corresponding to the sub-point based on the name of the sub-point, and to determine the similarity between the target region container after deleting the partition term and the name container; The second name construction module is used to generate a second constructed name based on the target region container and the sub-point abbreviation after deleting the partition words if the similarity is greater than a preset threshold. The second name replacement module is used to replace the names of sub-points in the point of interest data with the second constructed name.
10. An electronic device, characterized in that, It includes a memory and one or more programs, wherein one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising a method for processing point-of-interest data as described in any one of claims 1-5.
11. A readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the point of interest data processing method as described in any one of claims 1-5.
Citation Information
Patent Citations
System and method for determining a parent-child relationship of points of interest
CN110149804A
Position name generation method and position name display method
CN110795642A