Google map data extraction method, device, equipment and storage medium

By constructing multiple payload request data and extracting geographical tags, trajectory data and time point data from Google Maps, it solves the complex problem of Google Map data export and achieves rapid data export and improved adaptability.

CN112949581BActive Publication Date: 2024-10-22AFIRSTSOFT CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202110341171.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-30
Publication Date
2024-10-22
Estimated Expiration
2041-03-30

AI Technical Summary

Technical Problem

Google Maps data is difficult to export. The exported data is in KML format, which requires a specific program to open and has a large amount of data, making the import process complicated and inefficient for users.

Method used

By constructing multiple payload request data, send it to the Google server, extract the geotag storage data, movement trajectory data and trajectory time point data, and build the map record data corresponding to the target identity token in Google Maps based on these data to implement non-KML format of data extraction.

Benefits of technology

It realizes the rapid export of Google Maps data, and the data format adapts to more application scenarios, simplifying the user's data viewing and backup process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112949581B_ABST
    Figure CN112949581B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of data processing, and discloses a method, device, equipment and storage medium for extracting data from a Google map. The method comprises: constructing a first payload request data, sending the first payload request data and a preset target identity token to a preset Google server, receiving first feedback data sent by the Google server, and extracting geographic tag storage data in the first feedback data; constructing a second payload request data, sending the second payload request data to the Google server, receiving second feedback data sent by the Google server, and extracting movement track data corresponding to the geographic tag storage data in the second feedback data; constructing a third payload request data, sending the third payload request data to the Google server, receiving third feedback data sent by the Google server, and extracting track time point data corresponding to the movement track data in the third feedback data; and constructing map record data corresponding to the target identity token in the Google map.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing, and in particular to a method, device, equipment and storage medium for extracting data from Google Maps. Background Art

[0002] With the development of smart devices, the interaction between Google Maps and smart devices has also increased. It is not limited to map navigation. Users can perform more operations on Google Maps. As a result, more and more data is saved on Google Maps.

[0003] Google Maps provides users with a large number of Internet cloud-based services, and users can record and view data saved on Google Maps on different devices or terminals, such as user favorites, starred places, places you want to go, tagged places, completed route information, and customized map information.

[0004] As more and more data is generated, it becomes more complicated when we need to export or back up the data on Google Maps. As a world-renowned high-tech company, Google also attaches great importance to data security, so it does not provide a public API for third parties to export data. When we need to export Google Maps data, we can use the Google TakeOut service to export the data, but the data exported using this method is in KML format and requires a specific program to open. Moreover, because it contains all the map data, all the data is large, and there is no integration of the corresponding data, which makes the import process complicated and inefficient for users. Therefore, how to quickly and conveniently allow users to view map data, or back up map data locally, is a problem that needs to be solved at present. Summary of the invention

[0005] The main purpose of the present invention is to solve the technical problems that Google map data is difficult to export and the application scenarios of map data are relatively small.

[0006] A first aspect of the present invention provides a method for extracting data from a Google map, the method comprising:

[0007] Constructing first payload request data, sending the first payload request data and a preset target identity token to a preset Google server, receiving first feedback data sent by the Google server, and extracting geo-tag storage data in the first feedback data;

[0008] Constructing second payload request data, sending the second payload request data to the Google server, receiving second feedback data sent by the Google server, and extracting movement track data corresponding to the geo-tag saved data in the second feedback data;

[0009] Constructing third payload request data, sending the third payload request data to the Google server, receiving third feedback data sent by the Google server, and extracting trajectory time point data corresponding to the movement trajectory data in the third feedback data;

[0010] Based on the geo-tag saved data, the movement track data, and the track time point data, the map record data corresponding to the target identity token in the Google map is constructed.

[0011] Optionally, in a first implementation of the first aspect of the present invention, before constructing the first payload request data and sending the first payload request data and the preset target identity token to the preset Google server, it also includes:

[0012] According to the preset device identification, preset language settings, preset device model, preset software version information, preset GMM Google action management mobile information, a protocol data framework is constructed based on the Google Maps communication protocol;

