Map generation method, device, computer readable storage medium and electronic device

By obtaining the geographical location information of the target event and determining the target map grid, the problems of slow grid map generation speed and poor user experience in the prior art are solved, and faster and more efficient grid map generation is achieved.

CN114758034BActive Publication Date: 2025-02-21SHANDONG LONGDU INTELLIGENT TECHNOLOGY CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210435890.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-24
Publication Date
2025-02-21
Estimated Expiration
2042-04-24

AI Technical Summary

Technical Problem

When generating grid maps, the existing technology needs to load grid data from the entire geographical area from the server, resulting in large amount of data and complex generation process, which is prone to problems such as lag and delay, affecting the user experience.

Method used

By obtaining the geographical location information of the target event, determine the target map grid corresponding to the target event, obtain the grid data of the grid, and send the grid data and event data to the terminal device to generate a network marked with the target event. grid map.

Benefits of technology

Reduces the amount of grid data loaded by front-end devices, simplifies the grid map generation process, improves generation speed and efficiency, reduces lag and delay, and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114758034B_ABST
    Figure CN114758034B_ABST
Patent Text Reader

Abstract

The present disclosure provides a map generation method, device, computer-readable storage medium and electronic device, which relate to the field of intelligent transportation, and in particular to a map generation method and device. The specific implementation scheme is: obtaining event data of a target event, wherein the event data includes geographic location information of the target event; determining a target map grid corresponding to the target event according to the geographic location information; obtaining grid data of the target map grid; sending the grid data and event data to a terminal device, wherein the grid data and event data are used by the terminal device to generate a grid map, and the grid map is marked with the target event.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of intelligent transportation, and in particular to a map generation method and device. Background Art

[0002] A grid map is a type of graph that uses grids as units to represent the spatial distribution of the quality of a mapping object or data features. A grid map can be considered to be covered by a map layer and a grid layer. In related technologies, when a front-end user wants to view a grid map, the map needs to be generated in real time on the front end, so the corresponding grid data and map data are required. The map data can be pre-stored on the user's front-end device and can be directly called by the front-end device. The corresponding grid data is all stored in the cloud server. The server responds to the user's instruction to generate a grid map and sends the full amount of grid data to the front-end device for use by the front-end device. Summary of the invention

[0003] The present disclosure provides a method, device, computer-readable storage medium and electronic device for map generation.

[0004] According to one aspect of the present disclosure, a map generation method is provided, comprising: obtaining event data of a target event, wherein the event data includes geographic location information of the target event; determining a target map grid corresponding to the target event based on the geographic location information; obtaining grid data of the target map grid; and sending the grid data and the event data to a terminal device, wherein the grid data and the event data are used by the terminal device to generate a grid map, and the grid map is marked with the target event.

[0005] According to another aspect of the present disclosure, a map generation method is also provided, comprising: receiving grid data of a target map grid and event data of a target event from a server, wherein the event data includes geographic location information of the target event, and the target map grid is a map grid corresponding to the target event determined based on the geographic location information of the target event; and generating a grid map marked with the target event based on the grid data and the event data.

[0006] According to another aspect of the present disclosure, a map generating apparatus is provided, comprising: a first acquisition module for acquiring event data of a target event, wherein the event data includes geographic location information of the target event; a first determination module for determining a target map grid corresponding to the target event based on the geographic location information; a second acquisition module for acquiring grid data of the target map grid; and a first sending module for sending the grid data and the event data to a terminal device, wherein the grid data and the event data are used by the terminal device to generate a grid map, and the grid map is marked with the target event.

[0007] According to another aspect of the present disclosure, a map generating device is also provided, including: a first receiving module, used to receive grid data of a target map grid and event data of a target event from a server, wherein the event data includes geographic location information of the target event, and the target map grid is a map grid corresponding to the target event determined based on the geographic location information of the target event; and a generating module, used to generate a grid map marked with the target event based on the grid data and the event data.

[0008] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is further provided, wherein the computer instructions are used to enable the computer to execute any of the above-mentioned map generation methods.

[0009] According to another aspect of the present disclosure, a computer program product is provided, including a computer program, wherein when the computer program is executed by a processor, the map generating method according to any one of the above items is implemented.

[0010] According to another aspect of the present disclosure, an electronic device is also provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any one of the map generation methods described above.

