Nothing Special   »   [go: up one dir, main page]

CN102629431A - Position orientation method based on map, device thereof and system thereof - Google Patents

Position orientation method based on map, device thereof and system thereof Download PDF

Info

Publication number
CN102629431A
CN102629431A CN201210064658XA CN201210064658A CN102629431A CN 102629431 A CN102629431 A CN 102629431A CN 201210064658X A CN201210064658X A CN 201210064658XA CN 201210064658 A CN201210064658 A CN 201210064658A CN 102629431 A CN102629431 A CN 102629431A
Authority
CN
China
Prior art keywords
primary importance
screen
coordinate
angle
zones
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
CN201210064658XA
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.)
World (Shanghai) Technology Development Co., Ltd.
Original Assignee
Shenzhen Temobi Science and 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 Temobi Science and Technology Co Ltd filed Critical Shenzhen Temobi Science and Technology Co Ltd
Priority to CN201210064658XA priority Critical patent/CN102629431A/en
Publication of CN102629431A publication Critical patent/CN102629431A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The invention discloses a position orientation method based on a map. The method includes the following steps: obtaining a coordinate of a first position and a screen center point coordinate; determining whether the coordinate of the first position coordinates is on a screen or not; if not, according to coordinates of the first position and a screen center point position, obtaining a first angle and a second angle; through the first position coordinate and the first and second angles, determining a position relation between the first position and the screen, and displaying the position relation. The invention also discloses a position orientation device based on the map. The device comprises a first acquisition unit, a first processing unit, and a second processing unit. Through the invention, a user does not need to carry out positioning afresh, and can quickly return to a set position as long as dragging the map; operational steps of the user are reduced, and for users using a wireless network, a network flow also can be saved.

Description

A kind of orientation for place method, Apparatus and system based on map
Technical field
The present invention relates to the electronic chart field, relate in particular to a kind of orientation for place method, Apparatus and system based on map.
Background technology
Along with the continuous development of science and technology, increasing people brings into use electronic chart.At present, in the common electronic chart software, when the user constantly drags map, user's Set For Current position is dragged out screen through regular meeting; Will not know this toward which direction has dragged if the user rethinks desired location dragged in the screen to be shown this moment so.
Therefore, for a more easy-operating electronic chart is provided to the user, need provide a kind of needs to put when dragging out screen when setting as the user, can guide the user desired location to be towed back to the method for screen display fast.
Summary of the invention
The purpose of the embodiment of the invention is to propose a kind of orientation for place method, Apparatus and system based on map.
The present invention provides a kind of orientation for place method based on map, and said method comprises:
Obtain coordinate, screen center's point coordinate of primary importance;
Whether the coordinate of judging said primary importance is in screen; If not, then according to the coordinate of said primary importance and screen center's point position, obtain first angle and second angle;
Through described primary importance coordinate and said first angle and second angle, confirm the position relation of primary importance and screen, and described position relation is shown.
Wherein, described " obtaining first angle and second angle " is specially:
α=arctan(((gapy)*10.0)/((gapx)*10.0))*180/3.14;
β=arctan((maxy*10.0)/(maxx*10.0))*180/3.14;
Wherein α is first angle, and β is second angle;
Wherein gapx=| (| px|-|dx|) |; Gapy=| (| py|-|dy|) |; Gapx is the absolute value of primary importance coordinate and screen center's point position coordinates X coordinate difference; Gapy is the absolute value of primary importance coordinate and screen center's point position coordinates Y coordinate difference;
Wherein px, py be the primary importance coordinate that obtains for (px, py); Dx, dy be screen center's point position coordinates of obtaining for (dx, dy); Screen width is x, highly for y, maxx=x/2, maxy=y/2.
Wherein, described " through described primary importance coordinate and said first angle and second angle, confirming the position relation of primary importance and screen " is specially:
Is common vertex with said screen with screen center's point, in advance said screen is divided into the individual subregion of n (n is a positive integer) equably;
Which through described primary importance coordinate and first angle and second angle, confirm in the zone of first coordinate in n zone; Thereby confirm the position relation of said primary importance and screen.
Wherein, described " is common vertex with said screen with screen center's point, in advance said screen is divided into the individual subregion of n (n is a positive integer) equably " is specially:
Reset-to-n=8;
Screen width is x, highly is to preset maxx=x/2 by y, presets maxy=y/2; Px, py be the primary importance coordinate that obtains for (px, py); Dx, dy be screen center's point position coordinates of obtaining for (dx, dy);
With maxx length is the boundary, is divided into a left side ((px-dx)<0) to screen, right ((px-dx)>=0) 2 zones;
With maxy length is the boundary, is divided into screen ((py-dy)<0), down ((py-dy)>=0) 2 zones; Screen is divided into four rectangular areas;
Carry out subregion with two diagonal line of screen again, be divided into eight zonules to four rectangular areas of screen again, and name area code to be respectively in a clockwise direction: 1,2,3,4,5,6,7,8.
Wherein, described " through described primary importance coordinate and first angle and second angle, confirming which zone of first coordinate in n zone " is specially:
Judge (px-dx)>=0, and (py-dy)>=0, primary importance is in the screen lower right area so; The angle of primary importance is 90+ α, further judges when α>β, and primary importance is in No. 4 zones; When α<=β, the indication point position is in No. 3 zones;
Judge (px-dx)>=0, and (py-dy)<0, primary importance is in the screen right regions so; The angle of primary importance is 90-α, further judges when α>β, and primary importance is in No. 1 zone, and when α<=β, primary importance is in No. 2 zones;
Judge (px-dx)<0, and (py-dy)>=0, primary importance is at the left lower area of screen so; Primary importance 270-α further judges when α>β, and primary importance is in No. 5 zones; When α<=β, primary importance is in No. 6 zones;
Judge (px-dx)<0, and (py-dy)<0, primary importance is in the screen top left region so; Primary importance 270+ α further judges when α>β, and the indication point position is in No. 8 zones; When α<=β, primary importance is in No. 7 zones.
The present invention also provides a kind of orientation for place device based on map, and said device comprises:
First acquiring unit is used to obtain coordinate, screen center's point coordinate of primary importance;
First processing unit, whether the coordinate that is used to judge said primary importance is in screen; If not, then according to the coordinate of said primary importance and screen center's point position, obtain first angle and second angle;
Second processing unit is used for through described primary importance coordinate and said first angle and second angle, confirms the position relation of primary importance and screen, and described position relation is shown.
Wherein, first processing unit comprises: judging unit, second acquisition unit;
Judging unit, whether the coordinate that is used to judge said primary importance is in screen;
Second acquisition unit is used for coordinate when described primary importance not in screen the time, according to the coordinate of said primary importance and screen center's point position, obtains first angle and second angle; Saidly obtain first angle and second angle is specially:
α=arctan(((gapy)*10.0)/((gapx)*10.0))*180/3.14;
β=arctan((maxy*10.0)/(maxx*10.0))*180/3.14;
Wherein α is first angle, and β is second angle;
Wherein gapx=| (| px|-|dx|) |; Gapy=| (| py|-|dy|) |; Gapx is the absolute value of primary importance coordinate and screen center's point position coordinates X coordinate difference; Gapy is the absolute value of primary importance coordinate and screen center's point position coordinates Y coordinate difference;
Wherein px, py be the primary importance coordinate that obtains for (px, py); Dx, dy be screen center's point position coordinates of obtaining for (dx, dy); Screen width is x, highly for y, maxx=x/2, maxy=y/2.
Wherein, described second processing unit comprises:
First division unit, being used for said screen is common vertex with screen center's point, in advance said screen is divided into the individual subregion of n (n is a positive integer) equably;
Primary importance is confirmed the unit, is used for through described primary importance coordinate and first angle and second angle, confirms in which zone of first coordinate in n zone; Thereby confirm the position relation of said primary importance and screen.
Wherein, described first division unit comprises:
Preset unit is used for reset-to-n=8; Screen width is x, highly is to preset maxx=x/2 by y, presets maxy=y/2; Px, py be the primary importance coordinate that obtains for (px, py); Dx, dy be screen center's point position coordinates of obtaining for (dx, dy);
Second division unit, being used for maxx length is the boundary, is divided into a left side ((px-dx)<0) to screen, right ((px-dx)>=0) 2 zones;
With maxy length is the boundary, is divided into screen ((py-dy)<0), down ((py-dy)>=0) 2 zones; Screen is divided into four rectangular areas;
Carry out subregion with two diagonal line of screen again, be divided into eight zonules to four rectangular areas of screen again, and name area code to be respectively in a clockwise direction: 1,2,3,4,5,6,7,8.
Wherein, described primary importance is confirmed the unit, comprising:
The second place is confirmed the unit, be used for judging (px-dx)>=0, and (py-dy)>=0, primary importance is in the screen lower right area so; The angle of primary importance is 90+ α, further judges when α>β, and primary importance is in No. 4 zones; When α<=β, the indication point position is in No. 3 zones;
The 3rd position determination unit be used for judging (px-dx)>=0, and (py-dy)<0, primary importance is in the screen right regions so; The angle of primary importance is 90-α, further judges when α>β, and primary importance is in No. 1 zone, and when α<=β, primary importance is in No. 2 zones;
The 4th position determination unit is used for judging (px-dx)<0, and (py-dy)>=0, primary importance is at the left lower area of screen so; Primary importance 270-α further judges when α>β, and primary importance is in No. 5 zones; When α<=β, primary importance is in No. 6 zones;
The 5th position determination unit be used for judging (px-dx)<0, and (py-dy)<0, primary importance is in the screen top left region so; Primary importance 270+ α further judges when α>β, and the indication point position is in No. 8 zones; When α<=β, primary importance is in No. 7 zones.
The present invention becomes n zone with screen divider, confirms the position relation of desired location and screen then in the inside, this n zone, thereby the direction that needs drag is prompted to the user.Through this method, the user need not reorientate, and only need drag map just can get back to desired location apace; Reduced operation steps of user, and, also can practice thrift network traffics for some users who uses wireless network.
Description of drawings
Fig. 1 is the physical world coordinates system diagram;
Fig. 2 is that the placement location of graphing acquiescence in the physical world is the central point synoptic diagram of physical world;
Fig. 3 is that the default location of graphing in screen is the synoptic diagram in the upper left corner of screen;
Fig. 4 is the contrast situation synoptic diagram of graphing in physical world and the screen;
Fig. 5 is in rectangular coordinate system, the synoptic diagram of trigonometric function definition;
Fig. 6 is the orientation for place method flow diagram of the embodiment of the invention 1 based on map;
Fig. 7 is primary importance P according to the invention is provided with explicit identification on map a position view;
Fig. 8 is position when the user place synoptic diagram when invisible on map;
Fig. 9 is the locating effect synoptic diagram that sends Location Request to server;
Figure 10 is to use method provided by the invention, really schemes when the user locatees successful timeliness at every turn;
Figure 11 is to use method of the present invention, as long as drag the synoptic diagram that map just can be got back to the map location at current place apace according to prompting (small icon in the circle is pointed to);
Figure 12 is the structural drawing based on the orientation for place device of map of the embodiment of the invention 2.
Embodiment
In order to make the object of the invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and embodiment, the present invention is further elaborated, for the ease of explanation, only show the part relevant with the embodiment of the invention.Should be appreciated that the specific embodiment that this place is described, only be used to explain the present invention, not in order to restriction the present invention.
Before introducing the present invention, at first introduce the relation of physical coordinates system and mobile phone coordinate system:
Referring to Fig. 1, the hachure coordinate system is the physical world coordinates system among the figure, and broad-brush is the mobile phone screen coordinate system.Be expression more specifically, referring to Fig. 2, the placement location of the acquiescence of the graphing in the physical world is the central point of physical world; Referring to Fig. 3, the default location of graphing is the upper left corner of screen in screen; Fig. 4 is the contrast situation of graphing in physical world and the screen.
That is to say, just can find out very clearly that physical world coordinates system is different with the mobile phone screen coordinate system, the upper left corner of mobile phone screen (0,0) coordinate, the center point coordinate of physical world just from Fig. 1 to Fig. 4.During the mobile phone screen graphing, acquiescence is all with upper left corner point as a reference.
In mathematics, trigonometric function is the function at angle; In research triangle and modeling periodic phenomena and many other application is very important.Trigonometric function is normally defined the ratio on two limits of the right-angle triangle that comprises this angle, also can the length that be defined as the various line segments on the unit circle of equal value.More modern definition is expressed as separating of the infinite series or the specific differential equation to them, allows them to expand to positive count and negative value, or even complex values.
In rectangular coordinate system, the definition of its trigonometric function is following:
Referring to Fig. 5, establishing α is a quadrant angle among the plane right-angle coordinate xOy, P (x, y) be among the plane right-angle coordinate xOy a bit, r be P (x, y) to the distance of initial point O (0,0), then:
1. the sine of α is its opposite side (y) and the ratio of hypotenuse (r).In last figure, sin α=opposite side/hypotenuse=y/r
2. the cosine of α is its adjacent side (x) and the ratio of hypotenuse (r).In last figure, cos α=adjacent side/hypotenuse=x/r
3. the tangent of α is its opposite side (y) and the ratio of adjacent side (x).In last figure, tan α=opposite side/adjacent side=y/x
4. the cotangent of α is its adjacent side (x) and the ratio of opposite side (y).In last figure, ctan α=adjacent side/opposite side=x/y
Wherein, r=√ [(x-0) ^2+ (y-0) ^2]
In right-angle triangle, the definition of acute angle trigonometric function is following:
1. the sine of an acute angle is its opposite side and the ratio of hypotenuse.Sin α=opposite side/hypotenuse.
2. the cosine of an acute angle is its adjacent side and the ratio of hypotenuse.Cos α=adjacent side/hypotenuse.
3. the tangent of an acute angle is its opposite side and the ratio of adjacent side.Tan α=opposite side/adjacent side.
4. the cotangent of an acute angle is its adjacent side and the ratio of opposite side.Ctan α=adjacent side/opposite side.
Above-mentioned brief account mobile phone screen and physical world coordinates system different, content of the present invention is introduced in and the definition at some angles below in detail.
Embodiment one
Referring to Fig. 6, the invention provides a kind of orientation for place method based on map:
Step 101: the coordinate that obtains primary importance and screen center's point; The primary importance coordinate be (px, py), screen center's point position coordinates be (dx, dy).
Referring to Fig. 7, primary importance P according to the invention is meant that the user is provided with the position of explicit identification on map, for example can be the position at the current place of user, also can be the position that the user finds on map.P is ordered the primary importance that is identified and is the current position of user in Fig. 2.
The method of obtaining the coordinate of primary importance can adopt MPoint class members method getOsetX () and getOsetY () obtain the customer location coordinate (px, py), use getOriginDX () and getOriginDY () obtain screen center's point position coordinates (dx, dy).This method is the technological means that those skilled in the art use always, is not described in detail in this.
Step 102: in screen, if not, then execution in step 104 for the coordinate of judging said primary importance; If then execution in step 103:
Rule of judgment is: px ∈ [0,2dx] and py ∈ [0,2dy]
Step 103: show primary importance;
Step 104:, obtain first angle and second angle according to the coordinate of said primary importance and screen center's point position;
Referring to Fig. 7, described first angle is α; Second angle is β;
α=arctan(((gapy)*10.0)/((gapx)*10.0))*180/3.14;
β=arctan((maxy*10.0)/(maxx*10.0))*180/3.14;
Wherein α is first angle, and β is second angle;
Wherein gapx=| (| px|-|dx|) |;
gapy=|(|py|-|dy|)|;
Gapx is the absolute value of primary importance P coordinate and screen center's point position coordinates X coordinate difference; Gapy is the absolute value of primary importance P coordinate and screen center's point position coordinates Y coordinate difference;
Wherein px, py be the primary importance coordinate that obtains for (px, py); Dx, dy be screen center's point position coordinates of obtaining for (dx, dy); Screen width is x, highly for y, maxx=x/2, maxy=y/2.
That is to say, carry out subregion, be divided into eight zonules to screen, and name area code to be in a clockwise direction with two diagonal line of screen: 1,2,3,4,5,6,7,8, wherein, screen center's point is O, and P is the user position, and Q is the vertical intersection point of straight line PQ and OQ.
Step 105:, confirm the position relation of primary importance and screen through described primary importance coordinate and said first angle and second angle.
This method is specially:
Is common vertex with said screen with screen center's point, in advance said screen is divided into the individual subregion of n (n is a positive integer) equably;
Which through described primary importance coordinate and first angle and second angle, confirm in the zone of first coordinate in n zone; Thereby confirm the position relation of said primary importance and screen.
In the above-mentioned steps 105, the method for " is common vertex with said screen with screen center's point, in advance said screen is divided into the individual subregion of n (n is a positive integer) equably " can for:
N=8 is set in advance; Referring to Fig. 7
Owing to screen width is x, highly is to preset maxx=x/2 by y, preset maxy=y/2; Px, py be the primary importance coordinate that obtains for (px, py); Dx, dy be screen center's point position coordinates of obtaining for (dx, dy);
Be the boundary with maxx length so, be divided into a left side ((px-dx)<0) to screen, right ((px-dx)>=0) 2 zones;
With maxy length is the boundary, is divided into screen ((py-dy)<0), down ((py-dy)>=0) 2 zones; So far screen is divided into four rectangular areas;
Carry out subregion with two diagonal line of screen again, be divided into eight zonules to four rectangular areas of screen again, and name area code to be respectively in a clockwise direction: 1,2,3,4,5,6,7,8.
In the above-mentioned steps 105, ", confirming which zone of first coordinate in n zone " through the relation of described primary importance coordinate and first angle and second angle can for:
If (px-dx)>=0, (py-dy)>=0, primary importance is in the screen lower right area so; The angle of primary importance is 90+ α, and when α>β, primary importance is in No. 4 zones; When α<=β, the indication point position is in No. 3 zones;
If (px-dx)>=0, py-dy)<0, primary importance is in the screen right regions so; The angle of primary importance is 90-α, and when α>β, primary importance is in No. 1 zone, and when α<=β, primary importance is in No. 2 zones;
If (px-dx)<0, (py-dy)>=0, primary importance is at the left lower area of screen so; Primary importance 270-α, when α>β, primary importance is in No. 5 zones; When α<=β, primary importance is in No. 6 zones;
If (px-dx)<0, py-dy)<0, primary importance is in the screen top left region so; Primary importance 270+ α, when α>β, the indication point position is in No. 8 zones; When α<=β, primary importance is in No. 7 zones.
Step 106: described position relation is shown.
For example, when the position at user place is invisible on map, want that the user does not just know this toward which direction has moved, and effect is referring to Fig. 8 through dragging map when getting back to the position at current place apace.
When the position at user place is invisible on map,, then can send Location Request so to server if this moment, the user carried out reorientating operation; And waiting for server is returned relevant location information data; This equally also can get back to current position, can bring a lot of additional overhead to the user but do like this, as: traffic fee; The smoothness of operating experience, the time waiting of location and location failure (when network is bad) or the like.The locating effect that sends Location Request to server is referring to Fig. 9.
Use method provided by the invention; When the user locatees when successful at every turn; The capital is at the current particular location of user shown in screen center's place's demonstration, and this moment, the position at user place was visible on map, i.e. shinny blue arrow small icon among the figure; The top relevant positional information of bubble mark, effect such as Figure 10.
Can calculate the position and the direction at the current place of user and dynamically make correct prompting through this method to the user; The user need not to reorientate, as long as drag the map location that map just can be got back to current place apace according to prompting (small icon in the circle is pointed to).Figure 11 for example.
Embodiment 2, and the present invention provides a kind of orientation for place device based on map, and referring to Figure 12, said device comprises:
First acquiring unit is used to obtain coordinate, screen center's point coordinate of primary importance;
First processing unit, whether the coordinate that is used to judge said primary importance is in screen; If not, then according to the coordinate of said primary importance and screen center's point position, obtain first angle and second angle; If then show primary importance;
Second processing unit is used for through described primary importance coordinate and said first angle and second angle, confirms the position relation of primary importance and screen, and described position relation is shown.
Wherein, first processing unit comprises: judging unit, second acquisition unit;
Judging unit, whether the coordinate that is used to judge said primary importance is in screen;
Second acquisition unit is used for coordinate when described primary importance not in screen the time, according to the coordinate of said primary importance and screen center's point position, obtains first angle and second angle; Saidly obtain first angle and second angle is specially:
α=arctan(((gapy)*10.0)/((gapx)*10.0))*180/3.14;
β=arctan((maxy*10.0)/(maxx*10.0))*180/3.14;
Wherein α is first angle, and β is second angle;
Wherein gapx=| (| px|-|dx|) |; Gapy=| (| py|-|dy|) |; Gapx is the absolute value of primary importance coordinate and screen center's point position coordinates X coordinate difference; Gapy is the absolute value of primary importance coordinate and screen center's point position coordinates Y coordinate difference;
Wherein px, py be the primary importance coordinate that obtains for (px, py); Dx, dy be screen center's point position coordinates of obtaining for (dx, dy); Screen width is x, highly for y, maxx=x/2, maxy=y/2.
Wherein, described second processing unit comprises:
First division unit, being used for said screen is common vertex with screen center's point, in advance said screen is divided into the individual subregion of n (n is a positive integer) equably;
Primary importance is confirmed the unit, is used for through described primary importance coordinate and first angle and second angle, confirms in which zone of first coordinate in n zone; Thereby confirm the position relation of said primary importance and screen.
Wherein, described first division unit comprises:
Preset unit is used for reset-to-n=8; Screen width is x, highly is to preset maxx=x/2 by y, presets maxy=y/2; Px, py be the primary importance coordinate that obtains for (px, py); Dx, dy be screen center's point position coordinates of obtaining for (dx, dy);
Second division unit, being used for maxx length is the boundary, is divided into a left side ((px-dx)<0) to screen, right ((px-dx)>=0) 2 zones;
With maxy length is the boundary, is divided into screen ((py-dy)<0), down ((py-dy)>=0) 2 zones; Screen is divided into four rectangular areas;
Carry out subregion with two diagonal line of screen again, be divided into eight zonules to four rectangular areas of screen again, and name area code to be respectively in a clockwise direction: 1,2,3,4,5,6,7,8.
Wherein, described primary importance is confirmed the unit, comprising:
The second place is confirmed the unit, be used for judging (px-dx)>=0, and (py-dy)>=0, primary importance is in the screen lower right area so; The angle of primary importance is 90+ α, further judges when α>β, and primary importance is in No. 4 zones; When α<=β, the indication point position is in No. 3 zones;
The 3rd position determination unit be used for judging (px-dx)>=0, and (py-dy)<0, primary importance is in the screen right regions so; The angle of primary importance is 90-α, further judges when α>β, and primary importance is in No. 1 zone, and when α<=β, primary importance is in No. 2 zones;
The 4th position determination unit is used for judging (px-dx)<0, and (py-dy)>=0, primary importance is at the left lower area of screen so; Primary importance 270-α further judges when α>β, and primary importance is in No. 5 zones; When α<=β, primary importance is in No. 6 zones;
The 5th position determination unit be used for judging (px-dx)<0, and (py-dy)<0, primary importance is in the screen top left region so; Primary importance 270+ α further judges when α>β, and the indication point position is in No. 8 zones; When α<=β, primary importance is in No. 7 zones.
Those having ordinary skill in the art will appreciate that; All or part of step in realization the foregoing description method can be accomplished through the programmed instruction related hardware; Described program can be stored in the computer read/write memory medium, and described storage medium can be ROM, RAM, disk, CD etc.
The above is merely preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of within spirit of the present invention and principle, being done, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. orientation for place method based on map is characterized in that said method comprises:
Obtain coordinate, screen center's point coordinate of primary importance;
Whether the coordinate of judging said primary importance is in screen; If not, then according to the coordinate of said primary importance and screen center's point position, obtain first angle and second angle;
Through described primary importance coordinate and said first angle and second angle, confirm the position relation of primary importance and screen, and described position relation is shown.
2. a kind of orientation for place method based on map according to claim 1 is characterized in that, described " obtaining first angle and second angle " is specially:
α=arctan(((gapy)*10.0)/((gapx)*10.0))*180/3.14;
β=arctan((maxy*10.0)/(maxx*10.0))*180/3.14;
Wherein α is first angle, and β is second angle;
Wherein gapx=| (| px|-|dx|) |; Gapy=| (| py|-|dy|) |; Gapx is the absolute value of primary importance coordinate and screen center's point position coordinates X coordinate difference; Gapy is the absolute value of primary importance coordinate and screen center's point position coordinates Y coordinate difference;
Wherein px, py be the primary importance coordinate that obtains for (px, py); Dx, dy be screen center's point position coordinates of obtaining for (dx, dy); Screen width is x, highly for y, maxx=x/2, maxy=y/2.
3. a kind of orientation for place method based on map according to claim 1 and 2 is characterized in that, described " through described primary importance coordinate and said first angle and second angle, confirming the position relation of primary importance and screen " is specially:
Is common vertex with said screen with screen center's point, in advance said screen is divided into the individual subregion of n (n is a positive integer) equably;
Which through described primary importance coordinate and first angle and second angle, confirm in the zone of first coordinate in n zone; Thereby confirm the position relation of said primary importance and screen.
4. a kind of orientation for place method based on map according to claim 3 is characterized in that, described " is common vertex with said screen with screen center's point, in advance said screen is divided into the individual subregion of n (n is a positive integer) equably " is specially:
Reset-to-n=8;
Screen width is x, highly is to preset maxx=x/2 by y, presets maxy=y/2; Px, py be the primary importance coordinate that obtains for (px, py); Dx, dy be screen center's point position coordinates of obtaining for (dx, dy);
With maxx length is the boundary, is divided into a left side ((px-dx)<0) to screen, right ((px-dx)>=0) 2 zones;
With maxy length is the boundary, is divided into screen ((py-dy)<0), down ((py-dy)>=0) 2 zones; Screen is divided into four rectangular areas;
Carry out subregion with two diagonal line of screen again, be divided into eight zonules to four rectangular areas of screen again, and name area code to be respectively in a clockwise direction: 1,2,3,4,5,6,7,8.
5. a kind of orientation for place method based on map according to claim 4 is characterized in that, described " through described primary importance coordinate and first angle and second angle, confirming which zone of first coordinate in n zone " is specially:
Judge (px-dx)>=0, and (py-dy)>=0, primary importance is in the screen lower right area so; The angle of primary importance is 90+ α, further judges when α>β, and primary importance is in No. 4 zones; When α<=β, the indication point position is in No. 3 zones;
Judge (px-dx)>=0, and (py-dy)<0, primary importance is in the screen right regions so; The angle of primary importance is 90-α, further judges when α>β, and primary importance is in No. 1 zone, and when α<=β, primary importance is in No. 2 zones;
Judge (px-dx)<0, and (py-dy)>=0, primary importance is at the left lower area of screen so; Primary importance 270-α further judges when α>β, and primary importance is in No. 5 zones; When α<=β, primary importance is in No. 6 zones;
Judge (px-dx)<0, and (py-dy)<0, primary importance is in the screen top left region so; Primary importance 270+ α further judges when α>β, and the indication point position is in No. 8 zones; When α<=β, primary importance is in No. 7 zones.
6. orientation for place device based on map is characterized in that said device comprises:
First acquiring unit is used to obtain coordinate, screen center's point coordinate of primary importance;
First processing unit, whether the coordinate that is used to judge said primary importance is in screen; If not, then according to the coordinate of said primary importance and screen center's point position, obtain first angle and second angle;
Second processing unit is used for through described primary importance coordinate and said first angle and second angle, confirms the position relation of primary importance and screen, and described position relation is shown.
7. the orientation for place device based on map according to claim 6 is characterized in that first processing unit comprises: judging unit, second acquisition unit;
Judging unit, whether the coordinate that is used to judge said primary importance is in screen;
Second acquisition unit is used for coordinate when described primary importance not in screen the time, according to the coordinate of said primary importance and screen center's point position, obtains first angle and second angle; Saidly obtain first angle and second angle is specially:
α=arctan(((gapy)*10.0)/((gapx)*10.0))*180/3.14;
β=arctan((maxy*10.0)/(maxx*10.0))*180/3.14;
Wherein α is first angle, and β is second angle;
Wherein gapx=| (| px|-|dx|) |; Gapy=| (| py|-|dy|) |; Gapx is the absolute value of primary importance coordinate and screen center's point position coordinates X coordinate difference; Gapy is the absolute value of primary importance coordinate and screen center's point position coordinates Y coordinate difference;
Wherein px, py be the primary importance coordinate that obtains for (px, py); Dx, dy be screen center's point position coordinates of obtaining for (dx, dy); Screen width is x, highly for y, maxx=x/2, maxy=y/2.
8. according to claim 6 or 7 described orientation for place devices, it is characterized in that described second processing unit comprises based on map:
First division unit, being used for said screen is common vertex with screen center's point, in advance said screen is divided into the individual subregion of n (n is a positive integer) equably;
Primary importance is confirmed the unit, is used for through described primary importance coordinate and first angle and second angle, confirms in which zone of first coordinate in n zone; Thereby confirm the position relation of said primary importance and screen.
9. the orientation for place device based on map according to claim 8 is characterized in that, described first division unit comprises:
Preset unit is used for reset-to-n=8; Screen width is x, highly is to preset maxx=x/2 by y, presets maxy=y/2; Px, py be the primary importance coordinate that obtains for (px, py); Dx, dy be screen center's point position coordinates of obtaining for (dx, dy);
Second division unit, being used for maxx length is the boundary, is divided into a left side ((px-dx)<0) to screen, right ((px-dx)>=0) 2 zones;
With maxy length is the boundary, is divided into screen ((py-dy)<0), down ((py-dy)>=0) 2 zones; Screen is divided into four rectangular areas;
Carry out subregion with two diagonal line of screen again, be divided into eight zonules to four rectangular areas of screen again, and name area code to be respectively in a clockwise direction: 1,2,3,4,5,6,7,8.
10. the orientation for place device based on map according to claim 9 is characterized in that described primary importance is confirmed the unit, comprising:
The second place is confirmed the unit, be used for judging (px-dx)>=0, and (py-dy)>=0, primary importance is in the screen lower right area so; The angle of primary importance is 90+ α, further judges when α>β, and primary importance is in No. 4 zones; When α<=β, the indication point position is in No. 3 zones;
The 3rd position determination unit be used for judging (px-dx)>=0, and (py-dy)<0, primary importance is in the screen right regions so; The angle of primary importance is 90-α, further judges when α>β, and primary importance is in No. 1 zone, and when α<=β, primary importance is in No. 2 zones;
The 4th position determination unit is used for judging (px-dx)<0, and (py-dy)>=0, primary importance is at the left lower area of screen so; Primary importance 270-α further judges when α>β, and primary importance is in No. 5 zones; When α<=β, primary importance is in No. 6 zones;
The 5th position determination unit be used for judging (px-dx)<0, and (py-dy)<0, primary importance is in the screen top left region so; Primary importance 270+ α further judges when α>β, and the indication point position is in No. 8 zones; When α<=β, primary importance is in No. 7 zones.
CN201210064658XA 2012-03-13 2012-03-13 Position orientation method based on map, device thereof and system thereof Pending CN102629431A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210064658XA CN102629431A (en) 2012-03-13 2012-03-13 Position orientation method based on map, device thereof and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210064658XA CN102629431A (en) 2012-03-13 2012-03-13 Position orientation method based on map, device thereof and system thereof

Publications (1)

Publication Number Publication Date
CN102629431A true CN102629431A (en) 2012-08-08

Family

ID=46587685

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210064658XA Pending CN102629431A (en) 2012-03-13 2012-03-13 Position orientation method based on map, device thereof and system thereof

Country Status (1)

Country Link
CN (1) CN102629431A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017206824A1 (en) * 2016-05-30 2017-12-07 广州巧瞳科技有限公司 Position information processing method and system for use in smart display of visual images
CN108228021A (en) * 2016-12-15 2018-06-29 上海仪电(集团)有限公司中央研究院 More applying based on smart city operating system can towed integrated system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020152021A1 (en) * 2001-04-12 2002-10-17 Masako Ota Navigation apparatus, navigation method and navigation program
JP2004053601A (en) * 2002-07-17 2004-02-19 Alpine Electronics Inc Guidance map display method and device for navigation system
US7519469B2 (en) * 2005-04-28 2009-04-14 Alpine Electronics, Inc. Display method and apparatus for navigation system
JP2009156655A (en) * 2007-12-26 2009-07-16 Sony Corp Navigation system, navigation apparatus display method, program for the display method, recording medium stored with the program
CN101666656A (en) * 2008-09-05 2010-03-10 宏达国际电子股份有限公司 Method and device for operating the visual field of electronic map and computer program product used thereby

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020152021A1 (en) * 2001-04-12 2002-10-17 Masako Ota Navigation apparatus, navigation method and navigation program
JP2004053601A (en) * 2002-07-17 2004-02-19 Alpine Electronics Inc Guidance map display method and device for navigation system
US7519469B2 (en) * 2005-04-28 2009-04-14 Alpine Electronics, Inc. Display method and apparatus for navigation system
JP2009156655A (en) * 2007-12-26 2009-07-16 Sony Corp Navigation system, navigation apparatus display method, program for the display method, recording medium stored with the program
CN101666656A (en) * 2008-09-05 2010-03-10 宏达国际电子股份有限公司 Method and device for operating the visual field of electronic map and computer program product used thereby

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017206824A1 (en) * 2016-05-30 2017-12-07 广州巧瞳科技有限公司 Position information processing method and system for use in smart display of visual images
CN108228021A (en) * 2016-12-15 2018-06-29 上海仪电(集团)有限公司中央研究院 More applying based on smart city operating system can towed integrated system and method