[0013] Construct the key structure of the Google server corresponding to the request data, and perform protobuf serialization on the key structure to obtain a sequence key structure;

[0014] The protocol data frame and the sequence key structure are subjected to padding byte and segment identification processing to generate a request data frame.

[0015] Optionally, in a second implementation of the first aspect of the present invention, constructing the first payload request data includes:

[0016] The object of the first payload request data is written into the entity part in the request data frame to generate the first payload request data.

[0017] Optionally, in a third implementation of the first aspect of the present invention, constructing the second payload request data includes:

[0018] Writing a server record data request corresponding to the target identity token into the entity part of the request data frame;

[0019] According to the server record data request, the protocol header setting of the request data frame is adjusted to obtain the second payload request data.

[0020] Optionally, in a fourth implementation manner of the first aspect of the present invention, constructing the third payload request data includes:

[0021] Writing N payload time loading requests to the entity part of the request data frame;

[0022] According to the N payload time loading requests, the protocol header setting of the request data frame is adjusted to obtain third payload request data.

[0023] Optionally, in a fifth implementation of the first aspect of the present invention, extracting the movement trajectory data corresponding to the geo-tag stored data in the second feedback data includes:

[0024] According to the preset data identifier and the preset segment identifier, traverse and query the second feedback data to obtain target query data;

[0025] Determining whether the target query data is a compressed file;

[0026] If it is a compressed file, the target query data is decompressed using the Gzip algorithm to obtain the movement trajectory data corresponding to the geo-tag saved data.

[0027] Optionally, in a sixth implementation manner of the first aspect of the present invention, obtaining the trajectory time point data corresponding to the movement trajectory data in the third feedback data includes:

[0028] According to the preset segmentation identifier and the preset compression identifier, loop through the third feedback data to obtain time data of the query date interval;

[0029] Intercept and decompress the time data to obtain time protobuf data corresponding to the time data;

[0030] The time protobuf data is parsed using the TimelineResponce structure to obtain trajectory time point data corresponding to the movement trajectory data.

[0031] A second aspect of the present invention provides a device for extracting data from a Google map, comprising:

[0032] Constructing first payload request data, sending the first payload request data and a preset target identity token to a preset Google server, receiving first feedback data sent by the Google server, and extracting geo-tag storage data in the first feedback data;

[0033] Constructing second payload request data, sending the second payload request data to the Google server, receiving second feedback data sent by the Google server, and extracting movement track data corresponding to the geo-tag saved data in the second feedback data;

[0034] Constructing third payload request data, sending the third payload request data to the Google server, receiving third feedback data sent by the Google server, and extracting trajectory time point data corresponding to the movement trajectory data in the third feedback data;

[0035] Based on the geo-tag saved data, the movement track data, and the track time point data, the map record data corresponding to the target identity token in the Google map is constructed.

[0036] A third aspect of the present invention provides a Google Map data extraction device, comprising: a memory and at least one processor, wherein the memory stores instructions, and the memory and the at least one processor are interconnected via lines; the at least one processor calls the instructions in the memory so that the Google Map data extraction device executes the above-mentioned Google Map data extraction method.

[0037] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned Google Maps data extraction method.

[0038] In the embodiment of the present invention, by modifying the request content of the Google protocol, it is possible to extract data in non-KML format from the Google server, and to achieve rapid export of Google maps and export data in a format that can be adapted to more application scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 A schematic diagram of an embodiment of a method for extracting data from Google Maps according to an embodiment of the present invention;

[0040] Figure 2 A schematic diagram of another embodiment of the method for extracting data from Google Maps according to an embodiment of the present invention;

[0041] Figure 3 A schematic diagram of an embodiment of a device for extracting data from Google Maps according to an embodiment of the present invention;

[0042] Figure 4 It is a schematic diagram of another embodiment of the device for extracting data from Google Maps according to an embodiment of the present invention;

[0043] Figure 5 Schematic diagram of an embodiment of a device for extracting data from Google Maps in an embodiment of the present invention. DETAILED DESCRIPTION

[0044] The embodiments of the present invention provide a method, device, equipment and storage medium for extracting data from a Google map.