[0011] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0013] Figure 1 is a schematic diagram of a map generation method 1 according to an embodiment of the present disclosure;

[0014] Figure 2 is a schematic diagram of a target grid area according to an optional embodiment of the present disclosure;

[0015] Figure 3 is a schematic diagram of a target map grid determination method according to an optional embodiment of the present disclosure;

[0016] Figure 4 is a schematic diagram of a second map generation method according to an embodiment of the present disclosure;

[0017] Figure 5is a structural block diagram of a map generating device 1 according to an embodiment of the present disclosure;

[0018] Figure 6 is a structural block diagram of a second map generating device according to an embodiment of the present disclosure;

[0019] Figure 7 It is a structural block diagram of an electronic device used to implement the map generating method of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0020] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0021] In the related art, in order to display a grid map with events marked within a geographical area to front-end users, the user's front-end device needs to load the grid data of all grids within the entire geographical area from the server and obtain the map data of the geographical area. The front-end device generates and renders a layer of map based on the map data, generates and renders a layer of grid based on the grid data, and then overlays the map and the grid together to obtain a grid map. Finally, the events are "sprinkled" on the grid map, that is, the events are marked at the corresponding positions on the grid map to obtain a grid map marked with events.

[0022] From the above analysis, it can be seen that the solutions adopted by related technologies load a large amount of data, the generation process of the grid map is complex, and the amount of data processed by the front-end equipment is large, which can easily lead to the occurrence of freezes, delays and other phenomena, and have a negative impact on the user experience.

[0023] Figure 1 is a schematic diagram of a map generation method 1 according to an embodiment of the present disclosure, such as Figure 1 As shown, the method comprises the following steps:

[0024] Step S101, acquiring event data of a target event, wherein the event data includes geographic location information of the target event.

[0025] In this step, the geographic location information of the target event may be the location of the geographic area corresponding to the target event, for example, the longitude and latitude of the location where the target event occurs, or other forms of geographic coordinates of the location where the target event occurs, such as coordinates in a polar coordinate system. Optionally, the event data of the target event may also include description information of the event itself, such as event type information, event subject information, event time, etc.

[0026] Step S102, determining the target map grid corresponding to the target event according to the geographic location information. Optionally, the target map grid corresponding to the target event may be a map grid in the entire grid area, and the target event is determined to occur within the range of the map grid according to the geographic location information, so it is determined that the target event can correspond to the target map grid.

[0027] Step S103, obtaining the grid data of the target map grid. Optionally, in this step, a large amount of grid data corresponding to the entire area may be generated first, and then the grid data of the target map grid therein may be obtained; or after determining the target map grid, the grid data of the target map grid may be directly generated.

[0028] Step S104, sending the grid data and the event data to the terminal device, wherein the grid data and the event data are used by the terminal device to generate a grid map, and the grid map is marked with the target event.

[0029] Optionally, the terminal device may be a mobile terminal device of the user, such as a smart phone, a tablet computer, etc., or may be a device where a front-end browser used by the user is located. The user may use a grid map marked with target events through the front-end browser.

[0030] The above steps can be applied in a back-end device such as a server, by matching the target event with the target map grid according to the geographic location information of the target event, and then obtaining the grid data of the target map grid and sending these grid data to the front-end device, without sending the grid data of the map grid that does not correspond to the target event to the front-end, so that the amount of grid data loaded from the back-end device when the front-end device makes a grid map is greatly reduced, achieving the technical purpose of quickly generating a grid map at the front end, solving the technical problem of slow grid map generation speed caused by sending a large amount of grid data from the back-end device to the front end, and achieving the technical effect of improving the efficiency of the front-end device in making grid maps.

[0031] As an optional embodiment, the target map grid corresponding to the target event can be determined based on the geographic location information in the following manner: determine the correspondence between the target geographic area and the target grid area, wherein the target grid area includes multiple first map grids, and the correspondence includes the correspondence between the first map grids and the sub-areas in the target geographic area; based on the geographic location information and the correspondence, determine the first map grid in the target grid area that corresponds to the target event as the target map grid.

