CN111368218A - Display method, device, terminal and computer storage medium - Google Patents

Display method, device, terminal and computer storage medium Download PDF

Info

Publication number
CN111368218A
CN111368218A CN202010116577.4A CN202010116577A CN111368218A CN 111368218 A CN111368218 A CN 111368218A CN 202010116577 A CN202010116577 A CN 202010116577A CN 111368218 A CN111368218 A CN 111368218A
Authority
CN
China
Prior art keywords
track
terminal
plane
paragraph
motion
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
CN202010116577.4A
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.)
Shenzhen Koudai Network Technology Co ltd
Original Assignee
Shenzhen Koudai Network 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 Shenzhen Koudai Network Technology Co ltd filed Critical Shenzhen Koudai Network Technology Co ltd
Priority to CN202010116577.4A priority Critical patent/CN111368218A/en
Publication of CN111368218A publication Critical patent/CN111368218A/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/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • 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/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures

Abstract

The embodiment of the invention discloses a display method, which is applied to a terminal and comprises the following steps: when the movement track of the geographical position of the terminal is displayed on the display interface of the terminal, receiving touch operation on the display interface of the terminal, converting the movement track of the geographical position to obtain a plane movement track on the display interface, determining a paragraph of the plane movement track where the touch position is located when the touch position of the touch operation is on the plane movement track, obtaining movement information of the paragraph of the plane movement track where the touch position is located, and displaying the movement information on the display interface. The embodiment of the invention also discloses a display device, a terminal and a computer storage medium.

Description

