CN111090713A - Map processing method, server, intelligent terminal and computer readable storage medium - Google Patents

Map processing method, server, intelligent terminal and computer readable storage medium Download PDF

Info

Publication number
CN111090713A
CN111090713A CN201911302566.9A CN201911302566A CN111090713A CN 111090713 A CN111090713 A CN 111090713A CN 201911302566 A CN201911302566 A CN 201911302566A CN 111090713 A CN111090713 A CN 111090713A
Authority
CN
China
Prior art keywords
longitude
target
latitude coordinates
server
intelligent terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911302566.9A
Other languages
Chinese (zh)
Inventor
郭连伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201911302566.9A priority Critical patent/CN111090713A/en
Publication of CN111090713A publication Critical patent/CN111090713A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24553Query execution of query operations
    • G06F16/24554Unary operations; Data partitioning operations
    • G06F16/24556Aggregation; Duplicate elimination

Abstract

The invention discloses a map processing method, a server, an intelligent terminal and a computer readable storage medium. Therefore, when the number of the target objects in the preset area is large, the amount of calculation required by the intelligent terminal for the aggregation processing of the position distribution information of the target objects in the preset area is small, and the page loading speed of the intelligent terminal map is improved.

Description

Map processing method, server, intelligent terminal and computer readable storage medium
Technical Field
The invention relates to the technical field of electronic maps, in particular to a map processing method, a server, an intelligent terminal and a computer readable storage medium.
Background
Usually, when viewing a map, a user of an intelligent terminal needs to view location distribution information of a shared bicycle, a restaurant and the like, a server sends the location distribution information to the intelligent terminal, and the intelligent terminal processes the location distribution information. When the position distribution information needing to be processed is more, the required calculated amount is more, the page loading speed of the intelligent terminal map can be reduced, and the user experience is influenced.
Disclosure of Invention
The embodiment of the invention provides a map processing method, a server, an intelligent terminal and a computer readable storage medium, which are used for improving the page loading speed of an intelligent terminal map.
Therefore, an embodiment of the present invention further provides a map processing method, including:
the method comprises the steps that a server receives a first request sent by an intelligent terminal; wherein the first request comprises position distribution information of a target object in a preset area;
the server acquires initial longitude and latitude coordinates of all the target objects in the preset area according to the first request;
the server determines the target longitude and latitude coordinates of each target object according to the initial longitude and latitude coordinates of all the target objects; wherein the precision of the target longitude and latitude coordinate is less than that of the initial longitude and latitude coordinate;
and the server carries out aggregation processing on at least part of the target longitude and latitude coordinates according to a preset threshold and the target longitude and latitude coordinates of each target object, and feeds back the aggregated position distribution information serving as the target object to the intelligent terminal so as to enable the intelligent terminal to display the position distribution information of the target object in the preset area.
Optionally, the server performs aggregation processing on at least part of the target longitude and latitude coordinates according to a preset threshold and the target longitude and latitude coordinates of each target object, and feeds back the aggregated position distribution information serving as the target object to the intelligent terminal, and specifically includes:
the server divides the same target longitude and latitude coordinates into a coordinate group and determines the number of the target longitude and latitude coordinates in each coordinate group;
aiming at each coordinate group, the server judges whether the number of the target longitude and latitude coordinates in the coordinate group is not less than the preset threshold value;
if so, the server carries out aggregation processing on the target longitude and latitude coordinates in the coordinate set, and feeds back the aggregated target longitude and latitude coordinates and the number of the target longitude and latitude coordinates in the coordinate set as position distribution information of the target object to the intelligent terminal;
if not, the server feeds back all the initial longitude and latitude coordinates corresponding to the target longitude and latitude coordinates in the coordinate set and the quantity 1 as the position distribution information of the target object to the intelligent terminal.
Optionally, the method further comprises:
the server receives a second request sent by the intelligent terminal; the second request comprises specific position information of all target objects corresponding to the target longitude and latitude coordinates after at least one aggregation process;
the server determines all initial longitude and latitude coordinates corresponding to the aggregated target longitude and latitude coordinates according to the aggregated target longitude and latitude coordinates;
and the server feeds back all the initial longitude and latitude coordinates and the number thereof corresponding to the aggregated target longitude and latitude coordinates as specific position information of the target object to the intelligent terminal.
Optionally, the server determines, according to the aggregated target longitude and latitude coordinates, all initial longitude and latitude coordinates corresponding to the aggregated target longitude and latitude coordinates, and specifically includes:
the server acquires initial longitude and latitude coordinates of all the target objects in the preset area;
the server determines the current longitude and latitude coordinate of each target object according to the initial longitude and latitude coordinates of all the target objects; the precision of the current longitude and latitude coordinate is the same as that of the target longitude and latitude coordinate;
and the server takes all initial longitude and latitude coordinates corresponding to the current longitude and latitude coordinates which are the same as the aggregated target longitude and latitude coordinates as all initial longitude and latitude coordinates corresponding to the aggregated target longitude and latitude coordinates.
Correspondingly, the embodiment of the invention also provides a map processing method, which comprises the following steps: the intelligent terminal sends a first request to a server so that the server can acquire initial longitude and latitude coordinates of all the target objects in the preset area according to the first request; determining the target longitude and latitude coordinates of each target object according to the initial longitude and latitude coordinates of all the target objects; according to a preset threshold value and the target longitude and latitude coordinates of each target object, carrying out aggregation processing on at least part of the target longitude and latitude coordinates, and feeding back the aggregated position distribution information serving as the target object to the intelligent terminal; wherein the first request comprises position distribution information of a target object in a preset area; wherein the precision of the target longitude and latitude coordinate is less than that of the initial longitude and latitude coordinate;
and the intelligent terminal receives the position distribution information of the target object fed back by the server and displays the position distribution information.
Optionally, the intelligent terminal receives and displays the position distribution information of the target object fed back by the server, and specifically includes:
the intelligent terminal receives the target longitude and latitude coordinates and the corresponding quantity fed back by the server as the position distribution information of the target object, and directly displays the target longitude and latitude coordinates and the corresponding quantity;
the intelligent terminal receives all the initial longitude and latitude coordinates fed back by the server and the corresponding quantity 1 as the position distribution information of the target object, and displays the position distribution information after processing;
the server divides the same target longitude and latitude coordinates into a coordinate group, and determines the number of the target longitude and latitude coordinates in each coordinate group;
aiming at each coordinate group, the server judges whether the number of the target longitude and latitude coordinates in the coordinate group is not less than the preset threshold value;
if so, the server carries out aggregation processing on the target longitude and latitude coordinates in the coordinate set, and feeds back the aggregated target longitude and latitude coordinates and the number of the target longitude and latitude coordinates in the coordinate set as position distribution information of the target object to the intelligent terminal;
if not, the server feeds back all the initial longitude and latitude coordinates corresponding to the target longitude and latitude coordinates in the coordinate set and the quantity 1 as the position distribution information of the target object to the intelligent terminal.
Optionally, the method further comprises:
the intelligent terminal sends a second request to the server so that the server determines all initial longitude and latitude coordinates corresponding to the aggregated target longitude and latitude coordinates according to the aggregated target longitude and latitude coordinates, and feeds back all the determined initial longitude and latitude coordinates corresponding to the aggregated target longitude and latitude coordinates as specific position information of the target object to the intelligent terminal; and the second request comprises the specific position information of all target objects corresponding to the target longitude and latitude coordinates after at least one aggregation process.
Accordingly, an embodiment of the present invention further provides a server, including a memory, a processor, and a computer program stored in the memory and executable on the processor, including: the processor implements the steps of the above map processing method applied to the server side when executing the program.
Correspondingly, the embodiment of the invention also provides the intelligent terminal, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor realizes the steps of the map processing method suitable for the intelligent terminal side when executing the program.
Accordingly, embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of any one of the map processing methods described above.
The invention has the following beneficial effects:
according to the map processing method, the server, the intelligent terminal and the computer readable storage medium provided by the embodiment of the invention, after the server receives the first request sent by the intelligent terminal, the server determines the target longitude and latitude coordinates of each target object according to the initial longitude and latitude coordinates of all target objects in the preset area, at least part of the target longitude and latitude coordinates are subjected to aggregation processing, and the aggregated position distribution information serving as the target objects is fed back to the intelligent terminal. Therefore, when the number of the target objects in the preset area is large, the amount of calculation required by the intelligent terminal for the aggregation processing of the position distribution information of the target objects in the preset area is small, and the page loading speed of the intelligent terminal map is improved.
Drawings
FIG. 1 is a flowchart of a map processing method applied to a server side according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a map processing method according to an embodiment of the present invention;
FIG. 3 is a flowchart of another map processing method applied to a server side according to an embodiment of the present invention;
FIG. 4 is a detailed flowchart of another map processing method according to an embodiment of the present invention;
fig. 5 is a flowchart of a map processing method applied to an intelligent terminal side according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the drawings of the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. And the embodiments and features of the embodiments may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the invention without any inventive step, are within the scope of protection of the invention.
Unless defined otherwise, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. The use of "first," "second," and similar terms in the present application do not denote any order, quantity, or importance, but rather the terms are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
It should be noted that the sizes and shapes of the figures in the drawings are not to be considered true scale, but are merely intended to schematically illustrate the present invention. And the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout.
An embodiment of the present invention provides a map processing method, where the map processing method is applied to a server side serving as a server, and as shown in fig. 1, the map processing method may include:
s101, a server receives a first request sent by an intelligent terminal; the first request comprises position distribution information of a target object in a preset area;
s102, the server acquires initial longitude and latitude coordinates of all target objects in a preset area according to the first request;
s103, the server determines the target longitude and latitude coordinates of each target object according to the initial longitude and latitude coordinates of all the target objects; wherein the precision of the target longitude and latitude coordinates is less than that of the initial longitude and latitude coordinates;
s104, the server carries out aggregation processing on at least part of the target longitude and latitude coordinates according to a preset threshold and the target longitude and latitude coordinates of each target object, and feeds back the aggregated position distribution information serving as the target object to the intelligent terminal so that the intelligent terminal can display the position distribution information of the target object in a preset area.
According to the map processing method, the server, the intelligent terminal and the computer readable storage medium provided by the embodiment of the invention, after the server receives the first request sent by the intelligent terminal, the server determines the target longitude and latitude coordinates of each target object according to the initial longitude and latitude coordinates of all target objects in the preset area, at least part of the target longitude and latitude coordinates are subjected to aggregation processing, and the aggregated position distribution information serving as the target objects is fed back to the intelligent terminal. Therefore, when the number of the target objects in the preset area is large, the amount of calculation required by the intelligent terminal for the aggregation processing of the position distribution information of the target objects in the preset area is small, and the page loading speed of the intelligent terminal map is improved.
In practical application, a user of the intelligent terminal may need to view location distribution information of a shared bicycle, express goods, a restaurant, a hotel, a supermarket, a hospital, and the like on a map, so that the target object may be specifically set as the shared bicycle, the express goods, the restaurant, the hotel, the supermarket, the hospital, and the like according to the user requirement in specific implementation, which is not limited herein.
Generally, when searching for a target object in a map webpage of a browser of an intelligent terminal or in a map Application (APP) of the intelligent terminal, a user usually searches in a certain preset area so as to search for a corresponding target object in the preset area. In practical application, a certain numerical value (for example, 2km) is selected as a radius by taking the position of the intelligent terminal as a circle center, and a practical area surrounded by a circle is drawn in a practical environment. And the actual area can be mapped on the map through the proportional relation between the map and the actual environment so as to form a preset area in the map.
Alternatively, the preset area may be represented as a rectangular area defined by latitude and longitude coordinate ranges, for example, x1, x2 for longitude coordinates, y1, y2 for latitude coordinates, and x1< x2, y1< y 2. The preset region may be a rectangular region defined with longitude and latitude coordinates (x1, y1), (x1, y2), (x2, y1), (x2, y2) as four vertices of a rectangle. Of course, the preset region may also be a region with other shapes, and the specific representation manner of the preset region should be determined according to the actual application environment design, and is not limited herein.
In specific implementation, the target object may send the initial longitude and latitude coordinates to the server in real time, or may send the initial longitude and latitude coordinates to the server once every preset time, which is not limited herein. Illustratively, taking the target object as the sharing bicycle as an example, a position monitoring chip is arranged on the sharing bicycle, so as to monitor the longitude and latitude coordinates of the position of the sharing bicycle in real time through the position monitoring chip, and send the longitude and latitude coordinates of the position of the sharing bicycle as the initial longitude and latitude coordinates to the server in real time.
In specific implementation, the number of digits after the longitude coordinate in the initial longitude and latitude coordinate sent by the target object to the server is accurate to a decimal point is the maximum longitude digit which can be confirmed by the position monitoring chip on the target object, and the number of digits after the latitude coordinate is accurate to the decimal point is the maximum latitude digit which can be confirmed by the position monitoring chip on the target object.
In specific implementation, the precision of the target longitude and latitude coordinates is smaller than that of the initial longitude and latitude coordinates, specifically, the precision of the longitude coordinates in the initial longitude and latitude coordinates can be a after the accuracy reaches a decimal point, and the precision of the latitude coordinates can be b after the accuracy reaches the decimal point; the precision of the longitude coordinate in the target longitude and latitude coordinates can be m bits after being accurate to a decimal point, and the precision of the latitude coordinates can be n bits after being accurate to the decimal point; and m < a, n < b.
In specific implementation, the number of digits after the longitude coordinate in the target longitude and latitude coordinate is accurate to the decimal point can be determined according to the number of digits after the longitude coordinate in the initial longitude and latitude coordinate is accurate to the decimal point, and the number of digits after the latitude coordinate in the target longitude and latitude coordinate is accurate to the decimal point can be determined according to the number of digits after the latitude coordinate in the initial longitude and latitude coordinate is accurate to the decimal point. Illustratively, m-a-2, n-b-2, e.g., m-6, n-6, a-4, b-4. Of course, the specific values of a, b, m, and n may be designed and determined according to the actual application, and are not limited herein.
In specific implementation, the specific value of the preset threshold may be arbitrarily selected from 3 to 50, for example, the preset threshold may be 20, may be 30, and may be 50; or, the specific value of the preset threshold may be determined according to the total number of the target objects in the preset area, and of course, the specific value of the preset threshold may be determined according to the actual application environment design, which is not limited herein.
In specific implementation, in the embodiment of the present invention, the server performs aggregation processing on at least part of the target longitude and latitude coordinates according to a preset threshold and the target longitude and latitude coordinates of each target object, and feeds back the location distribution information, which is obtained after the aggregation processing and is used as the target object, to the intelligent terminal, as shown in fig. 2, the method specifically includes:
s201, a server divides the same target longitude and latitude coordinates into a coordinate group, and determines the number of the target longitude and latitude coordinates in each coordinate group;
s202, aiming at each coordinate group, the server judges whether the number of the target longitude and latitude coordinates in the coordinate group is not less than a preset threshold value or not; if yes, go to step S203; if not, executing step S204;
s203, the server carries out aggregation processing on the target longitude and latitude coordinates in the coordinate set, and feeds back the aggregated target longitude and latitude coordinates and the number of the target longitude and latitude coordinates in the coordinate set as position distribution information of the target object to the intelligent terminal;
and S204, the server feeds back all initial longitude and latitude coordinates corresponding to the target longitude and latitude coordinates in the coordinate set and the quantity 1 as position distribution information of the target object to the intelligent terminal.
In specific implementation, if the number of the target longitude and latitude coordinates in the coordinate set is not less than the preset threshold, that is, the number of the target objects corresponding to the same target longitude and latitude coordinate is not less than the preset threshold, it is indicated that the target objects are densely distributed in the area corresponding to the target longitude and latitude coordinates. In order to enable the intelligent terminal to more visually display the areas with densely distributed target objects and the number of the target objects in the areas and reduce the calculated amount of the intelligent terminal, the server carries out aggregation processing on the target longitude and latitude coordinates in the coordinate set, and feeds back the aggregated target longitude and latitude coordinates and the number of the target longitude and latitude coordinates in the coordinate set as position distribution information of the target objects to the intelligent terminal. If the number of the target longitude and latitude coordinates in the coordinate set is smaller than the preset threshold, that is, the number of the target objects corresponding to the same target longitude and latitude coordinate is smaller than the preset threshold, it is indicated that the number of the target objects corresponding to the target longitude and latitude coordinates is small, and even only one target object exists. And the server feeds back all initial longitude and latitude coordinates corresponding to the target longitude and latitude coordinates in the coordinate group and the quantity 1 as position distribution information of the target object to the intelligent terminal so that the intelligent terminal can aggregate the target longitude and latitude coordinates.
In specific implementation, as shown in fig. 3, the map processing method provided in the embodiment of the present invention may further include:
s301, the server receives a second request sent by the intelligent terminal; the second request comprises specific position information of all target objects corresponding to the target longitude and latitude coordinates after at least one aggregation process;
s302, the server determines all initial longitude and latitude coordinates corresponding to the aggregated target longitude and latitude coordinates according to the aggregated target longitude and latitude coordinates;
s303, the server feeds back all the initial longitude and latitude coordinates and the number thereof corresponding to the determined aggregated target longitude and latitude coordinates as specific position information of the target object to the intelligent terminal.
In specific implementation, after the intelligent terminal displays the area with densely distributed target objects and the number of the target objects in the area, the specific position of the target object in the area may need to be further displayed, so that the server feeds back all the initial longitude and latitude coordinates corresponding to the determined aggregated target longitude and latitude coordinates as specific position information of the target object to the intelligent terminal.
In a specific implementation, in the embodiment of the present invention, the server determines, according to the aggregated target longitude and latitude coordinates, all initial longitude and latitude coordinates corresponding to the aggregated target longitude and latitude coordinates, as shown in fig. 4, which may specifically include:
s401, a server acquires initial longitude and latitude coordinates of all target objects in a preset area;
s402, the server determines the current longitude and latitude coordinates of each target object according to the initial longitude and latitude coordinates of all the target objects; and the precision of the current longitude and latitude coordinates is the same as that of the target longitude and latitude coordinates.
S403, the server takes all initial longitude and latitude coordinates corresponding to the current longitude and latitude coordinates which are the same as the aggregated target longitude and latitude coordinates as all initial longitude and latitude coordinates corresponding to the aggregated target longitude and latitude coordinates.
In specific implementation, the precision of the current longitude and latitude coordinates is the same as that of the target longitude and latitude coordinates. Specifically, the longitude coordinate in the target longitude and latitude coordinate can be accurate to m bits after the decimal point, and the latitude coordinate can be accurate to n bits after the decimal point; the longitude coordinate in the current longitude and latitude coordinate can also be accurate to m bits after the decimal point, and the latitude coordinate can also be accurate to n bits after the decimal point; and m < a, n < b.
Based on the same inventive concept, an embodiment of the present invention provides a map processing method, where the map processing method is applied to an intelligent terminal side serving as a client, and as shown in fig. 5, the map processing method may include:
s501, the intelligent terminal sends a first request to a server so that the server can obtain initial longitude and latitude coordinates of all target objects in a preset area according to the first request; determining the target longitude and latitude coordinates of each target object according to the initial longitude and latitude coordinates of all the target objects; according to a preset threshold value and the target longitude and latitude coordinates of each target object, at least part of the target longitude and latitude coordinates are subjected to aggregation processing, and position distribution information serving as the target object after the aggregation processing is fed back to the intelligent terminal; the first request comprises position distribution information of a target object in a preset area; wherein the precision of the target longitude and latitude coordinate is less than that of the initial longitude and latitude coordinate;
and S502, the intelligent terminal receives the position distribution information of the target object fed back by the server and displays the position distribution information.
In specific implementation, in the embodiment of the present invention, the displaying, performed by the intelligent terminal after receiving the position distribution information of the target object fed back by the server, may specifically include:
the intelligent terminal receives the target longitude and latitude coordinates fed back by the server and the corresponding quantity as the position distribution information of the target object, and directly displays the target longitude and latitude coordinates and the corresponding quantity;
the intelligent terminal receives the position distribution information of the target object, which is fed back by the server, of all the initial longitude and latitude coordinates and the corresponding number 1, and displays the position distribution information after processing;
the server divides the same target longitude and latitude coordinates into a coordinate group, and determines the number of the target longitude and latitude coordinates in each coordinate group;
aiming at each coordinate group, the server judges whether the number of the target longitude and latitude coordinates in the coordinate group is not less than a preset threshold value;
if so, the server carries out aggregation processing on the target longitude and latitude coordinates in the coordinate set, and feeds back the aggregated target longitude and latitude coordinates and the number of the target longitude and latitude coordinates in the coordinate set as position distribution information of the target object to the intelligent terminal;
if not, the server feeds back all initial longitude and latitude coordinates corresponding to the target longitude and latitude coordinates in the coordinate set and the quantity 1 as position distribution information of the target object to the intelligent terminal.
In specific implementation, the intelligent terminal receives the target longitude and latitude coordinates fed back by the server and the corresponding quantity as the position distribution information of the target object, and directly displays the target longitude and latitude coordinates and the corresponding quantity, which specifically may include: and the intelligent terminal marks the corresponding number of the positions corresponding to the longitude and latitude coordinates of the target on the map.
In specific implementation, when the intelligent terminal receives the position distribution information of the target object, which is fed back by the server, of all the initial longitude and latitude coordinates and the corresponding number 1, the processing and displaying processes may be basically the same as those in the prior art, and are not described herein again.
In specific implementation, in the embodiment of the present invention, the method may further include:
the intelligent terminal sends a second request to the server, so that the server determines all initial longitude and latitude coordinates corresponding to the aggregated target longitude and latitude coordinates according to the aggregated target longitude and latitude coordinates, and feeds back all the initial longitude and latitude coordinates corresponding to the determined aggregated target longitude and latitude coordinates as specific position information of the target object to the intelligent terminal; the second request comprises specific position information of all target objects corresponding to the target longitude and latitude coordinates after at least one aggregation process.
The present invention will be described in detail with reference to specific examples. It should be noted that the present embodiment is intended to better explain the present invention, but not to limit the present invention.
The intelligent terminal sends a first request to the server.
The method comprises the steps that a server receives a first request sent by an intelligent terminal; the first request comprises position distribution information of a target object in a preset area, and the target object is a shared bicycle. The preset area is an area formed by mapping a circular area formed by taking the intelligent terminal as the center of a circle and taking 10km as the radius to the map through the proportional relation between the map and the actual environment.
And the server acquires the initial longitude and latitude coordinates of all the shared bicycles in the preset area according to the first request. The maximum longitude digit which can be determined by the position monitoring chip on the shared bicycle is 6, the maximum latitude digit is 6, the longitude coordinate in the initial longitude and latitude coordinate is accurate to 6 digits after the decimal point, and the latitude coordinate is accurate to 6 digits after the decimal point. For example, if there are 6 sharing bicycles P1 to P6 in the preset area, the server may obtain the initial longitude and latitude coordinates of the 6 sharing bicycles P1 to P6 according to the first request: p1(115.112245, 40.662235), P2(115.112266, 40.662236), P3(115.112367, 40.662236), P4(115.112277, 40.662233), P5(115.112411, 40.772233), P6(115.112422, 40.772233).
The server processes the initial longitude and latitude coordinates of the 6 shared bicycles P1-P6 according to the principle that the longitude coordinate in the target longitude and latitude coordinates is accurate to 4 digits after the decimal point and the latitude coordinate is accurate to 4 digits after the decimal point, and determines the target longitude and latitude coordinates of the 6 shared bicycles P1-P6: p1(115.1122, 40.6622), P2(115.1122, 40.6622), P3(115.1123, 40.6622), P4(115.1122, 40.6622), P5(115.1124, 40.7722), P6(115.1124, 40.7722).
The server divides the same target longitude and latitude coordinates into a coordinate group, and determines the number of the target longitude and latitude coordinates in each coordinate group. Specifically, P1(115.1122, 40.6622), P2(115.1122, 40.6622), P4(115.1122, 40.6622) are taken as a first coordinate set { P1(115.1122, 40.6622), P2(115.1122, 40.6622), P4(115.1122, 40.6622) }, and the target longitude and latitude coordinate number is 3. P3(115.1123, 40.6622) is taken as a second coordinate set { P3(115.1123, 40.6622) }, and the number of target latitude and longitude coordinates is 1. P5(115.1124, 40.7722), P6(115.1124, 40.7722) are taken as a third coordinate set { P5(115.1124, 40.7722), P6(115.1124, 40.7722) }, and the target latitude and longitude coordinate number is 2.
And aiming at each coordinate group, the server judges whether the number of the target longitude and latitude coordinates in the coordinate group is not less than a preset threshold value. Specifically, when the preset threshold is 3, the number of the target longitude and latitude coordinates in the first coordinate set is 3, and is equal to the preset threshold; the number of the target longitude and latitude coordinates in the second coordinate set is 1 and is smaller than a preset threshold value; the number of the target longitude and latitude coordinates in the third coordinate set is 2 and is smaller than a preset threshold value.
And because the number of the target longitude and latitude coordinates in the first coordinate set is equal to a preset threshold value, the server carries out aggregation processing on the target longitude and latitude coordinates in the first coordinate set, and feeds back the aggregated target longitude and latitude coordinates and the number of the target longitude and latitude coordinates in the coordinate set as position distribution information of the shared bicycle to the intelligent terminal. Specifically, the server aggregates the target longitude and latitude coordinates in the first coordinate set to obtain aggregated target longitude and latitude coordinates (115.1122, 40.6622), and then feeds back the aggregated target longitude and latitude coordinates (115.1122, 40.6622) and the number 3 of the target longitude and latitude coordinates in the first coordinate set as the position distribution information (115.1122, 40.6622, 3) of the shared bicycle to the intelligent terminal. The intelligent terminal receives the target longitude and latitude coordinates fed back by the server and the corresponding number as the position distribution information of the shared bicycle, and can directly mark 3 the position corresponding to the aggregated target longitude and latitude coordinates (115.1122, 40.6622) on the map.
Because the number of the target longitude and latitude coordinates in the second coordinate set and the third coordinate set is smaller than a preset threshold value, the server feeds back the initial longitude and latitude coordinates (115.1123, 40.6622) corresponding to the target longitude and latitude coordinates (115.1123, 40.6622) in the second coordinate set and the initial longitude and latitude coordinates (115.1124, 40.7722), (115.1124, 40.7722) and the number 1 corresponding to the target longitude and latitude coordinates (115.1124, 40.7722) in the third coordinate set as the position distribution information (115.1123, 40.6622, 1), (115.1124, 40.7722,1), (115.1124, 40.7722,1) of the shared bicycle to the intelligent terminal. And the intelligent terminal receives all the initial longitude and latitude coordinates fed back by the server and the corresponding number 1 as the position distribution information of the shared bicycle, and displays the position distribution information after aggregation processing.
The intelligent terminal sends a second request to the server; the second request comprises specific position information of all the shared bicycles corresponding to the aggregated target longitude and latitude coordinates (115.1122, 40.6622).
And the server receives a second request sent by the intelligent terminal.
The server acquires initial longitude and latitude coordinates of all shared bicycles in a preset area: p1(115.112245, 40.662235), P2(115.112266, 40.662236), P3(115.112367, 40.662236), P4(115.112277, 40.662233), P5(115.112411, 40.772233), P6(115.112422, 40.772233).
The server determines the current longitude and latitude coordinates of each sharing bicycle according to the initial longitude and latitude coordinates of all the sharing bicycles: p1(115.1122, 40.6622), P2(115.1122, 40.6622), P3(115.1123, 40.6622), P4(115.1122, 40.6622), P5(115.1124, 40.7722), P6(115.1124, 40.7722).
The current longitude and latitude coordinates which are the same as the aggregated target longitude and latitude coordinates (115.1122, 40.6622) are as follows: p1(115.1122, 40.6622), P2(115.1122, 40.6622), P4(115.1122, 40.6622). And the initial longitude and latitude coordinates corresponding to the current longitude and latitude coordinates P1(115.1122, 40.6622) are: p1(115.112245, 40.662235). The initial longitude and latitude coordinates corresponding to the current longitude and latitude coordinates P2(115.1122, 40.6622) are: p2(115.112266, 40.662236). The initial longitude and latitude coordinates corresponding to the current longitude and latitude coordinates P4(115.1122, 40.6622) are: p4(115.112277, 40.662233). The server may convert the initial latitude and longitude coordinates: and P1(115.112245, 40.662235), P2(115.112266, 40.662236), P4(115.112277, 40.662233) and the number 3 thereof are fed back to the intelligent terminal as specific position information of the shared bicycle so as to be displayed by the intelligent terminal.
Based on the same inventive concept, an embodiment of the present invention further provides a server, which includes a memory, a processor, and a computer program stored in the memory and running on the processor, and when the processor executes the computer program, the steps of the map processing method applied to the server side provided by the embodiment of the present invention are implemented.
Based on the same inventive concept, the embodiment of the invention further provides an intelligent terminal, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the steps of the map processing method suitable for the intelligent terminal side provided by the embodiment of the invention are realized when the processor executes the program.
Based on the same inventive concept, embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of any of the above-mentioned map processing methods.
According to the map processing method, the server, the intelligent terminal and the computer readable storage medium provided by the embodiment of the invention, after the server receives the first request sent by the intelligent terminal, the server determines the target longitude and latitude coordinates of each target object according to the initial longitude and latitude coordinates of all target objects in the preset area, at least part of the target longitude and latitude coordinates are subjected to aggregation processing, and the aggregated position distribution information serving as the target objects is fed back to the intelligent terminal. Therefore, when the number of the target objects in the preset area is large, the amount of calculation required by the intelligent terminal for the aggregation processing of the position distribution information of the target objects in the preset area is small, and the page loading speed of the intelligent terminal map is improved.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A map processing method, comprising:
the method comprises the steps that a server receives a first request sent by an intelligent terminal; wherein the first request comprises position distribution information of a target object in a preset area;
the server acquires initial longitude and latitude coordinates of all the target objects in the preset area according to the first request;
the server determines the target longitude and latitude coordinates of each target object according to the initial longitude and latitude coordinates of all the target objects; wherein the precision of the target longitude and latitude coordinate is less than that of the initial longitude and latitude coordinate;
and the server carries out aggregation processing on at least part of the target longitude and latitude coordinates according to a preset threshold and the target longitude and latitude coordinates of each target object, and feeds back the aggregated position distribution information serving as the target object to the intelligent terminal so as to enable the intelligent terminal to display the position distribution information of the target object in the preset area.
2. The map processing method according to claim 1, wherein the server aggregates at least part of the target longitude and latitude coordinates according to a preset threshold and the target longitude and latitude coordinates of each target object, and feeds back the aggregated position distribution information as the target object to the intelligent terminal, specifically comprising:
the server divides the same target longitude and latitude coordinates into a coordinate group and determines the number of the target longitude and latitude coordinates in each coordinate group;
aiming at each coordinate group, the server judges whether the number of the target longitude and latitude coordinates in the coordinate group is not less than the preset threshold value;
if so, the server carries out aggregation processing on the target longitude and latitude coordinates in the coordinate set, and feeds back the aggregated target longitude and latitude coordinates and the number of the target longitude and latitude coordinates in the coordinate set as position distribution information of the target object to the intelligent terminal;
if not, the server feeds back all the initial longitude and latitude coordinates corresponding to the target longitude and latitude coordinates in the coordinate set and the quantity 1 as the position distribution information of the target object to the intelligent terminal.
3. The map processing method of claim 1, further comprising:
the server receives a second request sent by the intelligent terminal; the second request comprises specific position information of all target objects corresponding to the target longitude and latitude coordinates after at least one aggregation process;
the server determines all initial longitude and latitude coordinates corresponding to the aggregated target longitude and latitude coordinates according to the aggregated target longitude and latitude coordinates;
and the server feeds back all the initial longitude and latitude coordinates and the number thereof corresponding to the aggregated target longitude and latitude coordinates as specific position information of the target object to the intelligent terminal.
4. The map processing method of claim 3, wherein the server determines all initial longitude and latitude coordinates corresponding to the aggregated target longitude and latitude coordinates according to the aggregated target longitude and latitude coordinates, and specifically comprises:
the server acquires initial longitude and latitude coordinates of all the target objects in the preset area;
the server determines the current longitude and latitude coordinate of each target object according to the initial longitude and latitude coordinates of all the target objects; the precision of the current longitude and latitude coordinate is the same as that of the target longitude and latitude coordinate;
and the server takes all initial longitude and latitude coordinates corresponding to the current longitude and latitude coordinates which are the same as the aggregated target longitude and latitude coordinates as all initial longitude and latitude coordinates corresponding to the aggregated target longitude and latitude coordinates.
5. A map processing method, comprising:
the intelligent terminal sends a first request to a server so that the server can acquire initial longitude and latitude coordinates of all the target objects in the preset area according to the first request; determining the target longitude and latitude coordinates of each target object according to the initial longitude and latitude coordinates of all the target objects; according to a preset threshold value and the target longitude and latitude coordinates of each target object, carrying out aggregation processing on at least part of the target longitude and latitude coordinates, and feeding back the aggregated position distribution information serving as the target object to the intelligent terminal; wherein the first request comprises position distribution information of a target object in a preset area; wherein the precision of the target longitude and latitude coordinate is less than that of the initial longitude and latitude coordinate;
and the intelligent terminal receives the position distribution information of the target object fed back by the server and displays the position distribution information.
6. The map processing method according to claim 5, wherein the intelligent terminal receives the position distribution information of the target object fed back by the server and then displays the position distribution information, specifically comprising:
the intelligent terminal receives the target longitude and latitude coordinates and the corresponding quantity fed back by the server as the position distribution information of the target object, and directly displays the target longitude and latitude coordinates and the corresponding quantity;
the intelligent terminal receives all the initial longitude and latitude coordinates fed back by the server and the corresponding quantity 1 as the position distribution information of the target object, and displays the position distribution information after processing;
the server divides the same target longitude and latitude coordinates into a coordinate group, and determines the number of the target longitude and latitude coordinates in each coordinate group;
aiming at each coordinate group, the server judges whether the number of the target longitude and latitude coordinates in the coordinate group is not less than the preset threshold value;
if so, the server carries out aggregation processing on the target longitude and latitude coordinates in the coordinate set, and feeds back the aggregated target longitude and latitude coordinates and the number of the target longitude and latitude coordinates in the coordinate set as position distribution information of the target object to the intelligent terminal;
if not, the server feeds back all the initial longitude and latitude coordinates corresponding to the target longitude and latitude coordinates in the coordinate set and the quantity 1 as the position distribution information of the target object to the intelligent terminal.
7. The map processing method of claim 6, further comprising:
the intelligent terminal sends a second request to the server so that the server determines all initial longitude and latitude coordinates corresponding to the aggregated target longitude and latitude coordinates according to the aggregated target longitude and latitude coordinates, and feeds back all the determined initial longitude and latitude coordinates corresponding to the aggregated target longitude and latitude coordinates as specific position information of the target object to the intelligent terminal; and the second request comprises the specific position information of all target objects corresponding to the target longitude and latitude coordinates after at least one aggregation process.
8. A server comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, comprising: the processor, when executing the program, implements the steps of the map processing method of any one of claims 1-4.
9. An intelligent terminal comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the map processing method according to any one of claims 5 to 7 are implemented when the processor executes the program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the map processing method of any one of claims 1 to 7.
CN201911302566.9A 2019-12-17 2019-12-17 Map processing method, server, intelligent terminal and computer readable storage medium Pending CN111090713A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911302566.9A CN111090713A (en) 2019-12-17 2019-12-17 Map processing method, server, intelligent terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911302566.9A CN111090713A (en) 2019-12-17 2019-12-17 Map processing method, server, intelligent terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111090713A true CN111090713A (en) 2020-05-01