[0032] In this optional embodiment, the target geographic area can be a geographic area that the user wants to browse, and the user wants to browse a grid map of the geographic area marked with a target event. For example, the target geographic area can be an urban area of ​​a city on the map, or a rectangular area on the map with a longitude range of A to B and a latitude range of C to D. The target grid area is a whole map grid corresponding to the target geographic area, that is, the target grid area includes a plurality of first map grids. Determining the correspondence between the target geographic area and the target grid area is similar to aligning the geographic area with the grid area, so as to facilitate the subsequent determination of the map grid corresponding to the target event based on the geographic location information of the target event. The sub-area in the target geographic area can be an area aligned with the first map grid. The sub-area does not need to actually divide the target geographic area and then obtain it, but can determine the geographic area range in the target geographic area corresponding to each first map grid in the target grid area one by one after aligning the target grid area with the target geographic area as a whole, and then determine the geographic range as the sub-area corresponding to the first map grid.

[0033] In addition, the target event annotation can be used to implement various applications on the front end. For example, by annotating the target event in a grid map and displaying it to the front end user, the user can intuitively know the frequency of events in different grid areas on different maps from the map. For another example, based on the grid map annotated with the target event, a heat map of the target event can be displayed to the user.

[0034] Furthermore, after obtaining the geographic location information of the target event, it is possible to determine in which sub-area of ​​the target geographic area the geographic location of the target event falls, and based on the correspondence between the sub-area and the first map grid, determine which first map grid the target event should correspond to, and then determine the first map grid as the target map grid.

[0035] As an optional embodiment, determining the correspondence between a first map grid and a sub-area in a target geographic area may include the following steps: obtaining grid area baseline information and the number of target grids, wherein the grid area baseline information describes the longitude range and latitude range corresponding to the target grid area; determining the longitude range and latitude range corresponding to each of a plurality of first map grids based on the grid area baseline information and the number of target grids; and determining, based on the longitude range and latitude range corresponding to each of the first map grids, the sub-area in the target geographic area that meets the longitude range and latitude range as the sub-area corresponding to the first map grid.

[0036] The grid area reference information can be used to associate the target grid area with the target geographic area as a whole. For example, when the target grid area and the target geographic area are both rectangular areas, the grid area reference information can be the reference longitude and reference latitude of the target grid area. The reference longitude can be two longitude lines corresponding to the two vertical sides of the target grid area, and the reference latitude can be two latitude lines corresponding to the upper and lower horizontal sides of the target grid area. The longitude range and latitude range corresponding to the target grid area can be obtained based on the reference longitude and latitude. In addition, the number of target grids represents the number of first map grids included in the target grid area. Based on the number of target grids and the longitude range and latitude range spanned by the target grid area as a whole, the longitude and latitude range of the target geographic area corresponding to each first map grid can be calculated. Since the target geographic area itself can be represented by longitude and latitude, the sub-area corresponding to the first map grid on the target geographic area can be determined based on the longitude and latitude range corresponding to the first map grid.

[0037] As an optional embodiment, the longitude range and latitude range corresponding to each of the multiple first map grids are determined according to the grid area benchmark information and the number of target grids. This can be done in the following manner: based on the grid area benchmark information and the number of target grids, the longitude span and latitude span of the first map grid are determined; the arrangement position of each of the multiple first map grids in the target grid area is determined; based on the longitude span, latitude span and arrangement position, the longitude range and latitude range corresponding to each of the multiple first map grids are determined.

[0038] It should be noted that, in this optional embodiment, the first map grids in the target grid area are map grids of the same shape and size by default, so the longitude span and latitude span of each first map grid can be directly obtained based on the longitude and latitude range of the target grid area and the number of target grids included in the target grid area. Furthermore, based on the arrangement position of each specific first map grid in the target grid area, the longitude range and latitude range in the target geographical area corresponding to each first map grid can be calculated.

[0039] As an optional embodiment, the above method may further include the following steps: when the target event includes multiple events and the target map grid includes multiple second map grids, determining the number of events corresponding to the second map grids, wherein the number of events is the number of target events corresponding to the second map grids; and sending the number of events to the terminal device.

[0040] This embodiment provides a grid map generation solution for processing a large number of target events. When there are multiple target events and multiple target events correspond to multiple target map grids, the number of target events corresponding to each target map grid can be counted in advance, and then the number of events can be directly sent to the front end. The event number data can be used by the front end to implement multiple functions, such as frequency map production, heat map production, etc. This embodiment can count the correspondence between the number of grids and events in advance and send it to the terminal device. The terminal device can directly use the data to produce the grid map, saving the data processing pressure of the terminal device and improving the production speed of the grid map.

