Map Data Processing Method and Apparatus
A map data processing method adds, to a map, a new type of map information, namely, shadow information that describes a shadow region, where content indicated by the shadow information and a data organization form in the map such that the map can record at least one of a geographical location, a shape, a size, a shadow degree, a reliability degree, a formation cause, and a change with time of the shadow region.
1 . A method comprising:
obtaining shadow information that indicates a shadow region of a location, and that comprises location information, wherein the location information indicates a geographical location of the shadow region; and
storing the shadow information as map data.
2 . The method of claim 1 , further comprising:
generating the shadow information; or
receiving the shadow information.
3 . The method of claim 1 , wherein the shadow information further comprises at least one of:
geometric information indicating a shape of the shadow region or a size of the shadow region;
time information indicating a time period in which the shadow region exists;
shadow degree information indicating a shadow degree of the shadow region;
confidence level information indicating a reliability degree of the shadow region; or
cause information indicating a cause of generating the shadow region.
4 . The method of claim 1 , wherein the shadow information comprises storing the shadow information in a data structure for storing an event in a map.
5 . The method of claim 1 , further comprising sending the shadow information.
6 . The method of claim 1 , further comprising displaying the shadow region based on the shadow information.
7 . The method of claim 6 , further comprising:
receiving a shadow display trigger instruction from a user; and
superimposing, based on the shadow display trigger instruction, the shadow information on other information of a map for display.
8 . The method of claim 6 , wherein a first display region on a display interface corresponding to the shadow region has a different grayscale relative to a second display region on the display interface, a different color relative to the second display region, a different saturation relative to the second display region, or a different superimposed pattern relative to the second display region.
9 . The method of claim 6 , wherein the shadow information further comprises time information indicating a time period in which the shadow region exists, and wherein displaying the shadow region comprises displaying a change of the shadow region with time based on the time information.
10 . The method of claim 1 , further comprising:
obtaining travel information of a user; and
planning a travel route or a pick-up location for the user based on the travel information and the shadow information.
11 . An apparatus, comprising:
a memory configured to store instructions; and
a processor coupled to the memory and configured to execute the instructions to cause the apparatus to:
obtain shadow information that indicates a shadow region of a location and that comprises location information, wherein the location information indicates a geographical location of the shadow region; and
store the shadow information as map data.
12 . The apparatus of claim 11 , wherein the processor is further configured to execute the instructions to cause the apparatus to:
generate the shadow information; or
receive the shadow information.
13 . The apparatus of claim 11 , wherein the shadow information further comprises at least one of:
geometric information indicating a shape of the shadow region or a size of the shadow region;
time information indicating a time period in which the shadow region exists;
shadow degree information indicating a shadow degree of the shadow region;
confidence level information indicating a reliability degree of the shadow region; or
cause information indicating a cause of generating the shadow region.
14 . The apparatus of claim 11 , wherein the processor is further configured to execute the instructions to cause the apparatus to further store the shadow information in a data structure for storing an event in a map.
15 . The apparatus of claim 11 , wherein the processor is further configured to execute the instructions to cause the apparatus to send the shadow information.
16 . The apparatus of claim 11 , wherein the processor is further configured to execute the instructions to cause the apparatus to display the shadow region based on the shadow information.
17 . The apparatus of claim 16 , wherein the processor is further configured to execute the instructions to cause the apparatus to:
receive a shadow display trigger instruction from a user; and
superimpose the shadow information on other information of a map for display based on the shadow display trigger instruction.
18 . The apparatus of claim 16 , wherein a first display region on a display interface corresponding to the shadow region has a different grayscale relative to a second display region on the display interface, a different color relative to the second display region, a different saturation relative to the second display region, or a different superimposed pattern relative to the second display region, wherein the shadow information further comprises time information indicating a time period in which the shadow region exists, and wherein the processor is further configured to execute the instructions to cause the apparatus to display a change of the shadow region with time based on the time information.
19 . (canceled)
20 . The apparatus of claim 11 , wherein the processor is further configured to execute the instructions to cause the apparatus to:
obtain travel information of a user; and
plan a travel route or a pick-up location for the user based on the travel information and the shadow information.
21 . A computer program product comprising computer-executable instructions that are stored on a non-transitory computer-readable medium and that, when executed by a processor, cause an apparatus to:
obtain shadow information that indicates a shadow region of a location and that comprises location information, wherein the location information indicates a geographical location of the shadow region; and
store the shadow information as map data.