[0045] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0046] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , an embodiment of the method for extracting data from Google Maps in an embodiment of the present invention includes:

[0047] 101. Construct first payload request data, send the first payload request data and a preset target identity token to a preset Google server, receive first feedback data sent by the Google server, and extract geo-tag storage data in the first feedback data;

[0048] In this embodiment, the first payload request data is constructed to request the data saved by the user in the maps server. The protocol header data required to simulate the mobile Google Maps communication protocol consists of three parts. The first is the mobile device information including the device identification, language setting, device model, Android version and GMM Google Mobile Management. Next is the key structure used to request data from the Google server. The key structure is serialized using protobuf. After the bytes and segment identification are filled, the last part is the data used to set the request. The body part of the first payload request data is constructed to set the request to obtain the saved data information. The body is protobuf serialized data, including setting information and current timestamp. It is set to request to obtain label data and list data. Other options can be set to empty. Finally, the body part and the request protocol header form the first payload request data. The target identity token is set as the parameter of the request header header, and the request header and payload are sent to the server through an HTTP POST request to receive the data responded by the server. The first feedback data also has a protocol header and a response body. Through segment identification, the main part of the saved data is found. The main part of the data needs to be decompressed to obtain the protobuf serialized data containing the required information. The serialized data contains the tag information and list information saved by the user. The tag types are divided into home, work or user-defined tags. The labeled place node can be used to parse out the longitude and latitude information, timestamp, map link, tag name and other information; the list information is divided into favorite places, places you want to go, and starred places. The saved place node can be used to parse out the longitude and latitude, time, category, URL, name, address information and other information.

[0049] 102. Construct a second payload request data, send the second payload request data to a Google server, receive second feedback data sent by the Google server, and extract movement track data corresponding to the geo-tag storage data in the second feedback data;

[0050] In this embodiment, the body part of the second payload request data is constructed to request the user information recorded in the server. The body is compressed protobuf serialized data, including setting acquisition options, API key and timestamp data, setting to obtain maps, Visited and Upcoming data, modifying the request settings of the request protocol header, and then combining this part of the body data and the request protocol header to form the second payload request data. The second feedback data of the second payload request data is received, and the main data part is found through the data identifier and the segment identifier. By finding the compression identifier, it is determined whether the main data part is compressed. If so, the Gzip algorithm is used to decompress and obtain the corresponding protobuf data. The response structure is used to parse the main part, which is divided into Visited locations and maps. The data is cyclically parsed through the VisitedPlaceContainer and VisitedPlaceRoot nodes to obtain time, name, category name, address, URL, time zone name, longitude and latitude and other data. The name, creation time and ID information of the user-defined map can be parsed through the maps_ex node.

[0051] 103. Construct a third payload request data, send the third payload request data to a Google server, receive third feedback data sent by the Google server, and extract the trajectory time point data corresponding to the moving trajectory data in the third feedback data;

[0052] In this embodiment, the third payload request data has multiple payloads, specifically the number of years from the set date to the present, and the data of each payload is composed of multiple request data, the total number of which is the total number of days in the year. The small request data is a protobuf serialized data, and the specific fields include data identification, current timestamp, current year, month, day and timeline key and some setting options. Modify the request setting of the request protocol header, and combine each timeline body and the request protocol header to form a payload of the corresponding years, which is used to obtain the timeline data on Google Maps. Receive the response data of the timeline part, loop through the segmentation identifier and compression identifier to find the main body data of the corresponding days, intercept the main body data of the day, decompress it to obtain the protobuf data, use the TimelineResponce structure to parse it, and obtain the address and route information of the day. Parse the data through the TimelineResponceBody1_2 node and the Destination and Place nodes to obtain the address data, including name, address, time zone, tag, other tags, longitude and latitude, description and other information. Then parse the data through the Time line Response Body Route Info and Route nodes to obtain information such as the start time, timestamp date, longitude and latitude, travel mode, distance, etc. of the user's trip.

[0053] 104. Based on the geo-tag saved data, movement trajectory data, and trajectory time point data, the map record data corresponding to the target identity token in Google Maps is constructed.