Family

ID=70395631

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911302566.9A Pending CN111090713A (en) 2019-12-17 2019-12-17 Map processing method, server, intelligent terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111090713A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023087722A1 (en) * 2021-11-18 2023-05-25 北京锐安科技有限公司 Object gathering method and apparatus, and electronic device and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139287A (en) * 2012-12-11 2013-06-05 厦门雅迅网络股份有限公司 Map aggregation vehicle refreshing method based on distributed calculating
CN105509743A (en) * 2015-11-24 2016-04-20 上海汽车集团股份有限公司 A positioning processing method, a business platform and a network system
CN105574194A (en) * 2015-12-28 2016-05-11 江苏鸿信系统集成有限公司 Coordinate point processing method and device for electronic map interface
CN105740275A (en) * 2014-12-10 2016-07-06 北京神州泰岳软件股份有限公司 Map display method and device
CN108198346A (en) * 2018-01-23 2018-06-22 北京小米移动软件有限公司 The method and device of the shared bicycle of management
CN108243426A (en) * 2016-12-26 2018-07-03 中国移动通信集团设计院有限公司 A kind of method and server of determining wireless base station demand point
CN108446833A (en) * 2018-03-01 2018-08-24 北京航空航天大学合肥创新研究院 A kind of police unmanned plane airplane parking area site selecting method of highway
CN109783594A (en) * 2019-01-09 2019-05-21 成都路行通信息技术有限公司 A kind of construction method, the apparatus and system of vehicle thermodynamic chart
CN109902969A (en) * 2019-03-13 2019-06-18 武汉大学 A kind of shared bicycle release position planing method based on OD data

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103139287A (en) * 2012-12-11 2013-06-05 厦门雅迅网络股份有限公司 Map aggregation vehicle refreshing method based on distributed calculating
CN105740275A (en) * 2014-12-10 2016-07-06 北京神州泰岳软件股份有限公司 Map display method and device
CN105509743A (en) * 2015-11-24 2016-04-20 上海汽车集团股份有限公司 A positioning processing method, a business platform and a network system
CN105574194A (en) * 2015-12-28 2016-05-11 江苏鸿信系统集成有限公司 Coordinate point processing method and device for electronic map interface
CN108243426A (en) * 2016-12-26 2018-07-03 中国移动通信集团设计院有限公司 A kind of method and server of determining wireless base station demand point
CN108198346A (en) * 2018-01-23 2018-06-22 北京小米移动软件有限公司 The method and device of the shared bicycle of management
CN108446833A (en) * 2018-03-01 2018-08-24 北京航空航天大学合肥创新研究院 A kind of police unmanned plane airplane parking area site selecting method of highway
CN109783594A (en) * 2019-01-09 2019-05-21 成都路行通信息技术有限公司 A kind of construction method, the apparatus and system of vehicle thermodynamic chart
CN109902969A (en) * 2019-03-13 2019-06-18 武汉大学 A kind of shared bicycle release position planing method based on OD data

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
卫振林、黄爱玲: "《物流信息技术与装备》", 中国物资出版社, pages: 113 *
崔邓: "基于智能手机轨迹提取停留点的时空聚类算法研究" *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023087722A1 (en) * 2021-11-18 2023-05-25 北京锐安科技有限公司 Object gathering method and apparatus, and electronic device and storage medium