Display method, device, terminal and computer storage medium
Technical Field
The present invention relates to a display technology of motion information of a motion trajectory in an electronic map, and in particular, to a display method, device, terminal, and computer storage medium.
Background
At present, with the growth of various intelligent terminal users and the development of technologies, map applications gradually tend to be mobile, and many applications integrate the functions of maps, such as some mobile phone malls, sports software, navigation software, and even enterprise applications that also include real-time and convenience, and the applications can be well displayed for road condition planning and route display.
Although these applications can well show the route on the map, when the detailed information of a certain position in a certain route in the navigation software is viewed, the detailed information cannot be viewed by clicking the route, and only the map is continuously enlarged to view the information in the corresponding map, however, the operation of continuously enlarging the map to view the information in the map is complicated to use, so that the existing method for obtaining the detailed information of the route in the electronic map is complicated, and the efficiency is low.
Disclosure of Invention
In view of this, embodiments of the present invention are intended to provide a display method, an apparatus, a terminal, and a computer storage medium, so as to solve the technical problem that the method for acquiring detailed information of a route in an electronic map is complex and causes low efficiency in the prior art.
The technical scheme of the invention is realized as follows:
in a first aspect, an embodiment of the present application provides a display method, where the method is applied in a terminal, and the method includes:
when a movement track of the geographical position of the terminal is displayed on a display interface of the terminal, receiving touch operation on the display interface of the terminal;
converting the movement track of the geographic position to obtain a plane movement track on the display interface;
when the touch position of the touch operation is on the plane motion track, determining a paragraph of the plane motion track where the touch position is;
and acquiring motion information of a paragraph of the plane motion track where the touch position is located, and displaying the motion information on the display interface.
In the above method, before receiving a touch operation on the display interface of the terminal when the movement track of the geographical position of the terminal is displayed on the display interface of the terminal, the method further includes:
acquiring the geographical position information of the terminal;
and forming a movement track of the geographical position of the terminal according to the geographical position information of the terminal, and displaying the movement track on the display interface.
In the above method, before determining a segment of the planar motion trajectory in which the touch position is located when the touch position of the touch operation is on the planar motion trajectory, the method further includes:
segmenting the plane motion track to obtain a paragraph of the plane motion track;
and generating motion information of the paragraph of the plane motion trail aiming at the paragraph of the plane motion trail.
In the above method, when the touch position of the touch operation is on the planar motion trajectory, determining a paragraph of the planar motion trajectory where the touch position is located includes:
segmenting the paragraph of the plane motion track, and determining the segmented paragraph of the plane motion track as the area of the plane motion track;
when the touch position of the touch operation is on the plane motion track, determining the area of the plane motion track where the touch position falls;
and determining the paragraph of the plane motion track in which the area of the plane motion track in which the touch position falls as the paragraph of the plane motion track in which the touch position falls.
In the above method, the segmenting the paragraph of the planar motion trajectory, and determining the segmented paragraph of the planar motion trajectory as the area of the planar motion trajectory includes:
for each section of linear track in the section of the plane motion track, intercepting each section of linear track according to a preset length along a line width perpendicular to each section of linear track to form a quadrangle;
and determining a quadrangle formed by each section of straight line track in the section of the plane motion track as the area of the plane motion track.
In the above method, the method further comprises:
when the touch position is not on the plane motion track, determining the shortest distance between the touch position and the plane motion track;
when the shortest distance is smaller than a preset threshold value, displaying the motion information of the paragraph of the plane motion track where the area of the plane motion track corresponding to the shortest distance is located on the display interface;
when the shortest distance is larger than or equal to a preset threshold value, generating prompt information; and the prompt information is used for prompting that the touch operation is invalid operation.
In the above method, the motion information of the section of the planar motion trajectory is one or more of:
the length of the moving mileage of the paragraph of the plane moving track, the moving time of the paragraph of the plane moving track, and the moving duration of the paragraph of the plane moving track.
In a second aspect, an embodiment of the present invention provides a display device, where the display device is disposed in a terminal, and the display device includes:
the terminal comprises a receiving module, a processing module and a display module, wherein the receiving module is used for receiving touch operation on a display interface of the terminal when a movement track of the geographical position of the terminal is displayed on the display interface of the terminal;
the conversion module is used for converting the movement track of the geographic position to obtain a plane movement track on the display interface;
the determining module is used for determining a paragraph of the plane motion track where the touch position is located when the touch position of the touch operation is on the plane motion track;
and the display module is used for acquiring the motion information of the paragraph of the plane motion track where the touch position is located and displaying the motion information on the display interface.
In the above apparatus, the apparatus is further configured to:
when a movement track of the geographical position of the terminal is displayed on a display interface of the terminal, acquiring geographical position information of the terminal before receiving touch operation on the display interface of the terminal;
and forming a movement track of the geographical position of the terminal according to the geographical position information of the terminal, and displaying the movement track on the display interface.
In the above apparatus, the apparatus is further configured to:
when the touch position of the touch operation is on the plane motion track, and before the paragraph of the plane motion track where the touch position is located is determined, segmenting the plane motion track to obtain the paragraph of the plane motion track;
and generating motion information of the paragraph of the plane motion trail aiming at the paragraph of the plane motion trail.
In the above apparatus, the determining module is specifically configured to:
segmenting the paragraph of the plane motion track, and determining the segmented paragraph of the plane motion track as the area of the plane motion track;
when the touch position of the touch operation is on the plane motion track, determining the area of the plane motion track where the touch position falls;
and determining the paragraph of the plane motion track in which the area of the plane motion track in which the touch position falls as the paragraph of the plane motion track in which the touch position falls.
In the above apparatus, the determining module segments the paragraph of the planar motion trajectory, and determines the segmented paragraph of the planar motion trajectory as the area of the planar motion trajectory, including:
for each section of linear track in the section of the plane motion track, intercepting each section of linear track according to a preset length along a line width perpendicular to each section of linear track to form a quadrangle;
and determining a quadrangle formed by each section of straight line track in the section of the plane motion track as the area of the plane motion track.
In the above apparatus, the apparatus is configured to:
when the touch position is not on the plane motion track, determining the shortest distance between the touch position and the plane motion track;
when the shortest distance is smaller than a preset threshold value, displaying the motion information of the paragraph of the plane motion track where the area of the plane motion track corresponding to the shortest distance is located on the display interface;
when the shortest distance is larger than or equal to a preset threshold value, generating prompt information; and the prompt information is used for prompting that the touch operation is invalid operation.
In the above apparatus, the motion information of the section of the planar motion trajectory is one or more of:
the length of the moving mileage of the paragraph of the plane moving track, the moving time of the paragraph of the plane moving track, and the moving duration of the paragraph of the plane moving track.
In a third aspect, an embodiment of the present invention further provides a terminal, where the terminal includes: the display device comprises a processor and a storage medium storing instructions executable by the processor, wherein the storage medium depends on the processor to perform operations through a communication bus, and when the instructions are executed by the processor, the display method of one or more embodiments is performed.
In a fourth aspect, an embodiment of the present invention provides a computer storage medium storing executable instructions, which when executed by one or more processors perform the display method described in one or more embodiments above.
The embodiment of the invention provides a display method, a display device, a terminal and a computer storage medium, wherein the method is applied to the terminal and comprises the following steps: when the movement track of the geographical position of the terminal is displayed on the display interface of the terminal, receiving touch operation on the display interface of the terminal, converting the movement track of the geographical position to obtain a plane movement track on the display interface, determining a paragraph of the plane movement track where the touch position is located when the touch position of the touch operation is on the plane movement track, obtaining movement information of the paragraph of the plane movement track where the touch position is located, and displaying the movement information on the display interface; that is to say, in the embodiment of the present invention, when the display interface displays the motion trajectory of the geographic location, the motion trajectory of the geographic location is converted into the planar motion trajectory, and when a touch operation is received, the touch location on the display interface of the touch operation is used to determine the paragraph of the planar motion trajectory where the touch operation is located, and the information about the movement of the paragraph of the planar motion trajectory is displayed on the display interface, so as to respond to the touch operation.
Drawings
FIG. 1 is a schematic flow chart of an alternative display method in an embodiment of the present invention;
FIG. 2 is a schematic illustration of an alternative straight-line trajectory in an embodiment of the present invention;
FIG. 3 is a flow chart illustrating an example of an alternative display method in an embodiment of the present invention;
fig. 4A is a schematic arrangement diagram of an electronic map generated by a conventional display method;
fig. 4B is a schematic layout diagram of an electronic map generated by an optional display method in the embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an alternative display device in an embodiment of the invention;
fig. 6 is a schematic structural diagram of an alternative terminal in the embodiment of the present invention.
Detailed Description
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
An embodiment of the present invention provides a display method, where the method is applied in a terminal, fig. 1 is a schematic flow diagram of an optional display method in an embodiment of the present invention, and as shown in fig. 1, the display method may include:
s101: when a movement track of the geographical position of the terminal is displayed on a display interface of the terminal, receiving touch operation on the display interface of the terminal;
at present, many applications on a terminal integrate functions of an electronic map, in the process of moving a terminal user, a Global Positioning System (GPS) chip of the terminal can acquire geographical position information of the terminal in real time, that is, longitude and latitude information of the terminal, and the applications on the terminal form a movement track of a geographical position on the electronic map according to the longitude and latitude information of the terminal acquired in real time.
However, in the movement track of the geographic position formed by the existing application, if the detailed information of a certain paragraph of the movement track is to be obtained, the electronic map needs to be continuously amplified to check the related information of the movement track, and thus, the existing checking method is complex in operation and low in efficiency.
In order to simplify the operation of viewing the motion information and improve the viewing efficiency, in the embodiment of the present invention, when a motion trajectory of a geographic position of the terminal is displayed on the display interface of the terminal, a touch operation on the display interface of the terminal is received, that is, when an interface of an application is displayed on the display interface of the terminal and an electronic map having a motion trajectory of the terminal is displayed on the interface of the application, the touch operation on the display interface of the terminal is received, where the touch operation may be a click operation, a long-press operation, a double-click operation, or the like, and this is not particularly limited in the embodiment of the present invention.
Here, the motion information of the motion trajectory can be viewed through a touch operation.
In order to implement displaying the movement track of the geographic location of the terminal on the display interface of the terminal, in an optional embodiment, before S101, the method may further include:
acquiring geographical position information of a terminal;
and forming a movement track of the geographical position of the terminal according to the geographical position information of the terminal, and displaying the movement track on a display interface.
Specifically, when a user of the terminal moves, a GPS chip in the terminal acquires geographical position information of the terminal in real time, so that when a certain application with an electronic map of the terminal works, a motion track of the terminal can be generated by using the geographical position information acquired in real time, the motion track is a motion track aiming at the geographical position in the electronic map, in order to check detailed information of the motion track, the map can be enlarged to check the motion track, and the checked motion track is drawn according to longitude and latitude information.
S102: converting the movement track of the geographic position to obtain a plane movement track on a display interface;
because the movement locus of the geographic position is formed on the terminal, and the detailed information of the movement locus can only be checked by magnifying the electronic map for the movement locus of the geographic position, in order to check the movement locus by a more simplified operation, the movement locus of the geographic position is firstly converted, and the movement locus represented by the latitude and longitude information is converted into the movement locus represented by a plane coordinate system, wherein the plane coordinate system is a coordinate system established based on a display screen of the terminal.
In this way, a planar motion trajectory is obtained by converting the motion trajectory of the geographic position, and the planar motion trajectory is a trajectory formed based on the data of the motion trajectory in the planar coordinate system of the display screen.
S103: when the touch position of the touch operation is on the plane motion track, determining a paragraph of the plane motion track where the touch position is;
in S103, a touch position of the touch operation is acquired, wherein in the motion trajectory of the geographic position, when the motion trajectory of the geographic position is touched, longitude and latitude information of the touch operation in the electronic map is acquired, and when the planar motion trajectory is touched, position coordinates of the touch position in a planar coordinate system of the touch operation on the display screen are acquired.
Here, it is determined whether the position coordinate of the touch position is on the plane motion trajectory, and when the touch position of the touch operation is on the plane motion trajectory, a paragraph of the plane motion trajectory where the touch position is located needs to be further determined.
In order to enable the user to view the motion information of the motion trajectory through the touch operation, in an alternative embodiment, before S103, the method may include:
segmenting the plane motion track to obtain a paragraph of the plane motion track;
and generating motion information of the paragraphs of the plane motion trail aiming at the paragraphs of the plane motion trail.
Specifically, after the planar motion trajectory is obtained, the planar motion trajectory is segmented to obtain a paragraph of the planar motion trajectory, and generally, the motion trajectory of the terminal user in a continuous time period may be divided into a paragraph, so that the paragraph of the planar motion trajectory may be obtained.
It should be noted that the planar motion trajectory may be divided into one or more segments for distinguishing the motion information of the end user in different time periods, for example, the end user may start from home to go to the company to generate a motion trajectory segment in 8:00-9:00 in the morning, go from the company to the restaurant to generate a motion trajectory segment in 12:00-12:30 in the noon, generate a motion trajectory segment from the restaurant company in 13:00-13:30 in the noon, and generate a motion trajectory segment from the company back to home in 18:00-17:00 in the afternoon, so that 4 segments of the planar motion trajectory may be formed.
After the paragraphs of the plane motion trajectories are obtained, motion information of the paragraphs of each plane motion trajectory can be generated according to the data of the plane motion trajectories and stored; wherein the motion information of the paragraph of the planar motion trajectory is one or more of: the length of the moving mileage of the paragraph of the plane moving track, the moving time of the paragraph of the plane moving track and the moving time of the paragraph of the plane moving track.
In this way, the motion information of the paragraphs of the planar motion trajectories and the paragraphs of each planar motion trajectory can be obtained, so that the paragraph of the planar trajectory where the touch position of the touch operation is located can be determined.
Further, in order to determine a paragraph of the planar motion trajectory in which the touch position of the touch operation is located, in an alternative embodiment, S103 may include:
segmenting the section of the plane motion trail, and determining the segmented section of the plane motion trail as an area of the plane motion trail;
when the touch position of the touch operation is on the plane motion track, determining the area of the plane motion track where the touch position falls;
and determining the paragraph of the plane motion track in which the area of the plane motion track in which the touch position falls as the paragraph of the plane motion track in which the touch position lies.
Specifically, for each segment of the planar motion trajectory, segmentation is continued, and the segmented segment of the planar motion trajectory is determined as a region of the planar motion trajectory, so that a set of regions of the planar motion trajectory corresponding to each segment of the planar motion trajectory is referred to as a region of the planar motion trajectory.
After the area of the planar motion track is determined, when the touch position of the touch operation is determined to be on the planar motion track, the area of the planar motion track where the touch position falls needs to be determined, then a paragraph of the planar motion track where the area of the planar motion track where the touch position falls is found out from paragraphs of the planar motion track, and the found paragraph of the planar motion track is determined as the paragraph of the planar motion track where the touch position lies.
Further, in order to determine the area of the planar motion trail, in an alternative embodiment, segmenting the segment of the planar motion trail, and determining the segmented segment of the planar motion trail as the area of the planar motion trail, includes:
for each section of linear track in the section of the plane motion track, intercepting each section of linear track according to a preset length along a line width vertical to each section of linear track to form a quadrangle;
and determining a quadrangle formed by each section of straight line track in the section of the plane motion track as the area of the plane motion track.
It can be understood that, in the electronic map, for each planar motion trajectory, one straight line trajectory or one broken line trajectory may be included, and one broken line trajectory may include multiple straight line trajectories, then, for each straight line trajectory in the section of the planar motion trajectory, since each straight line trajectory has a fixed line width, each straight line trajectory may be cut according to a preset length along a line width perpendicular to each straight line trajectory, and of course, each straight line trajectory may also be cut in an equally dividing manner, where this is not specifically limited in the embodiment of the present invention.
A quadrangle can be formed by intercepting every time, so that a plurality of quadrangles can be obtained by intercepting each section of linear track, and the quadrangles obtained by intercepting the sections of each plane motion track are determined as the area of the plane motion track.
Fig. 2 is a schematic diagram of an alternative linear track in an embodiment of the present invention, as shown in fig. 2, the planar motion track is based on data of a planar rectangular coordinate system on a display screen, an oblique rectangle in fig. 2 is a linear track in a paragraph of the planar motion track, a starting end of the linear track is AC, and AC is a line width of the linear track, the linear track is taken along a direction perpendicular to AC, for example, the linear track is taken at a point B at a certain length from the point a, coordinates of the point a are known to be (x1, y1), coordinates of the point B are known to be (x2, y2), and then a length L of the point AB is:
Figure BDA0002391680240000101
since AC is the line width w of the segment of the linear track, the sine and cosine of the angle between the linear track and the X-axis of the rectangular plane coordinate system can be calculated as follows:
Figure BDA0002391680240000102
Figure BDA0002391680240000103
thus, from the coordinates of point a, the sine and cosine can be calculated to obtain the coordinates of point C as follows:
x3=x1-w·sinθ (3)
y3=y1+w·cosθ (4)
from the coordinates of point B, the sine and cosine can be calculated to obtain the coordinates of point D as follows:
x4=x2-w·sinθ (5)
y4=y2+w·cosθ (6)
therefore, the coordinates of the point A, the point B, the point C and the point D can be connected through a Bezier curve to form a quadrangle, so that the quadrangle is obtained through interception, and the range of the quadrangle area is determined.
S104: and acquiring the motion information of the paragraph of the plane motion track where the touch position is located, and displaying the motion information on a display interface.
After the paragraph of the planar motion track where the touch position is located is determined, the motion information of the paragraph of the planar motion track where the touch position is located can be found from the prestored motion information, and the motion information is displayed on the display interface.
In practical applications, the display interface may display in the form of bubbles or in the form of pictures, and this is not particularly limited in the embodiment of the present invention.
In addition, besides displaying the motion information on the display interface, the motion information can be converted into audio data, and the audio data can be broadcasted through a loudspeaker of the terminal.
Therefore, the motion information is displayed or broadcasted on the terminal, so that a user of the terminal can acquire detailed motion information of the motion track through simple touch operation, and the operation of the user is facilitated.
In addition, in this case that the touch position is not on the planar motion trajectory, it needs to determine the touch operation to determine whether the touch operation is an operation of acquiring motion information of the motion trajectory, and in an optional embodiment, the method may further include:
when the touch position is not on the plane motion track, determining the shortest distance between the touch position and the plane motion track;
when the shortest distance is smaller than a preset threshold value, displaying the motion information of the paragraph of the plane motion track where the area of the plane motion track corresponding to the shortest distance is located on a display interface;
when the shortest distance is greater than or equal to a preset threshold value, generating prompt information; the prompt information is used for prompting that the touch operation is invalid.
Specifically, in the case that the touch position is not on the planar motion trajectory, in practical applications, the touch position of the touch operation made by the user may not be accurate enough, and the touch operation may also be an erroneous operation of the user, and at this time, the terminal needs to further determine the touch position.
Then, when the touch position is not on the motion trajectory, first finding out a point where the touch position is closest to the planar motion trajectory, for fig. 2, if the point E is a touch position coordinate of the touch operation, the coordinate is (x5, y5), a perpendicular line of an AB straight line is drawn through the point E, and the intersection point is a point F, then EF is the shortest distance between the touch position and the planar motion trajectory, determining a relationship between the shortest distance and a preset threshold, and if the shortest distance is smaller than the preset threshold, regarding that a touch object of the user of the terminal is the motion trajectory, so that an area of the planar motion trajectory corresponding to the shortest distance EF is determined first, that is, a quadrangle composed of ABCDs in fig. 2, then a paragraph of the planar motion trajectory where the area of the planar motion trajectory corresponding to the shortest distance EF is determined, and obtaining motion information of the paragraph, and finally displaying the motion information.
If the shortest distance is larger than or equal to the preset threshold, the touch operation is considered as the misoperation of the user, and the touch operation needs to be ignored, so that prompt information is generated to prompt the terminal that the touch operation is the invalid operation, and the touch operation does not need to be responded.
The display method according to one or more embodiments described above is described below by way of example.
Fig. 3 is a schematic flowchart of an example of an optional display method in an embodiment of the present invention, and as shown in fig. 3, the display method may include:
s301: the terminal judges whether to start an outwork track function and whether to start GPS positioning; if yes, executing S302, otherwise, ending.
This example is based on the example of a pocket processing application, where a pocket assistant has an outing track function that can obtain real-time latitude and longitude information of the end user through GPS positioning that is turned on.
Here, when the terminal uses the pocket assistant, it is first determined whether to turn on the outwork track function and the GPS positioning function, if the pocket assistant turns on the outwork track function and the terminal turns on the GPS positioning function, S302 is executed, otherwise, the display method cannot be executed, and the process is directly ended.
S302: a terminal acquires a GPS position;
s303: the terminal acquires the moving track of the user from the server;
s304: the terminal connects the data into a broken line on a map;
the pocket help is provided with an independent 'outwork track module' for storing the action path of a terminal user within a certain period of time, namely acquiring the GPS positioning position of the user within a certain period of time as the display data of the user; the user displays the data in a certain period of time on the electronic map of the pocket assistant by using a broken line. Connecting the folding lines end to form a continuous line; and segmenting each segment of straight line to obtain a plurality of quadrangles, wherein the forming method of the quadrangles is as shown in the above figure 2, and the description is omitted here.
S305: the terminal acquires the longitude and latitude of a map clicked by a user;
when a broken line is displayed on a display interface of the terminal and the broken line is divided into a plurality of quadrangles, the terminal can acquire longitude and latitude information corresponding to the click operation on an electronic map after acquiring the click operation of a user, wherein the longitude and latitude of the click operation needs to be converted into coordinates of a plane coordinate system of a display screen.
S306: the terminal judges whether the click position of the click operation is within the quadrilateral range formed by the broken lines; if so, go to S307; if not, the process is ended.
Specifically, the terminal determines that the position coordinates of the click operation are all within the quadrilateral range, if so, S307 is executed, otherwise, the terminal directly ends considering the misoperation of the user.
S307: and the terminal displays the information of the clicked broken line on the coordinate of the clicking operation.
And when the position coordinate of the clicking operation is determined to be in the quadrilateral range, displaying the motion information of the broken line (equivalent to the section of the plane motion trail) corresponding to the quadrilateral.
Fig. 4A is a schematic layout diagram of an electronic map generated by using a conventional display method, and fig. 4B is a schematic layout diagram of an electronic map generated by using an alternative display method in an embodiment of the present invention, as shown in fig. 4A and 4B, it can be seen that, after a user issues a click operation, an inverted triangle in fig. 4A represents a position of the click operation, and motion information of a clicked polyline is not displayed by using a conventional display method, however, in fig. 4B, after the polyline in the electronic map is clicked, the mileage length of the polyline is displayed in the form of a bubble, and when the user uses the motion information, such as a start time and an end time.
By the embodiment, the longitude and latitude of the broken line clicked by the user can be obtained, and the broken line clicked by the user can be known, so that the motion information of the relevant motion track is displayed for the user.
The display method provided by the embodiment of the invention is applied to a terminal and comprises the following steps: when the movement track of the geographical position of the terminal is displayed on the display interface of the terminal, receiving touch operation on the display interface of the terminal, converting the movement track of the geographical position to obtain a plane movement track on the display interface, determining a paragraph of the plane movement track where the touch position is located when the touch position of the touch operation is on the plane movement track, obtaining movement information of the paragraph of the plane movement track where the touch position is located, and displaying the movement information on the display interface; that is to say, in the embodiment of the present invention, when the display interface displays the motion trajectory of the geographic location, the motion trajectory of the geographic location is converted into the planar motion trajectory, and when a touch operation is received, the touch location on the display interface of the touch operation is used to determine the paragraph of the planar motion trajectory where the touch operation is located, and the information about the movement of the paragraph of the planar motion trajectory is displayed on the display interface, so as to respond to the touch operation.
Based on the same inventive concept, the present embodiment provides a display apparatus, and fig. 5 is a schematic structural diagram of an alternative display apparatus in the embodiment of the present invention, as shown in fig. 5, the display apparatus includes: a receiving module 51, a converting module 52, a determining module 53 and a displaying module 54;
the receiving module 51 is configured to receive a touch operation on a display interface of the terminal when a movement track of a geographic position of the terminal is displayed on the display interface of the terminal;
the conversion module 52 is configured to convert the motion trajectory of the geographic location to obtain a planar motion trajectory on the display interface;
the determining module 53 is configured to determine, when the touch position of the touch operation is on the plane motion trajectory, a paragraph of the plane motion trajectory where the touch position is located;
and the display module 54 is configured to obtain motion information of a paragraph of the planar motion trajectory where the touch position is located, and display the motion information on the display interface.
In an alternative embodiment, the display device is further configured to:
when a movement track of the geographical position of the terminal is displayed on a display interface of the terminal, acquiring geographical position information of the terminal before touch operation on the display interface of the terminal is received;
and forming a movement track of the geographical position of the terminal according to the geographical position information of the terminal, and displaying the movement track on a display interface.
In an alternative embodiment, the display device is further configured to:
when the touch position of the touch operation is on the plane motion track, before the section of the plane motion track where the touch position is located is determined, the plane motion track is segmented to obtain the section of the plane motion track;
and generating motion information of the paragraphs of the plane motion trail aiming at the paragraphs of the plane motion trail.
In an alternative embodiment, the determining module 53 is specifically configured to:
segmenting the section of the plane motion trail, and determining the segmented section of the plane motion trail as an area of the plane motion trail;
when the touch position of the touch operation is on the plane motion track, determining the area of the plane motion track where the touch position falls;
and determining the paragraph of the plane motion track in which the area of the plane motion track in which the touch position falls as the paragraph of the plane motion track in which the touch position lies.
In an alternative embodiment, the determining module 53 segments the section of the planar motion trajectory, and determines the segmented section of the planar motion trajectory as the area of the planar motion trajectory, including:
for each section of linear track in the section of the plane motion track, intercepting each section of linear track according to a preset length along a line width vertical to each section of linear track to form a quadrangle;
and determining a quadrangle formed by each section of straight line track in the section of the plane motion track as the area of the plane motion track.
In an alternative embodiment, the display device is further configured to:
when the touch position is not on the plane motion track, determining the shortest distance between the touch position and the plane motion track;
when the shortest distance is smaller than a preset threshold value, displaying the motion information of the paragraph of the plane motion track where the area of the plane motion track corresponding to the shortest distance is located on a display interface;
when the shortest distance is greater than or equal to a preset threshold value, generating prompt information; the prompt information is used for prompting that the touch operation is invalid.
In an alternative embodiment, the motion information of the segments of the planar motion trajectory is one or more of:
the length of the moving mileage of the paragraph of the plane moving track, the moving time of the paragraph of the plane moving track and the moving time of the paragraph of the plane moving track.
In practical applications, the receiving module 51, the converting module 52, the determining module 53 and the displaying module 54 may be implemented by a processor located on a terminal, specifically, a Central Processing Unit (CPU), a Microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 6 is a schematic structural diagram of an optional terminal in an embodiment of the present invention, and as shown in fig. 6, an embodiment of the present application provides a terminal 600, including:
a processor 61 and a storage medium 62 storing instructions executable by the processor 61, the storage medium 62 performing operations via a communication bus 63 in dependence of the processor 61, the instructions when executed by the processor 61 performing the display method according to the above embodiment.
It should be noted that, in practical applications, the various components in the terminal are coupled together by a communication bus 63. It will be appreciated that the communication bus 63 is used to enable communications among the components. The communication bus 63 includes a power bus, a control bus, and a status signal bus, in addition to a data bus. But for clarity of illustration the various buses are labeled in figure 6 as communication bus 63.
The embodiment of the application provides a computer storage medium, which stores executable instructions, and when the executable instructions are executed by one or more processors, the processors execute the display method of the embodiment.
The computer-readable storage medium may be a magnetic random access Memory (FRAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM), among others.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (10)