[0054] In this embodiment, the mapping is classified by the name characters, and the start time, timestamp date, longitude and latitude, travel mode, and distance are combined into a user-specific corresponding trajectory travel time record diagram to complete the extraction of Google map data.

[0055] In the embodiment of the present invention, by modifying the request content of the Google protocol, it is possible to extract data in non-KML format from the Google server, and to achieve rapid export of Google maps and export data formats that can be applicable to more application scenarios.

[0056] See also Figure 2 Another embodiment of the method for extracting data from Google Maps in the embodiment of the present invention includes:

[0057] 201. Construct a protocol data framework based on the Google Maps communication protocol according to the preset device identification, preset language setting, preset device model, preset software version information, and preset GMM Google Action Management mobile information;

[0058] In this embodiment, the protocol header data required to simulate the mobile Google Maps communication protocol consists of three parts. The first part includes the mobile device information including device identification, language setting, device model, Android version and GMM Google Mobile Manager.

[0059] 202. Construct a key structure corresponding to the request data of the Google server, and perform protobuf serialization processing on the key structure to obtain a sequence key structure;

[0060] In this embodiment, a key structure for requesting data from a Google server is constructed and serialized using protobuf.

[0061] 203. Perform padding byte and segment identification processing on the protocol data frame and the sequence key structure to generate a request data frame;

[0062] In this embodiment, after padding bytes and segment identification are performed on the key structure, data for setting the requested data is obtained to generate a request data frame.

[0063] 204. Write the object of the first payload request data into the entity part of the request data frame to generate the first payload request data;

[0064] In this embodiment, the body part of the first part of the payload is constructed to set the request to obtain the saved data information. The body is protobuf serialized data, including setting information and current timestamp. It is set to request to obtain tag data and list data. Other options can be set to empty. Finally, the body part and the request protocol header are combined into the first payload request data.

[0065] 205. Send the first payload request data and the preset target identity token to the preset Google server, receive the first feedback data sent by the Google server, and extract the geo-tag storage data in the first feedback data;

[0066] This embodiment is similar to the solution in the first embodiment. Please refer to the first embodiment and no further details will be given here.

[0067] 206. Write the server record data request corresponding to the target identity token into the entity part of the request data frame;

[0068] In this embodiment, a second payload request data is constructed to request the user information recorded in the server. The body is compressed protobuf serialized data, including setting acquisition options, API key and timestamp data, and setting acquisition of maps, Visited and Upcoming data.

[0069] 207. According to the server record data request, adjust the protocol header setting of the request data frame to obtain the second payload request data;

[0070] In this embodiment, the request setting of the request protocol header is modified, and then the body data of this part and the request protocol header are combined into the second payload request data.

[0071] 208. Send the second payload request data to the Google server, and receive the second feedback data sent by the Google server;

[0072] This embodiment is similar to the solution in the first embodiment. Please refer to the first embodiment and no further details will be given here.

[0073] 209. According to the preset data identifier and the preset segment identifier, traverse and query the second feedback data to obtain target query data;

[0074] In this embodiment, the second payload request data is received, and the main data portion is found through the data identifier and the segment identifier.

[0075] 210. Determine whether the target query data is a compressed file;

[0076] In this embodiment, by finding the compression mark, it is determined whether the main data part has been compressed.

[0077] 211. If it is a compressed file, the target query data is decompressed using the Gzip algorithm to obtain the movement trajectory data corresponding to the geographic tag saved data;

[0078] In this embodiment, if there is, the Gzip algorithm is used to decompress and obtain the corresponding protobuf data. The response structure is used to parse the main part, which is divided into Visited places and maps. The data is cyclically parsed through the VisitedPlaceContainer and VisitedPlaceRoot nodes to obtain time, name, category name, address, URL, time zone name, longitude and latitude, etc.; the name, creation time, and ID information of the user-defined map can be parsed through the maps_ex node.

[0079] 212. Write N payload time loading requests to the entity part of the request data frame;

[0080] In this embodiment, there are multiple payloads in the timeline part, specifically the number of years that have passed from the target year to the present, and the data of each payload is composed of multiple request data, the total number of request data is the total number of days in that year, and the small request data is a protobuf serialized data, and the specific fields include data identification, current timestamp, current year, month, day and timeline key and some setting options.