Similar Documents

Publication Publication Date Title
US9201898B2 (en) Efficient fetching of map tile data
CN107291874B (en) Map point location aggregation method and device
US20170200048A1 (en) Information processing apparatus, information processing method, and non-transitory computer-readable storage medium storing program
US20140278067A1 (en) System and method for indicating user location and facing direction on a digital map
CN103268730B (en) Electronic map interface shows the method and apparatus of association mark point
CN109741436B (en) Method and device for rendering vector data
CN106255056B (en) For enhancing and the system and method based on the related privacy of location-based service
US20130241953A1 (en) Information processing apparatus and information processing method
CN103955955B (en) A kind of electronic map information processing method and processing device
CN111210201A (en) Occupational label establishing method and device, electronic equipment and storage medium
US9779543B2 (en) Method for providing and receiving information representing physical features of a portion of a three dimensional surface
JP5000965B2 (en) Area information provision method
CN110427574B (en) Route similarity determination method, device, equipment and medium
CN111090713A (en) Map processing method, server, intelligent terminal and computer readable storage medium
CN105893998A (en) Method and device for estimating density of real points in assigned area
US7395257B2 (en) Automated method and system to calculate the surface distance between two geographical locations, and to filter a data set based on the calculation
US11436263B2 (en) Geocoding methods and systems of correcting latitude and longitude of a point of interest
CN110046210B (en) Map information updating method and device, electronic equipment and storage medium
CN110866078A (en) Data processing method and device, display control method and device and vehicle
CN111858624A (en) Vehicle use condition updating method and device
US20190102354A1 (en) Allocation of shareable item via dynamic exponentiation
CN114064829A (en) Method and device for carrying out aggregation display on positioning points and electronic equipment
CN110750602A (en) Method and device for determining site to which order address belongs
CN111405463B (en) Information acquisition method and device, electronic equipment and storage medium
JP2015125482A (en) Icon display program and icon display device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination