CN109613577A - A kind of location determining method, device, terminal device and storage medium - Google Patents
A kind of location determining method, device, terminal device and storage medium Download PDFInfo
- Publication number
- CN109613577A CN109613577A CN201811592511.1A CN201811592511A CN109613577A CN 109613577 A CN109613577 A CN 109613577A CN 201811592511 A CN201811592511 A CN 201811592511A CN 109613577 A CN109613577 A CN 109613577A
- Authority
- CN
- China
- Prior art keywords
- latitude
- client
- longitude
- target area
- point
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S19/00—Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
- G01S19/38—Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
- G01S19/39—Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
- G01S19/42—Determining position
Landscapes
- Engineering & Computer Science (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Navigation (AREA)
Abstract
The invention discloses a kind of location determining method, device, terminal device and storage mediums.This method comprises: obtaining the current location information of client, which includes the longitude and latitude of client;If the longitude of client between the longitude of the two adjacent boundary points in the target area prestored, obtains the latitude of actual boundary point between two adjacent boundary points;It is greater than the number of the latitude of client according to the latitude of actual boundary point, determines client whether in target area, realize the quick accurate determination to client location.
Description
Technical field
The present embodiments relate to position determination technology more particularly to a kind of location determining method, device, terminal device and
Storage medium.
Background technique
With the fast development of big-dipper satellite and internet, particularly critical is become to the high accuracy positioning of client location.
Currently, being generally used global positioning system (Global when positioning to client location
Positioning System, GPS) positioning system progress position positioning.But since the positioning accuracy of GPS is at ten meters or so, and
And by GPS positioning, the position of client could need to be determined by network, and all longitudes and latitudes on map need to be obtained
Degree information just can determine that the position of client, to determine during being determined to position because network problem is be easy to cause
There are errors for position, and all longitudes and latitudes in map is needed to be compared, and cause data operation quantity excessive, and then reduce
Locating effect, affects the usage experience of user.
Summary of the invention
In view of this, the present invention provides a kind of location determining method, device, terminal device and storage medium, to realize pair
The quick accurate determination of client location.
In a first aspect, the embodiment of the invention provides a kind of location determining methods, comprising:
The current location information of client is obtained, the current location information includes the longitude and latitude of client;
If the longitude of the client obtains institute between the longitude of the two adjacent boundary points in the target area prestored
State the latitude of actual boundary point between two adjacent boundary points;
It is greater than the number of the latitude of the client according to the latitude of the actual boundary point, whether determines the client
In the target area.
Further, the latitude of actual boundary point between described two adjacent boundary points is obtained, comprising:
The actual boundary intersection point is determined according to the longitude and latitude of the longitude of the client and described two adjacent boundaries point
Latitude.
Further, the method, further includes:
The longitude and latitude of all boundary points on the longitude and latitude of the client and the target area prestored is compared;
The longitude and latitude of the client is identical with the longitude and latitude of a boundary point on the target area prestored, described in determination
Client is on the boundary of target area.
Further, according to the latitude of the actual boundary point be greater than the client latitude number, determine described in
Whether client is in the target area, comprising:
If the number that the latitude of the actual boundary point is greater than the latitude of the client is odd number, the client exists
In the target area;
If the number that the latitude of the actual boundary point is greater than the latitude of the client is even number, the client exists
Outside the target area.
Further, before the current location information for obtaining client, further includes:
Obtain the longitude and latitude of all boundary points of all areas on default map;
The longitude and latitude of all boundary points is saved in presetting database.
Further, the method, further includes:
The current location information of client is shown on default map.
Second aspect, the embodiment of the invention also provides a kind of position determining means, comprising:
First obtains module, and for obtaining the current location information of client, the current location information includes client
Longitude and latitude;
Second obtains module, if the longitude for the client is in the adjacent boundary point of the target area prestored two
Between longitude, then the latitude of actual boundary point between described two adjacent boundary points is obtained;
First determining module, the number of the latitude for being greater than the client according to the latitude of the actual boundary point,
Determine the client whether in the target area.
Further, the latitude for obtaining actual boundary point between described two adjacent boundary points, is specifically used for:
The actual boundary intersection point is determined according to the longitude and latitude of the longitude of the client and described two adjacent boundaries point
Latitude.
Further, described device, further includes:
Comparison module, for by the longitude and latitude of all boundary points on the longitude and latitude of the client and the target area that prestores
Degree is compared;
Second determining module, the warp of a boundary point on the longitude and latitude of the client and the target area that prestores
Latitude is identical, determines the client on the boundary of target area.
Further, first determining module, comprising:
First judges determination unit, if the latitude for the actual boundary point is greater than the number of the latitude of the client
For odd number, then the client is in the target area;
Second judges determination unit, if the latitude for the actual boundary point is greater than the number of the latitude of the client
For even number, then the client is outside the target area.
Further, described device, further includes:
Third obtains module, for before the current location information for obtaining client, obtaining all areas on default map
The longitude and latitude of all boundary points in domain;
Preserving module, for the longitude and latitude of all boundary points to be saved in presetting database.
Further, described device, further includes:
Display module, for showing the current location information of client in default map.
The third aspect, the embodiment of the invention also provides a kind of terminal devices, comprising: at memory and one or more
Manage device;
The memory, 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 realizes location determining method as described in relation to the first aspect.
Fourth aspect, it is described the embodiment of the invention also provides a kind of storage medium comprising computer executable instructions
Computer executable instructions by computer processor when being executed for executing location determining method as described in relation to the first aspect.
The current location information of longitude and latitude of the present invention by acquisition comprising client, if the longitude of client is prestoring
The two adjacent boundary points in target area longitude between, then obtain two adjacent boundary points between actual boundary point latitude;
It is greater than the number of the latitude of client according to the latitude of actual boundary point, determines client whether in target area.The present invention
Embodiment need to only obtain the longitude and latitude of all boundary points of the target area prestored, then by the longitude and latitude of client and two phases
The latitude of adjacent boundary point is compared, that is, can determine client whether in target area, without obtaining target area
All longitudes and latitudes in domain, and be the quick accurate determination that can guarantee to client location without outer net.
Detailed description of the invention
Fig. 1 is a kind of flow chart of location determining method provided in an embodiment of the present invention;
Fig. 2 is the display schematic diagram that a kind of position provided in an embodiment of the present invention determines;
Fig. 3 is a kind of display schematic diagram of presetting database provided in an embodiment of the present invention;
Fig. 4 is a kind of display schematic diagram of the current location information of client provided in an embodiment of the present invention;
Fig. 5 is the flow chart of another location determining method provided in an embodiment of the present invention;
Fig. 6 is the display schematic diagram that another position provided in an embodiment of the present invention determines;
Fig. 7 is a kind of structural block diagram of position determining means provided in an embodiment of the present invention;
Fig. 8 is a kind of structural schematic diagram of terminal device provided in an embodiment of the present invention.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just
Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Fig. 1 is a kind of flow chart of location determining method provided in an embodiment of the present invention, the position provided in the present embodiment
The method of determination can be executed by terminal device, which can be realized by way of software and/or hardware, which sets
It is standby to can be two or more physical entities compositions, it is also possible to a physical entity and constitutes.Terminal device is in the present embodiment
Server.
With reference to Fig. 1, which specifically comprises the following steps:
S110, the current location information for obtaining client.
Wherein, current location information includes the longitude and latitude of client.
In embodiment, the current location information of client can be understood as current address locating for the user of the client
Location information.Wherein, current location information can be client longitude and latitude, or specific address, to this not into
Row limits.Specifically, the current location information of client can carry out positioning acquisition by GPS system in the prior art, so
The current location information of client is sent to afterwards in the server established and have communication connection, so that server is to the client
Current location information carries out processing analysis.
If the longitude of S120, client obtains between the longitude of the two adjacent boundary points in the target area prestored
The latitude of actual boundary point between two adjacent boundary points.
It should be noted that each area or each city can be known as a region on default map, for example,
One province, a city, a county are properly termed as a region.In embodiment, the target area prestored can be from default
The region obtained at random in database.Wherein, it is stored with all of all areas on default map in the preset database
Boundary point.
Specifically, after getting the longitude and latitude of client, a region is randomly selected from presetting database and is made
For target area, and two adjacent boundary points are selected from all boundary points in the target area, then by the warp of client
Degree and the longitudes of two adjacent boundary points are compared analysis, if the longitude of client two adjacent boundary points longitude it
Between, then obtain the latitude of the actual boundary point between two adjacent boundary points.Wherein, actual boundary point can be understood as client
Longitude and latitude and target area boundaries intersection point, the longitude of the intersection point and the longitude of client are identical, and the intersection points
Longitude and latitude is between two adjacent boundary points.
Wherein, the latitude of actual boundary point between two adjacent boundary points is obtained, concretely: according to the longitude of client
The latitude of actual boundary intersection point is determined with the longitude and latitude of two adjacent boundary points.Fig. 2 is a kind of position provided in an embodiment of the present invention
Set determining display schematic diagram.As shown in Fig. 2, target area is an elliptical region, and exist on the target area
A, this coordinate points of B, C and P, wherein C point is the current location information of client, A and B point is adjacent for two on target area
Boundary point, also, the latitude of C point and longitude are respectively x0 and y0, and the latitude and longitude of A point are respectively x1 and y1, the latitude of B point
It is respectively x2 and y2 with longitude, wherein P point is actual boundary point, and latitude and longitude are respectively x and y0.Specifically, will
The y0 of C point is compared with y1, y2 of A point, B point respectively, it may be determined that for longitude angle, C point is between A point and B point, so
Afterwards by the formula of equal proportion, the latitude of P point is calculated in the longitude and latitude of longitude and A point, B point to C point.Specifically, can lead to
Crossing calculation formula, the latitude of P point is calculated in: (x2-x1)/(x-x1)=(y2-y1)/(y0-y1):
It should be noted that two adjacent boundary points can be understood as the target area side Zhong Liangge in target area
What the longitude and latitude of boundary's point was closest to, then the intersection point of the line of the longitude and latitude of client and its two adjacent boundary point, is objective
The longitude and latitude at family end and the boundary intersection of the target area.Certainly, the longitude and latitude of the boundary intersection is in two adjacent boundary points
Longitude and latitude between intersection point.
It should be noted that being needed in the actual operation process, between longitude and latitude and x, y-coordinate value according to existing side
What method was converted.In the present embodiment, in order to illustrate the pass between client, two adjacent boundary points and actual boundary point
System, non-pair warp and weft degree and x, y-coordinate value are converted, but the position for having no effect on client determines.Certainly, it is determined in position
In practical operation, pair warp and weft degree and x, y-coordinate value is needed mutually to be converted.
Whether S130, the number according to the latitude of actual boundary point greater than the latitude of client, determine client in target
In region.
In general, the boundary in each area is a closed area.It is to be understood that the target area in the present embodiment
Domain is a closed area, and the closed area can be symmetrically, can also be asymmetric.In order to accurately true
Client is determined whether in target area, and the case where target area is symmetrical region is only considered in this programme, and it is asymmetric
Situation need to separately consider.
In embodiment, after the latitude that actual boundary point is calculated, can be greater than according to the latitude of actual boundary point
Whether the number of the latitude of client determines client in target area.Specifically, target area is all symmetrical, then
It need to only judge that the latitude of actual boundary point is greater than the number of the latitude of client, that is, can determine client whether in target area
It is interior, it particularly may be divided into two kinds of situations: if the number that the latitude of actual boundary point is greater than the latitude of client is odd number, client
In target area;If the number that the latitude of actual boundary point is greater than the latitude of client is even number, client is in target area
It is overseas.Illustratively, as shown in Fig. 2, the latitude of actual boundary point P point be greater than client C point latitude number only one,
Then show client C point in target area.
The technical solution of the present embodiment, by obtaining the current location information of the longitude and latitude comprising client, if client
The longitude at end then obtains practical between two adjacent boundary points between the longitude of the two adjacent boundary points in the target area prestored
The latitude of boundary point;It is greater than the number of the latitude of client according to the latitude of actual boundary point, determines client whether in target
In region, realize without obtaining longitude and latitude all in target area, and can guarantee to client location without outer net
Accurate determination.
On the basis of the above embodiments, in order to get the target area prestored boundary point longitude and latitude,
Further include step S140-S150 before step S110:
S140, the longitude and latitude for obtaining all boundary points of all areas on default map.
Wherein, default map can be the map of arbitrary region.In embodiment, in order to guarantee on default map
The longitude and latitude of client is found, which is national maps.Then all of all areas are obtained from national maps
The longitude and latitude of boundary point.Wherein, all areas are each area in the whole nation, for example, each province, each city and each county it is all
The longitude and latitude of boundary point.It should be noted that in order to enable the longitude and latitude of boundary point has regularity, in all areas of acquisition
It, can be according to the longitude and latitude of certain all boundary points of interval acquiring when the longitude and latitude of all boundary points on domain.It is of course also possible to
It is obtained, is not limited thereto according to other rules.
S150, the longitude and latitude of all boundary points is saved in presetting database.
Wherein, presetting database is used to store the space of the longitude and latitude of all boundary points of all areas.In embodiment,
In order to which the boundary point to different zones distinguishes, can be stored by longitude and latitude of the area identification to boundary point.Fig. 3 is this
A kind of display schematic diagram for presetting database that inventive embodiments provide.As shown in figure 3, as unit of region, by preset data
Library is divided into N number of subdata base, and each subdata base indicates a region, then deposits all boundary points in each region
Storage is in corresponding region.It in actual operation, can be as unit of a province, by all sides in cities all in the province and all counties
The longitude and latitude of boundary's point all stores in an area identification.For example, the area identification of Tianjin is region 1, the region in Hebei province is marked
Knowing is region 2, and so on, etc..Certainly, the setting of the area identification of each province can be set according to the actual situation.
Then the longitude and latitude of the boundary point in each area in Tianjin and the boundary point in each city and each county in Hebei province are obtained
Longitude and latitude, and the longitude and latitude of the boundary point in areas all in Tianjin is saved in the memory space in region 1, and by Hebei province
The longitude and latitude of the boundary point in each county such as each city such as middle Shijiazhuang City, Xingtai City or even Xingtai City Wei County is saved in region 2
In memory space, in order to directly determine the corresponding province in client place target area, city and county according to area identification.When
So, can also be on the basis of as unit of Yi Sheng, the city Zai Yi or county are unit, each subdata base divided again,
Its division rule can be identical as the division rule as unit of saving.
Certainly, in the practical operation that position determines, can also there be client in the borderline situation of target area.For
Whether determining client is on the boundary of target area, and on the basis of the above embodiments, the method that position determines further includes
Step S160-S170:
S160, the longitude and latitude of all boundary points on the longitude and latitude of client and the target area prestored is compared.
It in embodiment, will be on the longitude and latitude and all areas of the client after getting the longitude and latitude of client
The longitudes and latitudes of all boundary points be compared analysis.
S170, the longitude and latitude of client are identical with the longitude and latitude of a boundary point on the target area that prestores, determine visitor
Family end is on the boundary of target area.
In embodiment, if the longitude and latitude phase of a boundary point on the longitude and latitude of client and the target area prestored
Together, so that it may determine the client on the boundary of the target area.
It on the basis of the above embodiments, can be by the position of client on default ground after determining the position of client
It is shown on figure.Therefore, the location determining method further includes step S180:
S180, the current location information of client is shown on default map.
Fig. 4 is a kind of display schematic diagram of the current location information of client provided in an embodiment of the present invention.Such as Fig. 4 institute
Show, includes four different zones on default map, and the shape in each region is also different.Assuming that client is current
Position is the position where D point, and according to the location determining method in above-described embodiment, determines client in a heptagon
Region in, then client D point is shown on default map, to prompt specific location locating for user client.Its
In, the location of D point is shown with a black circle in Fig. 4, certainly, shows the location of D point on default map
When, a certain range of information where D point can also be shown on default map.Certainly, in order to which the user that is more convenient for sees
The location of D point is observed, the location of D point can also be subjected to flashing displaying on default map.
Fig. 5 is the flow chart of another location determining method provided in an embodiment of the present invention.The present embodiment is in above-mentioned reality
On the basis of applying example, as a preferred embodiment, location determining method is specifically described.Referring to Fig. 5, which is determined
Method specifically comprises the following steps:
S210, the current location information for obtaining client.
Wherein, current location information includes the longitude and latitude of client.
S220, the longitude and latitude of all boundary points on the longitude and latitude of client and the target area prestored is compared.
Whether the longitude and latitude of S230, the longitude and latitude of client and a boundary point on the target area that prestores are identical, if
It is to execute step S240;If it is not, executing step S250.
S240, determine client on the boundary of target area.
Two adjacent boundary points on target area that S250, acquisition prestore.
It should be noted that the longitude and latitude of all boundary points in several regions is preserved in the preset database,
When obtaining two adjacent boundary points on the target area prestored, adjacent boundary point is obtained as unit of region.It is false
If preserving the longitude and latitude of all boundary points in 10 regions in the preset database, area identification is respectively region 1, region
2, region 3 ... region 10.When for the first time from the two adjacent boundary points obtained in presetting database on the target area prestored,
Two adjacent boundary points on one of region can be obtained at random, for example, obtaining area identification is any two on region 2
Adjacent boundary point, then successively executes subsequent step, if complete area identification 2 in all boundary points longitude and latitude acquisition it
Afterwards, the position for not determining client yet, then from two on the other regions obtained at random in presetting database in addition to region 2
Adjacent boundary point, and so on, the longitude and latitude of all boundary points in all areas is obtained as unit of region, until determining client
Until the position at end.
S260, client longitude whether between the longitude of the two adjacent boundary points in the target area prestored, if so, holding
Row step S270;If it is not, executing step S250.
S270, the latitude for obtaining actual boundary point between two adjacent boundary points.
S280, actual boundary point latitude be greater than whether the number of latitude of client is odd number, if so, executing step
S290;If it is not, executing step S2100.
S290, determine client in target area.
S2100, determine client outside target area.Certainly, in the actual operation process, there are clients in target area
Overseas situation.Fig. 6 is the display schematic diagram that another position provided in an embodiment of the present invention determines.Fig. 6 is on the basis of Fig. 2
On, the position of client is moved, the specific explanations in above-described embodiment are shown in the meaning of A point, B point and P point, herein not
It repeats again.As shown in fig. 6, the boundary intersection of C point and target area, i.e. there are two the total numbers of P point, and actual boundary point
The number that latitude is greater than the latitude of client is even number, then C point is outside target area, i.e., client is outside target area.
It should be noted that during the position to client is determined, it is first determined the client is
It is no at this inside the province, if whether client inside the province, then by location determining method determines client in the tool inside the province at this
Then body city determines in the specific county of the city again, then determine the specific location of client again.
The technical solution of the present embodiment, on the basis of above scheme, by obtaining working as the longitude and latitude comprising client
Front position information, if the longitude of client obtains two between the longitude of the two adjacent boundary points in the target area prestored
The latitude of actual boundary point between a adjacent boundary point;It is greater than the number of the latitude of client according to the latitude of actual boundary point,
Client is determined whether in target area, realizes and first determines that client in provincial range, then goes to traverse this inside the province again
All cities, determine client within the scope of city-level, then go to all counties for traversing the city again, determine client in model at county level
In enclosing, the specific location of the client is finally determined, realize without obtaining longitude and latitude all in target area, and be not necessarily to
Outer net is the accurate determination that can guarantee to client location.
Fig. 7 is a kind of structural block diagram of position determining means provided in an embodiment of the present invention.The position of the present embodiment determines
Device is configured in server, and with reference to Fig. 7, which includes: that the first acquisition module 310, second obtains module
320 and first determining module 330.
Wherein, first module 310 is obtained, for obtaining the current location information of client, the current location information packet
Include the longitude and latitude of client;
Second obtains module 320, if the longitude for client is in the adjacent boundary point of the target area prestored two
Between longitude, then the latitude of actual boundary point between two adjacent boundary points is obtained;
First determining module 330, the number of the latitude for being greater than client according to the latitude of actual boundary point, determines visitor
Whether family end is in target area.
Technical solution provided in this embodiment, by obtaining the current location information of the longitude and latitude comprising client, if
The longitude of client then obtains between two adjacent boundary points between the longitude of the two adjacent boundary points in the target area prestored
The latitude of actual boundary point;According to the latitude of actual boundary point be greater than client latitude number, determine client whether
In target area, realize without obtaining longitude and latitude all in target area, and can guarantee to client without outer net
The accurate determination of position.
On the basis of the above embodiments, the latitude for obtaining actual boundary point between two adjacent boundary points, is specifically used for:
The latitude of actual boundary intersection point is determined according to the longitude and latitude of the longitude of client and two adjacent boundary points.
On the basis of the above embodiments, described device, further includes:
Comparison module, for by the longitude and latitude of all boundary points on the longitude and latitude of client and the target area that prestores into
Row compares;
Second determining module, the longitude and latitude of a boundary point on the longitude and latitude of client and the target area that prestores
It is identical, determine client on the boundary of target area.
On the basis of the above embodiments, first determining module, comprising:
First judges determination unit, if the number that the latitude for actual boundary point is greater than the latitude of client is odd number,
Then client is in the target area;
Second judges determination unit, if the number that the latitude for actual boundary point is greater than the latitude of client is even number,
Then client is outside the target area.
On the basis of the above embodiments, described device, further includes:
Third obtains module, for before the current location information for obtaining client, obtaining all areas on default map
The longitude and latitude of all boundary points in domain;
Preserving module, for the longitude and latitude of all boundary points to be saved in presetting database.
On the basis of the above embodiments, described device, further includes:
Display module, for showing the current location information of client in default map.
Location determining method provided by any embodiment of the invention can be performed in above-mentioned position determining means, has the side of execution
The corresponding functional module of method and beneficial effect.
Fig. 8 is a kind of structural schematic diagram of terminal device provided in an embodiment of the present invention.With reference to Fig. 8, the terminal device packet
It includes: processor 410, memory 420, input unit 430 and output device 440.The quantity of processor 410 in the terminal device
It can be one or more, in Fig. 8 by taking a processor 410 as an example.The quantity of memory 420 can be in the terminal device
One or more, in Fig. 8 by taking a memory 420 as an example.Processor 410, memory 420, the input dress of the terminal device
Set 430 and output device 440 can be connected by bus or other modes, in Fig. 8 for through bus connection.Implement
In example, which is server.
Memory 420 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, the corresponding program instruction/module of terminal device as described in any embodiment of that present invention is (for example, position determines
First in device, which obtains module 310, second, obtains module 320 and the first determining module 330).Memory 420 can mainly include
Storing program area and storage data area, wherein storing program area can application journey needed for storage program area, at least one function
Sequence;Storage data area, which can be stored, uses created data etc. according to equipment.In addition, memory 420 may include high speed with
Machine access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or its
His non-volatile solid state memory part.In some instances, memory 420 can further comprise long-range relative to processor 410
The memory of setting, these remote memories can pass through network connection to equipment.The example of above-mentioned network includes but is not limited to
Internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 430 can be used for receiving the number or character information of input, and generate the user setting with equipment
And the related key signals input of function control, it can also be the camera for obtaining image and obtain picking up for audio data
Sound equipment.Output device 440 may include the audio frequency apparatuses such as loudspeaker.It should be noted that input unit 430 and output device
440 concrete composition may be set according to actual conditions.
Software program, instruction and the module that processor 410 is stored in memory 420 by operation, thereby executing setting
Standby various function application and data processing, that is, realize above-mentioned location determining method.
The terminal device of above-mentioned offer can be used for executing the location determining method that above-mentioned any embodiment provides, and have corresponding
Function and beneficial effect.
The embodiment of the present invention also provides a kind of storage medium comprising computer executable instructions, and the computer is executable
Instruction by computer processor when being executed for executing a kind of location determining method, comprising:
The current location information of client is obtained, which includes the longitude and latitude of client;
If the longitude of client between the longitude of the two adjacent boundary points in the target area prestored, obtains two phases
The latitude of actual boundary point between adjacent boundary point;
It is greater than the number of the latitude of client according to the latitude of actual boundary point, determines client whether in target area
It is interior.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention
The location determining method operation that executable instruction is not limited to the described above, can also be performed provided by any embodiment of the invention
Relevant operation in location determining method, and have corresponding function and beneficial effect.
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 robot, personal computer, server or the network equipment etc.) executes position described in any embodiment of that present invention
Set determining method.
It is worth noting that, included each unit and module are only patrolled according to function in above-mentioned position determining means
It volume is divided, but is not limited to the above division, as long as corresponding functions can be realized;In addition, each function list
The specific name of member is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned
In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage
Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware
Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal
Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example
Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not
Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any
One or more embodiment or examples in can be combined in any suitable manner.
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.
Claims (10)
1. a kind of location determining method characterized by comprising
The current location information of client is obtained, the current location information includes the longitude and latitude of client;
If the longitude of the client obtains described two between the longitude of the two adjacent boundary points in the target area prestored
The latitude of actual boundary point between a adjacent boundary point;
It is greater than the number of the latitude of the client according to the latitude of the actual boundary point, determines the client whether in institute
It states in target area.
2. location determining method according to claim 1, which is characterized in that obtain real between described two adjacent boundary points
The latitude of border boundary point, comprising:
The latitude of the actual boundary intersection point is determined according to the longitude and latitude of the longitude of the client and described two adjacent boundaries point
Degree.
3. location determining method according to claim 1, which is characterized in that further include:
The longitude and latitude of all boundary points on the longitude and latitude of the client and the target area prestored is compared;
The longitude and latitude of the client is identical with the longitude and latitude of a boundary point on the target area prestored, determines the client
End is on the boundary of target area.
4. location determining method according to claim 1, which is characterized in that be greater than according to the latitude of the actual boundary point
Whether the number of the latitude of the client determines the client in the target area, comprising:
If the number that the latitude of the actual boundary point is greater than the latitude of the client is odd number, the client is described
In target area;
If the number that the latitude of the actual boundary point is greater than the latitude of the client is even number, the client is described
Outside target area.
5. location determining method according to claim 1, which is characterized in that obtain client current location information it
Before, further includes:
Obtain the longitude and latitude of all boundary points of all areas on default map;
The longitude and latitude of all boundary points is saved in presetting database.
6. location determining method according to claim 5, which is characterized in that further include:
The current location information of client is shown on default map.
7. a kind of position determining means characterized by comprising
First obtains module, and for obtaining the current location information of client, the current location information includes the warp of client
Latitude;
Second obtain module, if for the client longitude the two adjacent boundary points in the target area prestored longitude
Between, then obtain the latitude of actual boundary point between described two adjacent boundary points;
First determining module, the number of the latitude for being greater than the client according to the latitude of the actual boundary point, determines
Whether the client is in the target area.
8. position determining means according to claim 7, which is characterized in that further include:
Comparison module, for by the longitude and latitude of all boundary points on the longitude and latitude of the client and the target area that prestores into
Row compares;
Second determining module, the longitude and latitude of a boundary point on the longitude and latitude of the client and the target area that prestores
It is identical, determine the client on the boundary of target area.
9. a kind of terminal device characterized by comprising memory and one or more processors;
The memory, 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 processors are real
Now such as location determining method as claimed in any one of claims 1 to 6.
10. a kind of storage medium comprising computer executable instructions, which is characterized in that the computer executable instructions by
For executing such as location determining method as claimed in any one of claims 1 to 6 when computer processor executes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811592511.1A CN109613577B (en) | 2018-12-25 | 2018-12-25 | Position determination method, device, terminal equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811592511.1A CN109613577B (en) | 2018-12-25 | 2018-12-25 | Position determination method, device, terminal equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109613577A true CN109613577A (en) | 2019-04-12 |
CN109613577B CN109613577B (en) | 2021-07-09 |
Family
ID=66011580
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811592511.1A Active CN109613577B (en) | 2018-12-25 | 2018-12-25 | Position determination method, device, terminal equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109613577B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110389994A (en) * | 2019-07-17 | 2019-10-29 | 拉扎斯网络科技(上海)有限公司 | Data processing method and device, positioning method, storage medium and electronic equipment |
CN110569546A (en) * | 2019-08-06 | 2019-12-13 | 苏州科达科技股份有限公司 | Traffic cell division method and device |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6429979A (en) * | 1987-07-24 | 1989-01-31 | Mitsubishi Electric Corp | Device for deciding inside and outside of graphic frame |
JPH06150004A (en) * | 1992-11-12 | 1994-05-31 | Fujitsu Ltd | Direction deciding ytem for apex line of polygon |
JPH11144041A (en) * | 1997-11-13 | 1999-05-28 | Canon Inc | Method for deciding inside/outside of area |
CN101882154A (en) * | 2010-06-11 | 2010-11-10 | 北京高森明晨信息科技有限公司 | Positioning method and system |
CN105868826A (en) * | 2015-01-23 | 2016-08-17 | 中兴通讯股份有限公司 | Method and device for determination of position relation |
CN105989024A (en) * | 2015-01-30 | 2016-10-05 | 北京陌陌信息技术有限公司 | Method and device for determining location area of user |
CN106097402A (en) * | 2016-06-20 | 2016-11-09 | 深圳市麦谷科技有限公司 | A kind of method and system judging whether impact point is positioned at presumptive area |
CN106932805A (en) * | 2017-01-20 | 2017-07-07 | 广东侨兴宇航科技有限公司 | It is a kind of to be suitable to the swift electron fence method of mobile device application |
CN107635284A (en) * | 2017-11-14 | 2018-01-26 | 北京锐安科技有限公司 | A kind of wireless location method, device, equipment and storage medium |
CN108268821A (en) * | 2016-12-30 | 2018-07-10 | 中国移动通信集团黑龙江有限公司 | A kind of indoor and outdoor scene recognition method and device |
CN108763345A (en) * | 2018-05-14 | 2018-11-06 | 平安好房(上海)电子商务有限公司 | Method of calibration, user equipment, storage medium and the device of cell longitude and latitude |
-
2018
- 2018-12-25 CN CN201811592511.1A patent/CN109613577B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS6429979A (en) * | 1987-07-24 | 1989-01-31 | Mitsubishi Electric Corp | Device for deciding inside and outside of graphic frame |
JPH06150004A (en) * | 1992-11-12 | 1994-05-31 | Fujitsu Ltd | Direction deciding ytem for apex line of polygon |
JPH11144041A (en) * | 1997-11-13 | 1999-05-28 | Canon Inc | Method for deciding inside/outside of area |
CN101882154A (en) * | 2010-06-11 | 2010-11-10 | 北京高森明晨信息科技有限公司 | Positioning method and system |
CN105868826A (en) * | 2015-01-23 | 2016-08-17 | 中兴通讯股份有限公司 | Method and device for determination of position relation |
CN105989024A (en) * | 2015-01-30 | 2016-10-05 | 北京陌陌信息技术有限公司 | Method and device for determining location area of user |
CN106097402A (en) * | 2016-06-20 | 2016-11-09 | 深圳市麦谷科技有限公司 | A kind of method and system judging whether impact point is positioned at presumptive area |
CN108268821A (en) * | 2016-12-30 | 2018-07-10 | 中国移动通信集团黑龙江有限公司 | A kind of indoor and outdoor scene recognition method and device |
CN106932805A (en) * | 2017-01-20 | 2017-07-07 | 广东侨兴宇航科技有限公司 | It is a kind of to be suitable to the swift electron fence method of mobile device application |
CN107635284A (en) * | 2017-11-14 | 2018-01-26 | 北京锐安科技有限公司 | A kind of wireless location method, device, equipment and storage medium |
CN108763345A (en) * | 2018-05-14 | 2018-11-06 | 平安好房(上海)电子商务有限公司 | Method of calibration, user equipment, storage medium and the device of cell longitude and latitude |
Non-Patent Citations (3)
Title |
---|
周培德: "判定点是否在多边形内部的算法", 《北京理工大学学报》 * |
方剑英等: "关于点与简单多边形位置关系的一种算法", 《新疆师范大学学报(自然科学版)》 * |
董秀山等: "判断点与简单多边形位置关系的新算法", 《计算机工程与应用》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110389994A (en) * | 2019-07-17 | 2019-10-29 | 拉扎斯网络科技(上海)有限公司 | Data processing method and device, positioning method, storage medium and electronic equipment |
CN110569546A (en) * | 2019-08-06 | 2019-12-13 | 苏州科达科技股份有限公司 | Traffic cell division method and device |
CN110569546B (en) * | 2019-08-06 | 2022-07-01 | 苏州科达科技股份有限公司 | Traffic cell division method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109613577B (en) | 2021-07-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109002451B (en) | Map data thinning method and device | |
US11796686B2 (en) | Positioning data processing method and processing apparatus, computing device, and storage medium | |
CN111460071B (en) | Deflection method, deflection device, deflection equipment and readable storage medium for high-precision map | |
US8996551B2 (en) | Managing geographic region information | |
KR102042773B1 (en) | Method to select subset of tracking satellites for receiver of satellite navigational system, and receiver, system, and apparatus therewith | |
US20130127852A1 (en) | Methods for providing 3d building information | |
CN109613577A (en) | A kind of location determining method, device, terminal device and storage medium | |
JP6804806B2 (en) | Positioning accuracy information calculation device and positioning accuracy information calculation method | |
US20150199383A1 (en) | Systems and Methods for Indexing and Retrieving Images | |
KR101782873B1 (en) | Method for selecting data files for downloading | |
US11334547B2 (en) | Data-oblivious copying from a first array to a second array | |
JP5746831B2 (en) | Coordinate transformation device, coordinate transformation method and program | |
CN108958462A (en) | A kind of methods of exhibiting and device of virtual objects | |
CN107688189B (en) | GPS longitude and latitude coordinate calibration method and device and mobile motion equipment | |
CN105021181A (en) | Method and device for determining electronic map drawing area and navigation device | |
KR102136855B1 (en) | Method and apparatus for providing street view, and computer program for executing the method | |
CN105447911B (en) | 3D map fusion method and device and electronic equipment | |
CN112770326B (en) | LoRa gateway deployment method, device, equipment and storage medium | |
CN108055638A (en) | Obtain method, apparatus, computer-readable medium and the equipment of target location | |
CN112051921A (en) | AR navigation map generation method and device, computer equipment and readable storage medium | |
Golenbiewski et al. | Implementation of an indoor positioning system using the WKNN Algorithm | |
CN111241215A (en) | Data visualization method and system based on vehicle-mounted terminal, storage medium and vehicle-mounted terminal | |
CN113920281A (en) | Space planning method and system in virtual reality environment and application method | |
CN111091581B (en) | Pedestrian track simulation method, device and storage medium based on generation countermeasure network | |
US10451429B2 (en) | Generalization factor based generation of navigation data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |