A kind of map-indication method, device, terminal and storage medium
Technical field
The present embodiments relate to data processing technique more particularly to a kind of map-indication method, device, terminal and storages
Medium.
Background technique
Navigation is play an important role in people's trip, and in existing navigation mode, display is from A place to B on map
The path planning in place is shown according to the length of distance, and the route that the section of distance is shown also is grown, and is used when route is too long
When family needs to check path, need just to will appreciate that path by the way of zooming in or out, amplification factor is excessively high for global
Overview effect is poor, and minification is excessively high and will affect partial result, and display effect is poor, and cumbersome, influences user experience.
Summary of the invention
The embodiment of the present invention provides a kind of map-indication method, device, terminal and storage medium, solves existing map and adopts
With the operation zoomed in or out, amplification factor is excessively high poor for global overview effect, and minification is excessively high and will affect part
The problem of effect, display effect is poor, and cumbersome, influences user experience.
In a first aspect, the embodiment of the invention provides a kind of map-indication methods, this method comprises:
According to address and the destination address of setting out, travel path is planned;
According to the travel path, the travel path is divided into route segment according to turn place;
According to the range information of the route segment, the display of the route segment is controlled.
Further, the range information according to the route segment, controls the display of the route segment, comprising:
According to the distance of route segment, the thickness and/or length of the display route of the route segment are controlled.
Further, the distance according to route segment controls the thickness and/or length of the display route of the route segment
It is short, comprising:
The distance of to acquisite approachs section determines the thickness of route segment in the corresponding lists of pre-determined distance and route thickness length
And length.
Further, this method further include:
According to turn place, the display enlargement ratio in turn place is determined.
Further, described according to turn place, determine the display enlargement ratio in turn place, comprising:
According to turn place, determine that the display image in the preset range of turn place is aobvious according to default display enlargement ratio
Show.
Second aspect, the embodiment of the invention also provides a kind of map display, which includes:
Path planning module, for planning travel path according to set out address and destination address;
Route segment division module is used for according to the travel path, by the travel path according to turn place division road
Diameter section;
Display control module controls the display of the route segment for the range information according to the route segment.
Further, the display control module, is specifically used for:
According to the distance of route segment, the thickness and/or length of the display route of the route segment are controlled.
Further, described device further include:
Magnifying power determining module is shown, for determining the display enlargement ratio in turn place according to turn place.
The third aspect, the embodiment of the invention also provides a kind of terminal, which includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realize any embodiment of that present invention provide it is any as described in map-indication method.
Fourth aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer
Program, when which is executed by processor realize any embodiment of that present invention provide it is any as described in map-indication method.
The embodiment of the present invention plans travel path according to address and the destination address of setting out;According to travel path, by road of advancing
Diameter divides route segment according to turn place, and according to the range information of route segment, the display of control path section, the distance of route segment is not
Together, the display of route segment is different, and the mode for avoiding the longer display of actual range longer can not be shown comprehensively in same picture, uses
The case where family must just will appreciate that entire road conditions using the operation zoomed in or out guarantees that path is shown in same picture, mentions
The global preview effect of high user simplifies operation, improves user experience.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing does one and simply introduces, it should be apparent that, drawings in the following description are some embodiments of the invention, for this
For the those of ordinary skill of field, without creative efforts, it can also be obtained according to these attached drawings others
Attached drawing.
Fig. 1 is a kind of flow diagram for map-indication method that the embodiment of the present invention one provides;
Fig. 2 is that the embodiment of the present invention one provides existing map-indication method presentation picture drawing;
Fig. 3 is that the embodiment of the present invention one provides map-indication method of embodiment of the present invention presentation picture drawing;
Fig. 4 is a kind of structural schematic diagram of map display provided by Embodiment 2 of the present invention;
Fig. 5 is a kind of structural schematic diagram for terminal that the embodiment of the present invention three provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, hereinafter with reference to attached in the embodiment of the present invention
Figure, clearly and completely describes technical solution of the present invention by embodiment, it is clear that described embodiment is the present invention one
Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 is a kind of flow chart for map-indication method that the embodiment of the present invention one provides.The technical solution of the present embodiment
The case where can be adapted for the map denotation in navigation.This method can be by a kind of map denotation dress provided in an embodiment of the present invention
Set to execute, which can be realized by the way of software and/or hardware, and be configured at intelligent terminal, as mobile phone, computer,
It is applied in tablet computer or smartwatch.This method specifically includes following operation:
S110, according to setting out address and destination address, plan travel path.
User inputs set out address and destination address in an intelligent terminal, and address of setting out is also possible to fixed according to intelligent terminal
The current location of position.Intelligent terminal plans travel path, can specifically use navigation algorithm according to address and the destination address of setting out
It is planned, is also possible to will to set out address and destination address uploads to navigation server, it is true according to navigation algorithm by server
Determine travel path.
S120, according to the travel path, the travel path is divided into route segment according to turn place.
Travel path is divided according to the turn place in travel path, obtains at least one route segment, i.e. path
Duan Junwei straight trip route segment.Turn place is determined according to the bending angle of route, when bending angle is greater than predetermined angle threshold
When value, determine herein be turn place.Dividing route segment can also be divided according to the road name in path, by the road for name of not going the same way
Diameter is divided into different route segments.
S130, according to the range information of the route segment, control the display of the route segment.
According to the path distance length in different paths, the different displays of route segment are determined, it is specifically, described according to the road
The range information of diameter section controls the display of the route segment, comprising: according to the distance of route segment, controls the aobvious of the route segment
Show the thickness and/or length of route.
According to the distance of route segment, the thickness of the display route of control path section, such as can be apart from longer, display road
Line is thicker, the display distance of different route segments can be it is identical, only the length of distance is characterized with thickness, it is possible thereby to avoid
Show that the path of different distance will appear the length of the path display route of distance in the display interface only with length
Can be very long, cause display interface can not show any more complete path, user must could grasp entirety using the operation of zoom
The case where path.Path is indicated using thickness, can will be shown as the Bu Tong thick of same length with short-range path over long distances
The line segment of line is shown on same display interface convenient for whole path planning scheme, is grasped whole path planning convenient for user, is done
To knowing what's what, user experience is improved, reduces the number for zooming in or out operation, simplifies operation.
According to the distance of route segment, the thickness and length of the display route of control path section be can be according to route segment
Distance length, the thickness and length of the display route of control path section, specifically can be, in pre-determined distance and route thickness length
Corresponding lists in determine route segment thickness and length.Road is stored in the corresponding lists of pre-determined distance and route thickness length
The fineness of diameter actual range and display route and show route length corresponding relationship, passage path section it is practical away from
From lookup the presets list determines the length and thickness of display route.When the presets list is arranged, the principle that can be used is road
The actual range of diameter section is longer, shows that the length of route is shorter, fineness is thicker;The actual range of route segment is shorter, display
The length of route is longer, and fineness is thinner.It is possible thereby to which the problem under avoiding the path of distance from showing in interface not, mentions
The receiving degree of height display picture.Fig. 2 is that picture drawing is presented in existing map-indication method, and Fig. 3 is using the embodiment of the present invention
The schematic diagram of map-indication method presentation picture.Actual path section from A to B apart from longest, B is with arriving in place C
The distance of the Actual path section of point is placed in the middle, and the distance of the Actual path section in the place C to the place D is most short, therefore, using of the invention real
It is as shown in Figure 3 to apply the more thicker shorter display for the longer route segment of actual range being shown in example, it can be seen that picture is shown in Fig. 3
Interfacial area shared by face is significantly less than Fig. 2, convenient for showing more multipath in the same display interface, improves display receiving degree,
It avoids user that from could always grasping the cumbersome property in whole path by the way of amplification, diminution or movement in Fig. 2, simplifies
Operating process improves user experience.
According to the distance of route segment, the display path length of control path section specifically be can be using different length not
Synteny indicates the different distance of route segment, and shows that the compressed value of the length of route and the actual range of route segment is greater than now
Row compressed value shows that display length of the route in interface is according to existing compressed value if the actual range of route segment is 500 meters
10 centimetres, the compressed value used in embodiments of the present invention shows that display length of the route in interface is 5 centimetres, and adopts
Long range path is indicated with waveform curve, short distance path is indicated using straight line, and display route is thus subjected to compresses in length,
It realizes and zooms in or out operation without user on same interface, whole path can be grasped, enrich display content.
In another embodiment of the present invention, this method further include:
According to turn place, the display enlargement ratio in turn place is determined.Further, described according to turn place, really
Determine the display enlargement ratio in turn place, comprising: according to turn place, determine that the display image in the preset range of turn place is pressed
It is shown according to default display enlargement ratio.
Illustratively, it is higher than the display multiplying power in other places in map to preset display enlargement ratio, is mentioned in turn place
Height display enlargement ratio, facilitates user to grasp the road conditions details at path change, makes the judgement correctly advanced in time, guarantee row
Into correctness, improve out line efficiency.
The embodiment of the present invention plans travel path according to address and the destination address of setting out;According to travel path, by road of advancing
Diameter divides route segment according to turn place, and according to the range information of route segment, the display of control path section, the distance of route segment is not
Together, the display of route segment is different, and the mode for avoiding the longer display of actual range longer can not be shown comprehensively in same picture, uses
The case where family must just will appreciate that entire road conditions using the operation zoomed in or out guarantees that path is shown in same picture, mentions
The global preview effect of high user simplifies operation, improves user experience.
Embodiment two
Fig. 4 is a kind of structural block diagram of map display provided by Embodiment 2 of the present invention.The device is for executing
State a kind of map-indication method provided by any embodiment.The device includes:
Path planning module 210, for planning travel path according to set out address and destination address;
Route segment division module 220, for according to the travel path, the travel path to be divided according to turn place
Route segment;
Display control module 230 controls the display of the route segment for the range information according to the route segment.
The embodiment of the present invention plans travel path according to address and the destination address of setting out;According to travel path, by road of advancing
Diameter divides route segment according to turn place, and according to the range information of route segment, the display of control path section, the distance of route segment is not
Together, the display of route segment is different, and the mode for avoiding the longer display of actual range longer can not be shown comprehensively in same picture, uses
The case where family must just will appreciate that entire road conditions using the operation zoomed in or out guarantees that path is shown in same picture, mentions
The global preview effect of high user simplifies operation, improves user experience.
Further, the display control module, is specifically used for:
According to the distance of route segment, the thickness and/or length of the display route of the route segment are controlled.
Further, the display control module, is specifically also used to:
The distance of to acquisite approachs section determines the thickness of route segment in the corresponding lists of pre-determined distance and route thickness length
And length.
Further, described device further include:
Magnifying power determining module is shown, for determining the display enlargement ratio in turn place according to turn place.
Further, the display magnifying power determining module, is specifically used for:
According to turn place, determine that the display image in the preset range of turn place is aobvious according to default display enlargement ratio
Show.
Map display provided by Embodiment 2 of the present invention guarantees that path is shown in same picture, improves user's
Global preview effect simplifies operation, improves user experience.
Map denotation provided by any embodiment of the invention can be performed in the provided map display of the embodiment of the present invention
Method has the corresponding functional module of execution method and beneficial effect.
Embodiment three
Fig. 5 is a kind of structural schematic diagram for terminal that the embodiment of the present invention three provides, as shown in figure 5, the terminal includes place
Manage device 30, memory 31, input unit 32 and output device 33;The quantity of processor 30 can be one or more in terminal,
In Fig. 5 by taking a processor 30 as an example;Processor 30, memory 31, input unit 32 and output device 33 in terminal can be with
It is connected by bus or other modes, in Fig. 5 for being connected by bus.
Memory 31 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer
Sequence and module, if the corresponding program instruction/module of the light adjusting method in the embodiment of the present invention is (for example, path planning mould
Block 210, route segment division module 220 and display control module 230).Processor 30 is stored in memory 31 by operation
Software program, instruction and module realize above-mentioned map thereby executing the various function application and data processing of equipment
Display methods.
Memory 31 mainly include storing program area and storage data area, wherein storing program area can storage program area,
Application program needed at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.In addition,
Memory 31 may include high-speed random access memory, can also include nonvolatile memory, for example, at least a disk
Memory device, flush memory device or other non-volatile solid state memory parts.In some instances, memory 31 can be wrapped further
The memory remotely located relative to processor 30 is included, these remote memories can pass through network connection to equipment.Above-mentioned net
The example of network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 32 can be used for receiving the number or character information of input, and generate with the user setting of equipment and
The related key signals input of function control.Output device 33 may include that display screen etc. shows equipment.
Example IV
The embodiment of the present invention four also provides a kind of storage medium comprising computer executable instructions, and the computer can be held
Row instruction is used to execute a kind of map-indication method when being executed by computer processor, this method comprises:
According to address and the destination address of setting out, travel path is planned;
According to the travel path, the travel path is divided into route segment according to turn place;
According to the range information of the route segment, the display of the route segment is controlled.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention
The method operation that executable instruction is not limited to the described above, can also be performed map denotation provided by any embodiment of the invention
Relevant operation in method.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which can store in computer readable storage medium
In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are with so that a computer is set
Standby (can be personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.