Display methods and device, the navigation system of interest point name
Technical field
The present invention relates to the Display Processing Technology of map, the display methods and device of especially a kind of interest point name, lead
Boat system.
Background technology
Automobile has had the history of more than 120 years as the daily vehicles of people, during this period with science and technology
Development, automobile also experienced change with rapid changepl. never-ending changes and improvements.Along with continuing to develop for automotive engineering vapour is used as with progress, onboard system
The auxiliary product of car, gradually comes into the life of people, wherein, vehicular map is that user vehicle is finding road in onboard navigation system
Provide and greatly facilitate on road and destination.
Map is drawn by map datum and formed, and map datum is stored in map data base, in map making, from
It is shown in after corresponding map datum, drafting are loaded in map data base in screen.Map datum is generally very big, comprising content
Also a lot, a regional map datum generally includes zone data, road data and point of interest (POI) data etc..
Substantial amounts of point of interest is generally included in map, for example, restaurant, hotel, market, school, gas station etc..Point of interest exists
Typically show that interest point name is stored in map datum in a text form with icon and title in map.Interest point data
Generally include icon, display location data (coordinate data), the interest point name of icon of expression point of interest, the display position of title
Put data (coordinate data) etc..Current map is when drawing display, it is necessary to which the map datum needed for drawing this map is preserved
Reading map datum is drawn into caching, then from caching, is then shown on screen.
With the quick increase of point of interest quantity all the time so that the display of interest point name is that one faced asks
Topic, if in all displays, the map picture of most detailed engineer's scale, the region that some points of interest are concentrated will be all by point of interest
Title is covered, and causes very bad visual effect;Some interest point names are long, cause the display space occupied oversize, even
The problems such as intersecting with road name.These problems can cause great inconvenience to user on searching road and destination on the contrary,
User's offer can not be thus given effectively to point out.
Publication No. CN 101647048A Chinese patent application, discloses a kind of map display system, and it is along display
The road on map that picture is shown dynamically shows the navigational associations information such as road name, guiding, it is easy to recognize display picture
Road and its road name, the direct of travel shown on face.But be not directed to for above mentioned problem.
The content of the invention
The problem of technical solution of the present invention is solved is easily overwritten in interest point name display set in existing map,
So as to which effective prompting can not be provided the user.
In order to solve the above technical problems, technical scheme provides a kind of display methods of interest point name, including:
First interest point name and/or are determined according to the current display position of the first interest point name and the second interest point name
The display location of two interest point names, wherein, the second point of interest is at least one point of interest around the first point of interest in map.
Optionally, the current display position according to the first interest point name and the second interest point name determines described
The display location of one interest point name and/or the second interest point name includes:When the current display of first interest point name
Position is overlapping with the current display position of second interest point name, then adjusts the display position of first interest point name
Put.
Optionally, the current display position according to the first interest point name and the second interest point name determines described
The display location of one interest point name and/or the second interest point name also includes:When the display position of first interest point name
It is overlapping with the current display position of second interest point name after putting before adjustment, then adjust second interest point name
Display location.
Optionally, the current display position according to the first interest point name and the second interest point name determines described
The display location of one interest point name and/or the second interest point name also includes:When the display position of first interest point name
It is overlapping with the current display position of second interest point name after putting before adjustment, then adjust first interest point name
Display location to the position minimum with the current display position overlapping region of second interest point name.
Optionally, the display location of first interest point name is overlapping with the display location of second interest point name
Refer to the external of position of the boundary rectangle of first interest point name in the map and second interest point name
Intersect position of the rectangle in the map.
Optionally, the display methods of the interest point name also includes:It is determined that first interest point name or second
Before the display location of interest point name, when the character length of the interest point name is more than preset characters length, then by described in
Interest point name splits at least two rows.
Optionally, the display location of the interest point name is located at top, lower section, left or the right of the point of interest.
Optionally, the display methods of the interest point name also includes:According to fixed first interest point name and
The display location of two interest point names, shows the first interest point name and the second interest point name in the map.
Optionally, the display location according to fixed first interest point name and the second interest point name, in institute
State and show that the first interest point name and the second interest point name include in map:By first interest point name and its have determined that
Display location data and second interest point name and its fixed display location data deposit caching;From the caching
First interest point name and its display location data are read, to show first interest point name in the map;
Second interest point name and its display location data are read from the caching, to show that described second is emerging in the map
Interest point title.
In order to solve the above technical problems, technical solution of the present invention also provides a kind of display device of interest point name, including:
Position determination unit, for determining described first according to the current display position of the first interest point name and the second interest point name
The display location of interest point name and/or the second interest point name, wherein, the second point of interest is in map around the first point of interest
At least one point of interest.
Optionally, the position determination unit includes:First adjustment unit, for working as when first interest point name
Preceding display location is overlapping with the current display position of second interest point name, then adjusts the aobvious of first interest point name
Show position.
Optionally, the position determination unit also includes:Second adjustment unit, for when first interest point name
Display location is rear overlapping with the current display position of second interest point name before adjustment, then adjusts second interest
The display location of point title.
Optionally, first adjustment unit is additionally operable to:When first interest point name display location before adjustment
It is overlapping with the current display position of second interest point name afterwards, then adjust the display location of first interest point name
To the position that the current display position overlapping region with second interest point name is minimum.
Optionally, the display device of the interest point name also includes:Split cells, for it is determined that first interest
Before the display location of point title or the second interest point name, if the character length of the interest point name is long more than preset characters
Degree, then split at least two rows by the interest point name.
Optionally, the display device of the interest point name also includes:Loading unit, for emerging based on fixed first
The display location of interest point title and the second interest point name, shows that the first interest point name and the second interest are called the roll in map
Claim.
Optionally, the loading unit includes:Caching, for storing first interest point name and its fixed aobvious
Show position data and second interest point name and its fixed display location data;Reading unit, for delaying from described
Deposit reading first interest point name and its display location data and second interest point name and its display location data;
Display unit, for the interest point name and its display location data read according to the reading unit, display includes described the
The map of one interest point name and the second interest point name.
Compared with prior art, above-mentioned technical proposal avoids covering to try one's best by adjusting the display location of interest point name
Around interest point name, the display location of adjustment interest point name be with overlapping for principle not with the interest point name of surrounding,
So that the interest point name of point of interest concentrated area is separated as much as possible, so as to solve problem of the prior art, reach many
Without the effect of crowded display point of interest, effective point of interest prompting has been provided the user.
Brief description of the drawings
Fig. 1 is the schematic flow sheet of the display methods of the interest point name of the embodiment of the present invention;
Fig. 2 to 6 is the example schematic of the display methods of the interest point name of the embodiment of the present invention;
Fig. 7 is the structural representation of the display device of the interest point name of the embodiment of the present invention.
Embodiment
The problem of being existed based on prior art, inventor considers to keep away to try one's best by adjusting the display location of interest point name
The title for exempting from close point of interest is overlapping, therefore, and the display methods of the interest point name of technical solution of the present invention includes:According to
The current display position of one interest point name and the second interest point name determines first interest point name and/or the second interest
The display location of point title, wherein, the second point of interest is at least one point of interest around the first point of interest in map.
Fig. 1 is the schematic flow sheet of the display methods of the interest point name of the embodiment of the present invention, and each step is carried out below
Describe in detail.
Step S1, obtains the current display position of the first interest point name.In map making, it is necessary to first be read from caching
Interest point data is taken, point of interest is placed on to the relevant position in the map to be shown.Because the point of interest in map is numerous,
Therefore an interest point data is read every time, first point of interest refers to the point of interest currently read, reading first
After interest point data, in interest point data expression point of interest icon and its display location data, interest point name and
Its display location data, first point of interest is drawn in map, generally, the positional representation interest where the icon of point of interest
The position of point, the title of point of interest is labeled in the position of the icon close to point of interest.Afterwards after each reading interest point data,
Following step is performed successively.
It should be noted that in step sl, when first interest point name is long, then the interest can be called the roll
Title splits at least two rows, and other points of interest or road name can be covered to avoid interest point name from being placed in map as far as possible
Deng.Generally, the interest point name can be split when the character length of the first interest point name is more than preset characters length
Into at least two rows.For example, preset characters length is 6, if the first interest point name includes 10 characters, 2 can be split into
OK, if the first interest point name includes 15 characters, 3 rows can be split into.
Then step S2 is performed, the current of the current display position of the first interest point name and the second interest point name is judged
Whether display location is overlapping, if then performing step S3, if otherwise performing step S6.Wherein, the second point of interest is the first interest
At least one point of interest around point.
, it is necessary to first judge that the first point of interest (point of interest currently read) title is current after the first interest point data is read
Whether the position of interest point name of the position to be placed (current display location) with having been placed in map can be overlapping, generally
It is to judge the current display position of the first interest point name and (adjacent or close) interest point name, i.e., second around it
Whether the current display position of interest point name is overlapping, and the second interest point name is probably one, it is also possible to multiple.
Collision Detection can be utilized by judging whether the display location of point of interest is overlapping:Judge the first interest point name
Position of the boundary rectangle of position of the boundary rectangle in the map and the second interest point name in the map whether phase
Hand over.When it is implemented, the display location data of interest point name can be coordinate data of the interest point name in map, according to
The character length of coordinate data and interest point name can calculate the position and four summits of the boundary rectangle of interest point name
Coordinate, it is possible thereby to judge whether two boundary rectangles can intersect.For example, as shown in Figure 2 the first point of interest A
The boundary rectangle 21 of interest point name intersects with the boundary rectangle 22 of the second point of interest B interest point name, the first point of interest A's
The boundary rectangle 21 of interest point name and the boundary rectangle 23 of the second point of interest C interest point name are non-intersect.If in addition,
Interest point name is split into at least two rows in step S1, then the boundary rectangle of interest point name includes at least two line characters.Institute
State the minimum rectangle that boundary rectangle typically refers to the alphabet comprising interest point name.
If the boundary rectangle of the boundary rectangle of the first interest point name and one or more interest point names around it
It is intersecting, if illustrating to place the first interest point name meeting interest point name of covering part second according to current display position, need
The display location of overlapping interest point name is adjusted, such as the display location of the first interest point name of adjustment or the second interest are called the roll
The display location of title, or adjust the display location of the first interest point name and the second interest point name.In the present embodiment, first adjust
The display location of whole first interest point name, that is, perform step S3.If the boundary rectangle of the first interest point name and its around
All interest point names boundary rectangle it is non-intersect, then need not adjust the display location of interest point name, it is emerging by first
The current display position of interest point title is defined as the display location of the first interest point name, that is, performs step S6, record first is emerging
The display location of interest point title.
Step S3, adjusts the display location of the first interest point name, until the display of the first interest point name after adjustment
Position display location not overlapping or the first interest point name with the current display position of the second interest point name is before adjustment
It is overlapping with the current display position of the second interest point name afterwards, continue executing with step S4.When first interest point name
Current display position is overlapping with the current display position of second interest point name, then first adjusts first interest point name
Display location, wherein, the display location of the interest point name is located at top, lower section, left or the right of the point of interest.
Interest point name is disposed close to the position of the icon of point of interest, can be icon top, lower section, the left side of point of interest
Side or right, the initial display position of interest point name are general true according to the display location data being stored in map data base
It is fixed, adjust the display location of the first interest point name, until the display location of the first interest point name after adjustment with it is all
The current display position of second interest point name is not overlapping, then performs step S4.For example, the first point of interest A shown in Fig. 2
Interest point name initial display position be the first point of interest A right, due to the interest point name weight with the second point of interest B
It is folded, it therefore, it can adjust the right of the first point of interest A shown in the first point of interest A interest point name from Fig. 2 to such as Fig. 3
The lower section of the first shown point of interest A.In addition it is also possible to adjust to the first point of interest A left;And if adjust to first emerging
Interesting point A top then can be overlapping with the second point of interest C interest point name.
However, the region that point of interest is concentrated in map, then it is possible that the display position of the first interest point name of adjustment
Put to optional position all can be overlapping with the current display position of one or more interest point names situation, for example, such as Fig. 4 institutes
Show, the first point of interest A interest point name understands the second point of interest of covering part B interest point name if displayed on right, such as
Fruit is shown in top meeting the second point of interest of covering part C interest point name, emerging if displayed on left meeting covering part second
Interesting point D interest point name, the second point of interest of covering part E interest point name is understood if displayed on lower section, in the case
Continue executing with step S4.
Step S4, judges that the display location of the first interest point name is rear current aobvious with the second interest point name before adjustment
Show whether position is overlapping, if then performing step S5, if otherwise performing step S6.For example, for the reality shown in Fig. 4
Example, then continue executing with S5;For the example shown in Fig. 3, then step S6 is continued executing with.
Step S5, adjusts the display location of the second interest point name, until the display of the second interest point name after adjustment
Position is not overlapping with the display location of the first interest point name, records display location and the first point of interest of the second interest point name
The display location of title.If the rear display with the second interest point name before adjustment of the display location of the first interest point name
Put overlapping, then the display location of each the second interest point name is sequentially adjusted in based on certain selection principle, its Adjustment principle
Identical with the Adjustment principle of the first point of interest, i.e., the interest point name of the second point of interest is not weighed with the interest point name around it
It is folded.
When it is implemented, by the reading order of the second point of interest the second interest point name can be selected to carry out display location
Adjustment.For example, example as shown in Figure 4, the second point of interest reads and placed according to E, C, B, D sequencing, therefore can be with
The display location of the second point of interest E interest point name is first adjusted, if mentioned above principle can not be met, then second is sequentially adjusted in
Interest point name C, B, D, if can by the position adjustment of the second point of interest E interest point name to other interest point names
Nonoverlapping position, then adjust the first point of interest A interest point name to the first point of interest A lower section, as shown in Figure 5.
The interest of the second point of interest E behind the display location of the interest point name of the first point of interest A after record adjustment and adjustment is called the roll
The display location of title.
Second interest point name overlapping with the initial display position of the first interest point name can also be first selected to be shown
Show the adjustment of position.For example, the example shown in Fig. 4, first adjusts the display location of the second point of interest B interest point name, so
If disclosure satisfy that above-mentioned Adjustment principle, the first point of interest A display location can not be adjusted, otherwise adjust again other second
The display location of interest point name and the display location of the first interest point name.
The second interest point name that can also first select the interest point name of surrounding minimum carries out the adjustment of display location, such as
Fruit disclosure satisfy that above-mentioned Adjustment principle, correspondingly adjust the display location of the first interest point name;Otherwise adjust again other second
The display location of interest point name and the display location of the first interest point name.
It should be noted that in the present embodiment, when first interest point name display location before adjustment after and institute
The current display position for stating the second interest point name is overlapping, then continues to adjust the display location of the second interest point name, that is, hold
Row step S5.And in other embodiments, the display location of the second interest point name can not also be adjusted, but adjustment first is emerging
The display location of interest point title to the minimum position in the current display position overlapping region with second interest point name, example
Such as, as shown in Figure 6.Wherein, overlapping region minimum refers to two boundary rectangles, the i.e. boundary rectangle of the first interest point name and
The intersecting area of the boundary rectangle of two interest point names is minimum.
In addition, performing after above-mentioned steps S5, if the second all interest point name of adjustment can not all meet above-mentioned adjustment
Principle, the then display location that can also adjust the first interest point name is extremely overlapping with the display location of second interest point name
The minimum position in region, or can also abandon showing a point of interest in the first point of interest and the second point of interest.
Step S6, records the display location of the first interest point name.If the initial display position of the first interest point name
(step S2 judged result is no) not overlapping with the display location of the second interest point name, then by the first of the first interest point name
Beginning display location as the first interest point name display location record.If the display position of the first interest point name after adjustment
(step S4 judged result is no) not overlapping with the display location of the second interest point name is put, then by the first interest after adjustment
The display location of point title is recorded as the display location of the first interest point name.
The display location of the interest point name determined by above-mentioned steps becomes the current display position of the interest point name
Put.Repeat the above steps, until the display location of all interest point names will be it has been determined that will finally draw in the map to be shown
Good map denotation on screen, wherein, the display location of each interest point name in map is determined by the above method, upper
If the display location for stating the first interest point name in step is recorded, the first point of interest is likely to become the point of interest of subsequent read
The point of interest of surrounding, that is, the second point of interest.
It should be noted that the display location and the display position of the second interest point name of the above-mentioned interest point name of record first
Put can be the first interest point name that will be determined after adjustment display location data and the display location of the second interest point name
Data deposit caching.Then in drafting and show map, interest point name and its display location data are read from the caching,
The interest point name is shown with the relevant position in the map.
Corresponding to the above method, the embodiment of the present invention also provides a kind of display device of interest point name, as shown in fig. 7,
Including:Position determination unit 10 and loading unit 11.
Position determination unit 10, it is true for the current display position according to the first interest point name and the second interest point name
The display location of fixed first interest point name and/or the second interest point name, wherein, the second point of interest is first in map
At least one point of interest around point of interest.The display location of the interest point name be located at the top of the point of interest, lower section,
Left or right.
Loading unit 11, for the display location based on fixed first interest point name and the second interest point name,
The first interest point name and the second interest point name are shown in map.
Further, the position determination unit 10 includes:First adjustment unit 101, for being called the roll when first interest
The current display position of title is overlapping with the current display position of second interest point name, then adjusts first interest and call the roll
The display location of title, the display location of first interest point name is overlapping with the display location of second interest point name to be
Refer to the external square of position of the boundary rectangle of first interest point name in the map and second interest point name
Intersect position of the shape in the map;Second adjustment unit 102, for existing when the display location of first interest point name
It is overlapping with the current display position of second interest point name before and after adjustment, then adjust the aobvious of second interest point name
Show position.
In other embodiments, the second adjustment unit can not be included, first adjustment unit is additionally operable to when described the
The display location of one interest point name is rear overlapping with the current display position of second interest point name before adjustment, then adjusts
The display location of whole first interest point name to the current display position overlapping region of second interest point name most
Small position.
The loading unit 11 includes:Caching 110, for storing first interest point name and its fixed display
Position data and second interest point name and its fixed display location data;Reading unit 111, for delaying from described
Deposit 110 readings, first interest point name and its display location data and second interest point name and its display location number
According to;Display unit 112, for the interest point name and its display location data read according to the reading unit 111, display bag
Map containing first interest point name and the second interest point name.
In addition, the display device of the interest point name can also include:Split cells (not shown), for it is determined that institute
Before the display location for stating the first interest point name or the second interest point name, if the character length of the interest point name is more than
Preset characters length, then split at least two rows by the interest point name.
Technical solution of the present invention also provides a kind of navigation system of the display device including above-mentioned interest point name, described to lead
Boat system can apply in mobile unit.
In summary, above-mentioned technical proposal is avoided around covering by adjusting the display location of interest point name with trying one's best
Interest point name, the display location of adjustment interest point name is with overlapping for principle not with the interest point name of surrounding so that emerging
The interest point name of interest point concentrated area is separated as much as possible, so as to solve problem of the prior art, has reached many without gathering around
The effect of crowded display point of interest, has provided the user effective point of interest prompting.
Although the present invention is disclosed as above with preferred embodiment, it is not for limiting the present invention, any this area
Technical staff without departing from the spirit and scope of the present invention, may be by the methods and techniques content of the disclosure above to this hair
Bright technical scheme makes possible variation and modification, therefore, every content without departing from technical solution of the present invention, according to the present invention
Any simple modifications, equivalents, and modifications made to above example of technical spirit, belong to technical solution of the present invention
Protection domain.