1. A display method is applied to a terminal and comprises the following steps:
when a movement track of the geographical position of the terminal is displayed on a display interface of the terminal, receiving touch operation on the display interface of the terminal;
converting the movement track of the geographic position to obtain a plane movement track on the display interface;
when the touch position of the touch operation is on the plane motion track, determining a paragraph of the plane motion track where the touch position is;
and acquiring motion information of a paragraph of the plane motion track where the touch position is located, and displaying the motion information on the display interface.
2. The method according to claim 1, wherein before receiving a touch operation on the display interface of the terminal when the movement track of the geographical position of the terminal is displayed on the display interface of the terminal, the method comprises:
acquiring the geographical position information of the terminal;
and forming a movement track of the geographical position of the terminal according to the geographical position information of the terminal, and displaying the movement track on the display interface.
3. The method according to claim 1, wherein before determining the section of the planar motion trajectory in which the touch position is located when the touch position of the touch operation is on the planar motion trajectory, the method further comprises:
segmenting the plane motion track to obtain a paragraph of the plane motion track;
and generating motion information of the paragraph of the plane motion trail aiming at the paragraph of the plane motion trail.
4. The method according to claim 1, wherein when the touch position of the touch operation is on the planar motion trajectory, determining a section of the planar motion trajectory where the touch position is located comprises:
segmenting the paragraph of the plane motion track, and determining the segmented paragraph of the plane motion track as the area of the plane motion track;
when the touch position of the touch operation is on the plane motion track, determining the area of the plane motion track where the touch position falls;
and determining the paragraph of the plane motion track in which the area of the plane motion track in which the touch position falls as the paragraph of the plane motion track in which the touch position falls.
5. The method according to claim 4, wherein the segmenting the paragraph of the planar motion trajectory, and determining the paragraph of the segmented planar motion trajectory as the region of the planar motion trajectory comprises:
for each section of linear track in the section of the plane motion track, intercepting each section of linear track according to a preset length along a line width perpendicular to each section of linear track to form a quadrangle;
and determining a quadrangle formed by each section of straight line track in the section of the plane motion track as the area of the plane motion track.
6. The method of claim 5, further comprising:
when the touch position is not on the plane motion track, determining the shortest distance between the touch position and the plane motion track;
when the shortest distance is smaller than a preset threshold value, displaying the motion information of the paragraph of the plane motion track where the area of the plane motion track corresponding to the shortest distance is located on the display interface;
when the shortest distance is larger than or equal to a preset threshold value, generating prompt information; and the prompt information is used for prompting that the touch operation is invalid operation.
7. The method of claim 1, wherein the motion information of the segments of the planar motion trajectory is one or more of:
the length of the moving mileage of the paragraph of the plane moving track, the moving time of the paragraph of the plane moving track, and the moving duration of the paragraph of the plane moving track.
8. A display device provided in a terminal, the display device comprising:
the terminal comprises a receiving module, a processing module and a display module, wherein the receiving module is used for receiving touch operation on a display interface of the terminal when a movement track of the geographical position of the terminal is displayed on the display interface of the terminal;
the conversion module is used for converting the movement track of the geographic position to obtain a plane movement track on the display interface;
the determining module is used for determining a paragraph of the plane motion track where the touch position is located when the touch position of the touch operation is on the plane motion track;
and the display module is used for acquiring the motion information of the paragraph of the plane motion track where the touch position is located and displaying the motion information on the display interface.
9. A terminal, characterized in that the terminal comprises:
a processor and a storage medium storing instructions executable by the processor to perform operations dependent on the processor via a communication bus, the instructions when executed by the processor performing the display method of any of claims 1 to 7.
10. A computer storage medium having stored thereon executable instructions that, when executed by one or more processors, perform the display method of any one of claims 1 to 7.
CN202010116577.4A 2020-02-25 2020-02-25 Display method, device, terminal and computer storage medium Pending CN111368218A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010116577.4A CN111368218A (en) 2020-02-25 2020-02-25 Display method, device, terminal and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010116577.4A CN111368218A (en) 2020-02-25 2020-02-25 Display method, device, terminal and computer storage medium

Publications (1)

Publication Number Publication Date
CN111368218A true CN111368218A (en) 2020-07-03

Family

ID=71208301

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010116577.4A Pending CN111368218A (en) 2020-02-25 2020-02-25 Display method, device, terminal and computer storage medium

Country Status (1)

Country Link
CN (1) CN111368218A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102121831A (en) * 2010-12-01 2011-07-13 北京腾瑞万里科技有限公司 Real-time street view navigation method and device
US20110301832A1 (en) * 2010-06-04 2011-12-08 Microsoft Corporation Searching Similar Trajectories by Locations
US20120158290A1 (en) * 2010-12-17 2012-06-21 Microsoft Corporation Navigation User Interface
CN103984763A (en) * 2014-05-30 2014-08-13 厦门云朵网络科技有限公司 Trajectory chart display device, trajectory chart display device method and monitor terminal
CN104515529A (en) * 2013-09-27 2015-04-15 高德软件有限公司 Real-scenery navigation method and navigation equipment
CN104808932A (en) * 2014-01-23 2015-07-29 腾讯科技(深圳)有限公司 Route information obtaining method and terminal
US20160375340A1 (en) * 2015-06-26 2016-12-29 Lawrence Maxwell Monari Sports Entertainment System for Sports Spectators
US20170221368A1 (en) * 2014-10-22 2017-08-03 SZ DJI Technology Co., Ltd. Method and device for setting a flight route
CN107590268A (en) * 2017-09-25 2018-01-16 咪咕互动娱乐有限公司 A kind of moving line recommends method, apparatus and computer-readable recording medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110301832A1 (en) * 2010-06-04 2011-12-08 Microsoft Corporation Searching Similar Trajectories by Locations
CN102121831A (en) * 2010-12-01 2011-07-13 北京腾瑞万里科技有限公司 Real-time street view navigation method and device
US20120158290A1 (en) * 2010-12-17 2012-06-21 Microsoft Corporation Navigation User Interface
CN104515529A (en) * 2013-09-27 2015-04-15 高德软件有限公司 Real-scenery navigation method and navigation equipment
CN104808932A (en) * 2014-01-23 2015-07-29 腾讯科技(深圳)有限公司 Route information obtaining method and terminal
CN103984763A (en) * 2014-05-30 2014-08-13 厦门云朵网络科技有限公司 Trajectory chart display device, trajectory chart display device method and monitor terminal
US20170221368A1 (en) * 2014-10-22 2017-08-03 SZ DJI Technology Co., Ltd. Method and device for setting a flight route
US20160375340A1 (en) * 2015-06-26 2016-12-29 Lawrence Maxwell Monari Sports Entertainment System for Sports Spectators
CN107590268A (en) * 2017-09-25 2018-01-16 咪咕互动娱乐有限公司 A kind of moving line recommends method, apparatus and computer-readable recording medium

Similar Documents

Publication Publication Date Title
CN110375755B (en) Solution for highly customized interactive mobile map
EP3922952A1 (en) Method and apparatus for processing map data, device, and storage medium
US9816826B2 (en) Technique for correcting digitized map data
US8988426B2 (en) Methods and apparatus for rendering labels based on occlusion testing for label visibility
KR20170046675A (en) Providing in-navigation search results that reduce route disruption
US9182233B2 (en) System and method for autocompletion and alignment of user gestures
CN105509743A (en) A positioning processing method, a business platform and a network system
CN107430632B (en) Dynamically controlling a map viewport in accordance with user signals
CN109658733B (en) Parking area acquisition method, server and vehicle system
CN103268730A (en) Method and device for displaying associated dimension points on electric map interface
WO2022111235A1 (en) Navigation processing method and apparatus, service side device, intelligent terminal, and storage medium
JP5561915B2 (en) Map drawing apparatus and program
CN107883974B (en) Navigation path planning method, navigation server and computer readable medium
KR20120051636A (en) Presentation of a digital map
JP2014519606A (en) Navigation system with assistance for turning multiple turns at short distances
CN112857371A (en) Navigation two-dimensional code generation method, park navigation method and park navigation device
CN105426443A (en) Map data processing method, device and system
CN105554702A (en) Cross network positioning system and method, positioning server and mobile terminal
CN102829793A (en) Navigation device and control method thereof
CN105352493A (en) Navigation route generation method and user terminal
US9582915B2 (en) Method, apparatus and computer program product for improved visualization of geo-located features
CN104660684A (en) Method and device for updating road net data information
KR20190120122A (en) Method and system for navigation using video call
KR102525605B1 (en) Method and system for generating a schematic map
US20200116519A1 (en) Navigation method and apparatus, device and computer readable storage medium

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