[0081] 213. According to the N payload time loading requests, the protocol header setting of the request data frame is adjusted to obtain the third payload request data;

[0082] In this embodiment, the request setting of the request protocol header is modified, and each timeline body and the request protocol header are combined into a payload of the corresponding year to obtain the timeline data on Google Maps.

[0083] 214. Send the third payload request data to the Google server, and receive the third feedback data sent by the Google server;

[0084] This embodiment is similar to the solution in the first embodiment. Please refer to the first embodiment and no further details will be given here.

[0085] 215. According to the preset segmentation identifier and the preset compression identifier, loop through the third feedback data to obtain time data of the query date interval;

[0086] In this embodiment, the response data of the timeline portion is received, and the main body data of the corresponding days is found through the segmentation identifier and the compression identifier.

[0087] 216. Intercept and decompress the time data to obtain the time protobuf data corresponding to the time data;

[0088] In this embodiment, the main body data of the day is intercepted and decompressed to obtain the time protobuf data.

[0089] 217. Use the TimelineResponce structure to parse the time protobuf data to obtain the trajectory time point data corresponding to the moving trajectory data;

[0090] In this embodiment, the time protobuf data is parsed using the TimelineResponce structure to obtain the address and route information of the day; the data is parsed through the TimelineResponceBody1_2 node and the Destination and Place nodes to obtain the address data, including the name, address, time zone, tag, other tags, longitude and latitude, description and other information; and the data is then parsed through the Time line Response Body Route Info and Route nodes to obtain the start time, timestamp date, longitude and latitude, travel mode, distance and other information in the user's trip.

[0091] 218. Based on the geo-tag saved data, movement trajectory data, and trajectory time point data, the map record data corresponding to the target identity token in Google Maps is constructed.

[0092] This embodiment is similar to the solution in the first embodiment. Please refer to the first embodiment and no further details will be given here.

[0093] In the embodiment of the present invention, by modifying the request content of the Google protocol, it is possible to extract data in non-KML format from the Google server, and to achieve rapid export of Google maps and export data formats that can be applicable to more application scenarios.

[0094] The above describes the data extraction method of Google Maps in the embodiment of the present invention. The following describes the data extraction device of Google Maps in the embodiment of the present invention. Figure 3 , an embodiment of the data extraction device of Google Maps in the embodiment of the present invention includes:

[0095] The first construction module 301 is used to construct first payload request data, send the first payload request data and a preset target identity token to a preset Google server, receive first feedback data sent by the Google server, and extract geo-tag storage data in the first feedback data;

[0096] The second construction module 302 is used to construct second payload request data, send the second payload request data to the Google server, receive second feedback data sent by the Google server, and extract movement track data corresponding to the geo-tag saved data in the second feedback data;

[0097] A third construction module 303 is used to construct third payload request data, send the third payload request data to the Google server, receive third feedback data sent by the Google server, and extract the trajectory time point data corresponding to the movement trajectory data in the third feedback data;

[0098] The integration module 304 is used to construct the map record data corresponding to the target identity token in the Google map based on the geo-tag saved data, the movement track data, and the track time point data.

[0099] In the embodiment of the present invention, by modifying the request content of the Google protocol, it is possible to extract data in non-KML format from the Google server, and to achieve rapid export of Google maps and export data formats that can be applicable to more application scenarios.

[0100] See also Figure 4 Another embodiment of the device for extracting data from Google Maps in the embodiment of the present invention includes:

[0101] The first construction module 301 is used to construct first payload request data, send the first payload request data and a preset target identity token to a preset Google server, receive first feedback data sent by the Google server, and extract geo-tag storage data in the first feedback data;

[0102] The second construction module 302 is used to construct second payload request data, send the second payload request data to the Google server, receive second feedback data sent by the Google server, and extract movement track data corresponding to the geo-tag saved data in the second feedback data;

[0103] A third construction module 303 is used to construct third payload request data, send the third payload request data to the Google server, receive third feedback data sent by the Google server, and extract the trajectory time point data corresponding to the movement trajectory data in the third feedback data;

[0104] The integration module 304 is used to construct the map record data corresponding to the target identity token in the Google map based on the geo-tag saved data, the movement track data, and the track time point data.

[0105] The Google map data extraction device further includes a protocol construction module 305, and the protocol construction module 305 is specifically used for:

[0106] According to the preset device identification, preset language settings, preset device model, preset software version information, preset GMM Google action management mobile information, a protocol data framework is constructed based on the Google Maps communication protocol;

[0107] Construct the key structure of the request data corresponding to the Google server, and perform protobuf serialization on the key structure to obtain a sequence key structure;

[0108] The protocol data frame and the sequence key structure are subjected to padding byte and segment identification processing to generate a request data frame.

[0109] Wherein, the first construction module 301 is specifically used for:

[0110] The object of the first payload request data is written into the entity part in the request data frame to generate the first payload request data.

[0111] Wherein, the second construction module 302 is specifically used for:

[0112] Writing a server record data request corresponding to the target identity token into the entity part of the request data frame;

[0113] According to the server record data request, the protocol header setting of the request data frame is adjusted to obtain the second payload request data.

[0114] Wherein, the third construction module 303 is specifically used for:

[0115] Writing N payload time loading requests to the entity part of the request data frame;

[0116] According to the N payload time loading requests, the protocol header setting of the request data frame is adjusted to obtain third payload request data.

[0117] The second construction module 302 may also be specifically used for:

[0118] According to the preset data identifier and the preset segment identifier, traverse and query the second feedback data to obtain target query data;

[0119] Determining whether the target query data is a compressed file;

[0120] If it is a compressed file, the target query data is decompressed using the Gzip algorithm to obtain the movement trajectory data corresponding to the geo-tag saved data.

[0121] The third construction module 303 may also be specifically used for:

[0122] According to the preset segmentation identifier and the preset compression identifier, loop through the third feedback data to obtain time data of the query date interval;

[0123] Intercept and decompress the time data to obtain time protobuf data corresponding to the time data;

[0124] The time protobuf data is parsed using the TimelineResponce structure to obtain trajectory time point data corresponding to the movement trajectory data.

[0125] In the embodiment of the present invention, by modifying the request content of the Google protocol, it is possible to extract data in non-KML format from the Google server, and to achieve rapid export of Google maps and export data formats that can be applicable to more application scenarios.

[0126] above Figure 3 and Figure 4 The data extraction device for Google Maps in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The data extraction device for Google Maps in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0127] Figure 5 : is a structural diagram of a Google map data extraction device provided by an embodiment of the present invention. The Google map data extraction device 500 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 510 (for example, one or more processors) and a memory 520, and one or more storage media 530 (for example, one or more mass storage devices) storing application programs 533 or data 532. Among them, the memory 520 and the storage medium 530 can be short-term storage or permanent storage. The program stored in the storage medium 530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the Google map data extraction device 500. Furthermore, the processor 510 can be configured to communicate with the storage medium 530 to execute a series of instruction operations in the storage medium 530 on the Google map data extraction device 500.

[0128] The data extraction device 500 based on Google Maps may also include one or more power supplies 540, one or more wired or wireless network interfaces 550, one or more input and output interfaces 560, and / or one or more operating systems 531, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Figure 5 The structure of the data extraction device for Google Maps shown does not constitute a limitation on the data extraction device based on Google Maps, and may include more or less components than those shown in the figure, or combine certain components, or arrange the components differently.

[0129] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the Google Map data extraction method.

[0130] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device, or unit can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0131] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0132] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for extracting data from Google Maps, characterized in that: Includes steps: Constructing first payload request data, sending the first payload request data and a preset target identity token to a preset Google server, receiving first feedback data sent by the Google server, and extracting geo-tag storage data in the first feedback data; Constructing second payload request data, sending the second payload request data to the Google server, receiving second feedback data sent by the Google server, and extracting movement track data corresponding to the geo-tag saved data in the second feedback data; Constructing third payload request data, sending the third payload request data to the Google server, receiving third feedback data sent by the Google server, and extracting trajectory time point data corresponding to the movement trajectory data in the third feedback data; Based on the geo-tag saved data, the movement track data, and the track time point data, construct the map record data corresponding to the target identity token in Google Maps; The extracting of trajectory time point data corresponding to the movement trajectory data in the third feedback data includes: According to the preset segmentation identifier and the preset compression identifier, loop through the third feedback data to obtain time data of the query date interval; Intercept and decompress the time data to obtain time protobuf data corresponding to the time data; The time protobuf data is parsed using the TimelineResponce structure to obtain trajectory time point data corresponding to the movement trajectory data.

2. The method for extracting data from Google Maps according to claim 1, characterized in that: Before constructing the first payload request data and sending the first payload request data and the preset target identity token to the preset Google server, the process further includes: According to the preset device identification, preset language settings, preset device model, preset software version information, preset GMM Google action management mobile information, a protocol data framework is constructed based on the Google Maps communication protocol; Construct the key structure of the request data corresponding to the Google server, and perform protobuf serialization on the key structure to obtain a sequence key structure; The protocol data frame and the sequence key structure are subjected to padding byte and segment identification processing to generate a request data frame.

3. The method for extracting data from Google Maps according to claim 2, characterized in that: The constructing of the first payload request data comprises: The protobuf serialized data of the first payload request data is written into the entity part in the request data frame to generate the first payload request data.

4. The method for extracting data from Google Maps according to claim 2, characterized in that: The constructing of the second payload request data includes: Writing a server record data request corresponding to the target identity token into the entity part of the request data frame; According to the server record data request, the protocol header setting of the request data frame is adjusted to obtain the second payload request data.

5. The method for extracting data from Google Maps according to claim 2, characterized in that: The constructing of the third payload request data includes: Writing N payload time loading requests to the entity part of the request data frame; According to the N payload time loading requests, the protocol header setting of the request data frame is adjusted to obtain third payload request data.

6. The method for extracting data from Google Maps according to claim 1, characterized in that: The extracting the movement track data corresponding to the geo-tag saved data in the second feedback data includes: According to the preset data identifier and the preset segment identifier, traverse and query the second feedback data to obtain target query data; Determining whether the target query data is a compressed file; If it is a compressed file, the target query data is decompressed using the Gzip algorithm to obtain the movement trajectory data corresponding to the geo-tag saved data.

7. A device for extracting data from Google Maps, characterized in that: The data extraction device of the Google map comprises: A first construction module is used to construct first payload request data, send the first payload request data and a preset target identity token to a preset Google server, receive first feedback data sent by the Google server, and extract geo-tag storage data in the first feedback data; A second construction module is used to construct second payload request data, send the second payload request data to the Google server, receive second feedback data sent by the Google server, and extract movement track data corresponding to the geo-tag saved data in the second feedback data; A third construction module is used to construct third payload request data, send the third payload request data to the Google server, receive third feedback data sent by the Google server, and extract trajectory time point data corresponding to the movement trajectory data in the third feedback data; An integration module, for constructing map record data corresponding to the target identity token in Google Maps based on the geo-tag saved data, the movement trajectory data, and the trajectory time point data; Wherein, the third construction module is specifically used for: According to the preset segmentation identifier and the preset compression identifier, loop through the third feedback data to obtain time data of the query date interval; Intercept and decompress the time data to obtain time protobuf data corresponding to the time data; The time protobuf data is parsed using the TimelineResponce structure to obtain trajectory time point data corresponding to the movement trajectory data.

8. A data extraction device for Google Maps, characterized in that: The Google Maps data extraction device comprises: a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instructions in the memory to enable the Google map data extraction device to execute the Google map data extraction method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for extracting data from a Google map according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Method for extracting navigation route of iPhone Baidu map

    CN106294632A

  • Web map transmission-based data security communication method and system

    CN109413049A

  • Key file extraction method and device for WhatsApp

    CN111405550A

  • System for registering and searching volcano information based on map data, and method for implementing volcano information using the same

    KR1020150101523A

  • Apparatus and method of displaying travel route based on drone forensics

    KR102115566B1