[0041] As an optional embodiment, to send the number of events to a terminal device, a grid key-value pair corresponding to the second map grid can be first generated, wherein the grid key-value pair is used to record the grid data of the second map grid and the number of events corresponding to the second map grid; and then the grid key-value pair is sent to the terminal device.

[0042] Through this optional embodiment, the grid data and the number of events can be sent to the terminal device in correspondence. After receiving the grid key-value pair, the terminal device can quickly render and generate a grid corresponding to the number of events, thereby speeding up the generation of the grid map. For example, the terminal device needs to generate a grid map marked with the frequency of target events, and render different colors for the grid according to the frequency of target events occurring in the grid. At this time, the terminal device receives the grid key-value pair, and can directly render and generate the grid map according to the grid data in the grid key-value pair and the number of events corresponding to the grid, without the need to parse the event data and count the number of target events occurring in each grid after obtaining all the event data, and then perform the rendering work. Therefore, the production speed of the front-end grid map can be greatly accelerated.

[0043] Figure 2 is a schematic diagram of a target grid area according to an optional embodiment of the present disclosure. Figure 2 As shown, the target grid area can be a rectangular area, lonBase represents the value of the base longitude of the target grid area, latBase represents the value of the base latitude of the target grid area, lonOffset represents the span of each map grid in the longitude direction, latOffset represents the span of each map grid in the latitude direction, lonNum represents the number of map grids in the longitude direction, and latNum represents the number of map grids in the latitude direction.

[0044] Figure 2The target grid area shown can be determined in the following manner: first, the values ​​of lonBase and latBase are determined based on the grid area reference information. Optionally, the left vertical side of the rectangular target grid area can be set as the reference longitude, and the lower horizontal side of the target grid area can be set as the reference latitude. Further, the grid area reference information can also include parameter values ​​of lonOffset, latOffset, lonNum and latNum. Based on the above parameter values, the number of map grids included in the target grid area and the longitude range and latitude range corresponding to each map grid can be calculated. Through the above steps, the correspondence between the target grid area and the target map area is completed, and the correspondence between the map grids in the target grid area and the sub-areas in the target geographic area is completed.

[0045] Figure 3 FIG. 1 is a schematic diagram of a target map grid determination method according to an optional embodiment of the present disclosure. Figure 3 As shown, according to the geographic location information of the target event, the target map grid corresponding to the target event can be determined by a binary method. Specifically, the target map grid can be obtained by searching from the target grid area through the following steps:

[0046] Step 1: Get the longitude and latitude values ​​of each map grid in the target grid area, and store the values ​​into arrays after removing duplicates.

[0047] Step 2: Use the array data to determine the longitude and latitude ranges corresponding to each map grid.

[0048] Step 3: According to the geographic location information of the target event, determine the longitude and latitude corresponding to the target event, and then use the binary method to perform interval positioning based on the longitude and latitude of the target event, and then determine the map grid where the longitude and latitude of the target event falls.

[0049] Step 4: When there are multiple target events, execute the above step 3 multiple times, record the located target map grids and the number of target events corresponding to each target map grid, and generate a grid key-value pair that stores data in the form of "grid data-number of events".

[0050] In the above steps, by using the binary search method in the longitude direction and the latitude direction respectively, the map grid corresponding to the target event can be quickly located. After that, the back-end server only needs to pass the relevant information such as the grid key-value pair to the front-end for the front-end to use, which greatly reduces the computational load when the front-end generates the grid map and speeds up the production of the grid map.

[0051] Figure 4 is a schematic diagram of a second map generation method according to an embodiment of the present disclosure, such as Figure 4As shown, the method comprises the following steps:

[0052] Step S401, receiving grid data of a target map grid and event data of a target event from a server, wherein the event data includes geographic location information of the target event, and the target map grid is a map grid corresponding to the target event determined according to the geographic location information of the target event.

[0053] Step S402: Generate a grid map with target events marked on it according to the grid data and event data.