Similar Documents

Publication Publication Date Title
CN105452811B (en) User terminal device for displaying map and method thereof
US9086837B1 (en) Collaboration sessions
KR20160046150A (en) Apparatus and method for drawing and solving a figure content
CN104471518A (en) Disambiguation of multitouch gesture recognition for 3d interaction
CN103733229A (en) Information processing device, information processing method, and program
CN105453016A (en) Context sensitive actions in response to touch input
KR102091000B1 (en) Method and apparatus for processing data using user gesture
US10722785B2 (en) Information processing system, program, server, terminal, and medium
US8467952B2 (en) Map generating device, and memory medium storing map generating program
AU2015264151B2 (en) Guides on a content generation system
US20160224575A1 (en) Method of displaying search results
CN107977342B (en) Document comparison method and device
CN105247465A (en) System and method for disambiguating item selection
CN114648615B (en) Method, device and equipment for controlling interactive reproduction of target object and storage medium
US9953380B2 (en) Method and system for setting relationship between users of service using gestures information
WO2014102455A2 (en) Methods, apparatuses, and computer program products for retrieving views extending a user´s line of sight
CN102629431A (en) Position orientation method based on map, device thereof and system thereof
TW201413564A (en) System and method for switching desktops
KR20140139767A (en) Method for identifying object and an electronic device thereof
CN109345610B (en) Method and system for displaying lean attack and hardness removal command on map
CN103677506A (en) Desktop switching system and method
CN103279219A (en) Method and system for moving cursor of touch screen device
CN113487704A (en) Method and device for drawing dovetail arrow head, storage medium and terminal equipment
EP3295291B1 (en) Drawing object inferring system and method
KR20140119439A (en) Device for displaying map using touch screen and providing method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 19, building 18, Changhong technology building, 518057 South twelve Road, South tech Zone, Nanshan District hi tech Zone, Guangdong, Shenzhen

Applicant after: SHENZHEN TEMOBI TECHNOLOGY CO., LTD.

Address before: 19, building 18, Changhong technology building, 518057 South twelve Road, South tech Zone, Nanshan District hi tech Zone, Guangdong, Shenzhen

Applicant before: Shenzhen Temobi Science & Tech Development Co.,Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: SHENZHEN TEMOBI SCIENCE + TECHNOLOGY CO., LTD. TO: SHENZHEN RONGCHANG TIANXIA TECHNOLOGY CO., LTD.

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: RONGCHUANG TIANXIA (SHANGHAI) TECHNOLOGY DEVELOPME

Free format text: FORMER OWNER: SHENZHEN RONGCHANG TIANXIA TECHNOLOGY CO., LTD.

Effective date: 20150612

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20150612

Address after: 200433 Shanghai City, Yangpu District Wei Road No. 6 room 502-8

Applicant after: World (Shanghai) Technology Development Co., Ltd.

Address before: 19, building 18, Changhong technology building, 518057 South twelve Road, South tech Zone, Nanshan District hi tech Zone, Guangdong, Shenzhen

Applicant before: SHENZHEN TEMOBI TECHNOLOGY CO., LTD.

WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120808

WD01 Invention patent application deemed withdrawn after publication