[0054] The above steps can be applied in a front-end device such as a mobile terminal device, by matching the target event with the target map grid according to the geographic location information of the target event, and then obtaining the grid data of the target map grid and sending these grid data to the front-end device, without sending the grid data of the map grid that does not correspond to the target event to the front end, so that the amount of grid data loaded from the back-end device when the front-end device makes a grid map is greatly reduced, achieving the technical purpose of quickly generating a grid map at the front end, solving the technical problem of slow grid map generation caused by sending a large amount of grid data from the back-end device to the front end, and achieving the technical effect of improving the efficiency of the front-end device in making grid maps.

[0055] As an optional embodiment, the above method may further include the following steps: when the target event includes multiple events and the target map grid includes multiple second map grids, receiving the number of events corresponding to the second map grid from the server, wherein the number of events is the number of target events corresponding to the second map grid; rendering an event frequency image of the second map grid based on the number of events; and displaying the event frequency image in the grid map.

[0056] Optionally, the event frequency image may include multiple forms. For example, the second map grid may be rendered in different colors according to the number of events corresponding to the second map grid, or an Arabic numeral image displayed on the second map grid may be directly rendered. Through this optional embodiment, a method for generating a grid map that meets user needs is provided, which can meet the user's various needs, such as generating an event heat map, a frequency color map or a frequency bar graph for the user, which greatly reduces the speed of making a personalized grid map while meeting the user's needs.

[0057] As an optional embodiment, the number of events corresponding to the second map grid is received from the server, and a grid key-value pair corresponding to the second map grid can be received from the server, wherein the grid key-value pair is used to record the grid data of the second map grid and the number of events corresponding to the second map grid.

[0058] Figure 5is a structural block diagram of a map generating device according to an embodiment of the present disclosure. Figure 5 As shown, the map generating device 50 includes: a first acquisition module 51, a first determination module 52, a second acquisition module 53 and a first sending module 54. The map generating device 50 is described below.

[0059] A first acquisition module 51 is used to acquire event data of a target event, wherein the event data includes geographic location information of the target event;

[0060] A first determination module 52, connected to the first acquisition module 51, is used to determine the target map grid corresponding to the target event according to the geographic location information;

[0061] A second acquisition module 53, connected to the first determination module 52, is used to acquire grid data of a target map grid;

[0062] The first sending module 54 is connected to the second acquiring module 53 and is used to send the grid data and the event data to the terminal device, wherein the grid data and the event data are used by the terminal device to generate a grid map, and the grid map is marked with target events.

[0063] As an optional embodiment, the first determination module includes: a first determination unit, used to determine the correspondence between the target geographic area and the target grid area, wherein the target grid area includes multiple first map grids, and the correspondence includes the correspondence between the first map grids and the sub-areas in the target geographic area; a second determination unit, used to determine, based on the geographic location information and the correspondence, that the first map grid corresponding to the target event in the target grid area is the target map grid.

[0064] As an optional embodiment, the first determination unit includes: an acquisition subunit, used to acquire grid area benchmark information and the number of target grids, wherein the grid area benchmark information describes the longitude range and latitude range corresponding to the target grid area; a first determination subunit, used to determine the longitude range and latitude range corresponding to each of a plurality of first map grids based on the grid area benchmark information and the number of target grids; and a second determination subunit, used to determine, based on the longitude range and latitude range corresponding to each of the first map grids, a sub-area in the target geographic area that meets the longitude range and latitude range as the sub-area corresponding to the first map grid.

[0065] As an optional embodiment, the first determination subunit includes: a third determination subunit, used to determine the longitude span and latitude span of the first map grid based on the grid area benchmark information and the number of target grids; a fourth determination subunit, used to determine the arrangement position of each of the multiple first map grids in the target grid area; and a fifth determination subunit, used to determine the longitude range and latitude range corresponding to each of the multiple first map grids based on the longitude span, latitude span and arrangement position.

[0066] As an optional embodiment, the above-mentioned device also includes: a second determination module, which is used to determine the number of events corresponding to the second map grid when the target event includes multiple events and the target map grid includes multiple second map grids, wherein the number of events is the number of target events corresponding to the second map grid; a second sending module, which is used to send the number of events to the terminal device.

[0067] As an optional embodiment, the second sending module includes: a generating unit, used to generate a grid key-value pair corresponding to the second map grid, wherein the grid key-value pair is used to record the grid data of the second map grid and the number of events corresponding to the second map grid; and a sending unit, used to send the grid key-value pair to a terminal device.

[0068] Figure 6 is a structural block diagram of a map generating device 2 according to an embodiment of the present disclosure, such as Figure 6 As shown, the second map generating device 60 includes: a first receiving module 61 and a generating module 62. The second map generating device 60 is described below.

[0069] A first receiving module 61 is used to receive grid data of a target map grid and event data of a target event from a server, wherein the event data includes geographic location information of the target event, and the target map grid is a map grid corresponding to the target event determined according to the geographic location information of the target event;

[0070] The generating module 62 is connected to the first receiving module 61 and is used to generate a grid map marked with target events according to the grid data and the event data.

[0071] As an optional embodiment, the above-mentioned device also includes: a second receiving module, which is used to receive the number of events corresponding to the second map grid from the server when the target event includes multiple events and the target map grid includes multiple second map grids, wherein the number of events is the number of target events corresponding to the second map grid; a rendering module, which is used to render an event frequency image of the second map grid according to the number of events; and a display module, which is used to display the event frequency image in the grid map.

[0072] As an optional embodiment, the second receiving module includes: a receiving unit, used to receive a grid key-value pair corresponding to the second map grid from a server, wherein the grid key-value pair is used to record grid data of the second map grid and the number of events corresponding to the second map grid.

[0073] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0074] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0075] Figure 7 A schematic block diagram of an example electronic device 700 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0076] like Figure 7 As shown, the device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0077] A number of components in the device 700 are connected to the I / O interface 705, including: an input unit 706, such as a keyboard, a mouse, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0078] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above, such as the map generation method. For example, in some embodiments, the map generation method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded into the RAM 703 and executed by the computing unit 701, one or more steps of the map generation method described above may be performed. Alternatively, in other embodiments, the computing unit 701 may be configured to perform the map generation method in any other appropriate manner (e.g., by means of firmware).

[0079] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0080] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0081] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 foregoing.

[0082] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0083] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0084] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0085] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0086] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A map generation method, comprising: Acquire event data of a target event, wherein the event data includes geographic location information of the target event; Determining a target map grid corresponding to the target event according to the geographic location information; Obtaining grid data of the target map grid; Sending the grid data and the event data to a terminal device, wherein the grid data and the event data are used by the terminal device to generate a grid map, and the grid map is marked with the target event; When the target event includes a plurality of events and the target map grid includes a plurality of second map grids, determining the number of events corresponding to the second map grids, wherein the number of events is the number of target events corresponding to the second map grids; The number of events is sent to the terminal device.

2. The method according to claim 1, wherein: Determining the target map grid corresponding to the target event according to the geographic location information includes: Determining a correspondence between a target geographic area and a target grid area, wherein the target grid area includes a plurality of first map grids, and the correspondence includes a correspondence between the first map grids and sub-areas in the target geographic area; According to the geographical location information and the corresponding relationship, a first map grid corresponding to the target event in the target grid area is determined as the target map grid.

3. The method according to claim 2, wherein: The determining of the correspondence between the target geographic area and the target grid area, wherein the correspondence includes the correspondence between the first map grid and a sub-area in the target geographic area, comprises: Obtaining grid area reference information and the number of target grids, wherein the grid area reference information describes the longitude range and latitude range corresponding to the target grid area; Determining the longitude range and latitude range corresponding to each of the plurality of first map grids according to the grid area reference information and the number of target grids; Based on the longitude range and latitude range corresponding to each of the first map grids, a sub-area in the target geographic area that meets the longitude range and the latitude range is determined as the sub-area corresponding to the first map grid.

4. The method according to claim 3, wherein: The determining, according to the grid area reference information and the number of target grids, the longitude range and latitude range corresponding to each of the plurality of first map grids comprises: Determining the longitude span and latitude span of the first map grid based on the grid area reference information and the target grid number; Determining an arrangement position of each of the plurality of first map grids in the target grid area; According to the longitude span, the latitude span and the arrangement position, the longitude range and the latitude range corresponding to each of the plurality of first map grids are determined.

5. The method according to claim 1, wherein: The sending the number of events to the terminal device includes: Generate a grid key-value pair corresponding to the second map grid, wherein the grid key-value pair is used to record grid data of the second map grid and the number of events corresponding to the second map grid; The grid key-value pair is sent to the terminal device.

6. A map generation method, comprising: Receiving grid data of a target map grid and event data of a target event from a server, wherein the event data includes geographic location information of the target event, and the target map grid is a map grid corresponding to the target event determined according to the geographic location information of the target event; Generating a grid map marked with the target event according to the grid data and the event data; When the target event includes a plurality of events and the target map grid includes a plurality of second map grids, receiving the number of events corresponding to the second map grids from the server, wherein the number of events is the number of target events corresponding to the second map grids; Rendering an event frequency image of the second map grid according to the number of events; The event frequency image is displayed in the grid map.

7. The method according to claim 6, wherein: The receiving, from the server, the number of events corresponding to the second map grid includes: A grid key-value pair corresponding to the second map grid is received from the server, wherein the grid key-value pair is used to record grid data of the second map grid and the number of events corresponding to the second map grid.

8. A map generating device, comprising: A first acquisition module, configured to acquire event data of a target event, wherein the event data includes geographic location information of the target event; A first determination module, configured to determine a target map grid corresponding to the target event according to the geographic location information; A second acquisition module, used to acquire grid data of the target map grid; A first sending module, configured to send the grid data and the event data to a terminal device, wherein the grid data and the event data are used by the terminal device to generate a grid map, and the grid map is marked with the target event; a second determining module, configured to determine the number of events corresponding to the second map grid when the target event includes multiple events and the target map grid includes multiple second map grids, wherein the number of events is the number of target events corresponding to the second map grid; The second sending module is used to send the number of events to the terminal device.

9. The device according to claim 8, wherein: The first determining module includes: A first determining unit, configured to determine a correspondence between a target geographic area and a target grid area, wherein the target grid area includes a plurality of first map grids, and the correspondence includes a correspondence between the first map grids and sub-areas in the target geographic area; A second determining unit is configured to determine, according to the geographic location information and the corresponding relationship, a first map grid corresponding to the target event in the target grid area as the target map grid.

10. The device according to claim 9, wherein: The first determining unit includes: An acquisition subunit is used to acquire grid area reference information and the number of target grids, wherein the grid area reference information describes the longitude range and latitude range corresponding to the target grid area; A first determining subunit, configured to determine the longitude range and latitude range corresponding to each of the plurality of first map grids according to the grid area reference information and the number of target grids; The second determining subunit is used to determine, based on the longitude range and latitude range corresponding to each of the first map grids, a sub-area in the target geographic area that meets the longitude range and the latitude range as the sub-area corresponding to the first map grid.

11. The device according to claim 10, wherein: The first determining subunit includes: A third determining subunit, configured to determine the longitude span and the latitude span of the first map grid based on the grid area reference information and the number of target grids; A fourth determining subunit, configured to determine an arrangement position of each of the plurality of first map grids in the target grid area; The fifth determining subunit is used to determine the longitude range and latitude range corresponding to each of the plurality of first map grids according to the longitude span, the latitude span and the arrangement position.

12. The device according to claim 8, wherein: The second sending module includes: A generating unit, configured to generate a grid key-value pair corresponding to the second map grid, wherein the grid key-value pair is used to record grid data of the second map grid and the number of events corresponding to the second map grid; A sending unit is used to send the grid key-value pair to the terminal device.

13. A map generating device, comprising: A first receiving module, configured to receive grid data of a target map grid and event data of a target event from a server, wherein the event data includes geographic location information of the target event, and the target map grid is a map grid corresponding to the target event determined according to the geographic location information of the target event; A generating module, configured to generate a grid map marked with the target event according to the grid data and the event data; A second receiving module is used to receive the number of events corresponding to the second map grid from the server when the target event includes multiple events and the target map grid includes multiple second map grids, wherein the number of events is the number of target events corresponding to the second map grid; A rendering module, used for rendering and obtaining an event frequency image of the second map grid according to the number of events; A display module is used to display the event frequency image in the grid map.

14. The device according to claim 13, wherein: The second receiving module includes: The receiving unit is used to receive a grid key-value pair corresponding to the second map grid from the server, wherein the grid key-value pair is used to record the grid data of the second map grid and the number of events corresponding to the second map grid.

15. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to enable the computer to execute the map generating method according to any one of claims 1-7.

16. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the map generation method according to any one of claims 1 to 7.

17. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the map generation method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Positioning information processing method and device based on network RTK technology

    CN110488332A