CN106341885A - Method for obtaining positioning information - Google Patents

Method for obtaining positioning information Download PDF

Info

Publication number
CN106341885A
CN106341885A CN201610907144.4A CN201610907144A CN106341885A CN 106341885 A CN106341885 A CN 106341885A CN 201610907144 A CN201610907144 A CN 201610907144A CN 106341885 A CN106341885 A CN 106341885A
Authority
CN
China
Prior art keywords
data
location information
location
upload
server
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
CN201610907144.4A
Other languages
Chinese (zh)
Inventor
张作勇
崔卫洁
陈家制
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangxi Borui Tongyun Technology Co Ltd
Original Assignee
Jiangxi Borui Tongyun 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 Jiangxi Borui Tongyun Technology Co Ltd filed Critical Jiangxi Borui Tongyun Technology Co Ltd
Priority to CN201610907144.4A priority Critical patent/CN106341885A/en
Publication of CN106341885A publication Critical patent/CN106341885A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/003Locating users or terminals or network equipment for network management purposes, e.g. mobility management locating network equipment
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management
    • H04W64/006Locating users or terminals or network equipment for network management purposes, e.g. mobility management with additional information processing, e.g. for direction or speed determination

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides a method for obtaining positioning information. The method includes the steps of obtaining first positioning data of a user terminal on a first position at the current moment, detecting the average moving rate of the user terminal within a first preset time after the current moment, obtaining second positioning data of the user terminal on a second position at the next moment after an interval of the first preset time, determining the distance between the first position and the second position according to the first positioning data and the second positioning data, determining that the second positioning data are effective positioning data if the distance is no greater than the product of the average moving rate and the first preset time, adding the second positioning data to a positioning data set, processing the effective positioning data in the positioning data set to generate positioning information uploading data, uploading the positioning information uploading data to a server, and the server parsing the positioning information uploading data to obtain effective positioning data and user information.

Description

The acquisition methods of location information
Technical field
The present invention relates to communication technical field, more particularly, to a kind of acquisition methods of location information.
Background technology
Mobile phone positioning system, refers to obtain the positional information of cell phone or terminal use by specific location technology (latitude and longitude coordinates), mark technology or the service of the position being positioned object on electronic chart.
The location technology commonly used at present has two kinds, and one kind is based on global positioning system (global positioning System, gps) positioning, a kind of be the base station based on mobile operation network positioning.It is to utilize handss based on the positioning mode of gps The position signalling of oneself is sent to positioning backstage to realize mobile phone positioning by the gps locating module on machine.Architecture is then Measuring and calculating distance using the distance to mobile phone for the base station determines mobile phone location.The latter does not need mobile phone to have gps stationkeeping ability, But precision depends greatly on the distribution of base station and the size of coverage, there is time error can exceed one kilometer.In order to full The requirement of sufficient positioning precision, generally by the way of gps positioning is used as obtaining location information.
Having become as the daily requisite mobile phone of people with services such as the motion monitoring of Mobile Location Technology, navigation should With function, if location information is inaccurate, directly influence service returns results, therefore how to obtain effective location information and become For needing the key issue considering.
Content of the invention
The purpose of the present invention is the defect for prior art, provides a kind of acquisition methods of location information, by logarithm According to carrying out effectiveness examination and filtration it is ensured that the location information obtaining is effective location information, set up rational data simultaneously Transmission intercal, that is, ensure that the safety of the promptness data transmission of data transfer, in turn ensure that the normal fortune of user terminal Line efficiency.
In view of this, a kind of acquisition methods of location information are embodiments provided, comprising:
Obtain the first location data of primary importance residing in current time for the user terminal;
Detect in the first Preset Time after described current time, the average rate travel of described user terminal;
After being spaced the first Preset Time, obtain the second position residing in subsequent time for the described user terminal second is fixed Position data;Time interval between described subsequent time and described current time is described first Preset Time;
Described primary importance and the described second position are determined according to described first location data and described second location data Between spacing distance;
If described spacing distance is not more than the product of described average rate travel and described first Preset Time, determine institute Stating the second location data is effective location data;
Described second location data is added location data set;Described location data set is stored in described user terminal Local data base in;
Effective location data in described location data set is processed, generates location information and upload data;Described Location information uploads the user profile that data includes described user terminal;
Described location information upload data is uploaded onto the server;
Described server uploads data to described location information and parses, and obtains described effective location data and described use Family information;
Described server carries out respective stored according to described user profile, effective location data that described parsing is obtained.
Preferably, the described location information by described location data set upload data upload onto the server particularly as follows:
Determine whether the quantity of effective location data in described location data set reaches predetermined threshold value;
When reaching predetermined threshold value, described location information upload data is uploaded onto the server.
It is further preferred that the described quantity determining effectively location data in described location data set whether reach default Also include after threshold value:
When being not reaching to predetermined threshold value, using the described second position as current time residing for primary importance, interval Continue after first Preset Time to obtain the location data of subsequent time.
Preferably, after the described spacing distance determining between described primary importance and the described second position, described side Method also includes:
Using the described second position as current time residing for primary importance, interval the first Preset Time after continue to obtain Take the location data of subsequent time.
Preferably, described by described location information upload data upload onto the server before, methods described also includes:
Detect whether the network connection state of described user terminal is normal;
If detection is normal, described location information upload data is uploaded onto the server;
If detection is abnormal, data is uploaded to described location information and stores.
It is further preferred that uploading after data stores to described location information described, methods described also includes:
Monitor the network connection state of described user terminal, when monitoring that network connection is normal, storage is described fixed Position information uploads data and uploads to described server.
Preferably, described by described location information upload data upload onto the server after, methods described also includes:
The successful response message of upload that the reception server sends;
According to described response message, delete the effective location data in described location data set.
Preferably, described by described location information upload data upload onto the server after, methods described also includes:
The response message of the upload failure that the reception server sends;
According to described response message, upload described location information to described server again and upload data.
It is further preferred that methods described also includes:
When the described number of times uploading failure reaches predetermined threshold value, described location information is uploaded data in described user eventually Stored in end, and stop continuing to upload described location information upload data.
Preferably, described effective location data is specially longitude and latitude degrees of data.
The acquisition methods of location information provided in an embodiment of the present invention, by effectiveness examination and filtration are carried out to data, Guarantee that the location information obtaining is effective location information, set up rational data transfer interval simultaneously, that is, ensure that data passes The safety of defeated promptness data transmission, in turn ensure that the up-time efficiency of user terminal.
Brief description
Fig. 1 is the structural representation of the acquisition methods of location information provided in an embodiment of the present invention.
Specific embodiment
Below by drawings and Examples, technical scheme is described in further detail.
The acquisition methods of location information provided in an embodiment of the present invention, are applied in user terminal, such as smart mobile phone, flat Plate computer etc..
Fig. 1 is the acquisition methods flow chart of location information provided in an embodiment of the present invention, as shown in Figure 1, comprising:
Step 101, obtains the first location data of primary importance residing in current time for the user terminal;
Specifically, the acquisition of location data is preferably realized using the positioning mode of gps.Location data can be user The latitude and longitude information of terminal position.
Step 102, in the first Preset Time after detection current time, the average rate travel of user terminal;
Specifically, the first Preset Time is the sample frequency of location data.
In a preferred example, user terminal carries out one-time positioning every 30s.Carry out one-time positioning every 30s, both Will not can obtain more accurately location data greatly very much by power consumption again.
Step 103, after the first Preset Time of interval, obtains the of the second position residing in subsequent time for the user terminal Two location datas;
Specifically, the time interval between subsequent time and current time is the first Preset Time, i.e. the sampling time.
Step 104, between determining between primary importance and the second position according to the first location data and the second location data Gauge from;
Specifically, after obtaining the latitude and longitude information of double sampling, the interval between double sampling can be calculated Distance.Here calculated spacing distance, is the beeline between double sampling position, i.e. air line distance, and not uses The length of actual shiftable haulage line in the first Preset Time for the family terminal.
Step 105, according to spacing distance, whether judge the second location data is effective location data;
Specifically, if spacing distance is not more than the product of average rate travel and the first Preset Time, determine that second is fixed Position data is effective location data, continues executing with step 106;Otherwise determine that the second location data is invalid location data, then not Record this time positions in the local database.Execution step 120.
This is because, spacing distance is the beeline between double sampling position, and by average rate travel and What the product of one Preset Time calculated acquisition is the length of actual shiftable haulage line in the first Preset Time for the user terminal.Therefore Spacing distance is necessarily smaller than the length equal to actual shiftable haulage line, i.e. the product of average rate travel and the first Preset Time.
In preferred example, spacing distance is less than or equal to average rate travel × 30s.
Wherein, average rate travel can be calculated by the constantly rate travel that equipment Acceleration sensor measures.
Effectiveness screening is carried out to location data by this step, to ensure to only have valid data just can be recorded.Avoid The inaccurate various inconvenience that may bring to user of positioning causing because of various exceptions.
Step 106, when determining that the second location data is effective location data, the second location data is added location data Set;
Specifically, location data set is stored in the local data base of user terminal.
Step 107, the effective location data in location data set is processed, and generates location information and uploads data;
Specifically, location information uploads the user profile that data includes user terminal.
The concrete grammar that effective location data is processed may include that and for effective location data to be converted into json lattice Formula, then the data after conversion is compressed, generate location information and upload data.
In the concrete scheme of the present embodiment, in order to take into account the efficiency data safety uploading data, and to user The occupancy of the data-interface of terminal, to effective location data preferably by the way of packet uploads, when in location data set When the quantity of effectively location data reaches some, unification is compressed processing and uploads.
In a specific embodiment, first, determine whether the quantity of effective location data in location data set reaches Predetermined threshold value;When reaching predetermined threshold value, location information upload data is uploaded onto the server.When being not reaching to predetermined threshold value When, execution step 120, using the second position as current time residing for primary importance, interval the first Preset Time follow-up The continuous location data obtaining subsequent time.
Such as it is stipulated that predetermined threshold value is 20, after adding effective location data in every time to location data set, judge The quantity of the effective location information in location data set, when the lazy weight 20 of location information effective in location data set When, execution step 120, using this second position as current time residing for primary importance, interval the first Preset Time after Continue to obtain the location data of subsequent time.
Step 108, location information upload data is uploaded onto the server;
Further, the network connection before location information upload data is uploaded onto the server, also to user terminal State is detected, detects whether the network connection state of described user terminal is normal;If detection is normal, by described positioning Information uploads data and uploads onto the server;If detection is abnormal, data is uploaded to described location information and stores.
Afterwards it is preferred that continuing to monitor the network connection state of described user terminal, when monitoring that network connection is normal When, the described location information of storage is uploaded data and uploads to described server.
Further, upload after data uploads onto the server in location information, server can send response message to To feed back location information, user terminal, uploads whether data uploads successfully.
If uploading successfully, user terminal after the successful response message of the upload that the reception server sends, according to sound Answer information, delete the effective location data in described location data set.
If uploading unsuccessfully, the response message of the upload failure that user terminal the reception server sends;According to described response Information, uploads described location information to described server again and uploads data.The number of times wherein again uploading can with preset rules, If such as regulation uploads unsuccessfully, more at most have three tries and again upload, if all not having for 3 times successfully, to be judged to network company Connect abnormal state.Described location information upload data is now stored in described user terminal by user terminal, and stops Continue to upload described location information upload data.
Further, after this, using the last second position obtaining as current time residing for primary importance, Continue to obtain the location data of subsequent time after the first Preset Time of interval, further obtain effective positioning of next group Data.
Step 109, server uploads data to location information and parses, and obtains effective location data and user profile;
Step 110, server carries out respective stored according to user profile, effective location data that parsing is obtained.
Specifically, compressed file is carried out decompression by server end, then according to what decompression was obtained by user profile Effectively location data is added in the data base of server.
Step 120, using this second position as current time residing for primary importance, interval the first Preset Time after Continue to obtain the location data of subsequent time.
Start to execute from step 102 more afterwards.Effective judgement is carried out to the location data obtaining next time.
The acquisition methods of location information provided in an embodiment of the present invention, by effectiveness examination and filtration are carried out to data, Guarantee that the location information obtaining is effective location information, set up rational data transfer interval simultaneously, that is, ensure that data passes The safety of defeated promptness data transmission, in turn ensure that the up-time efficiency of user terminal.
Professional should further appreciate that, each example describing in conjunction with the embodiments described herein Unit and algorithm steps, can be hard in order to clearly demonstrate with electronic hardware, computer software or the two be implemented in combination in Part and the interchangeability of software, generally describe composition and the step of each example in the above description according to function. These functions to be executed with hardware or software mode actually, the application-specific depending on technical scheme and design constraint. Professional and technical personnel can use different methods to each specific application realize described function, but this realization It is not considered that it is beyond the scope of this invention.
The step of the method in conjunction with the embodiments described herein description or algorithm can be with hardware, computing device Software module, or the combination of the two is implementing.Software module can be placed in random access memory (ram), internal memory, read only memory (rom), electrically programmable rom, electrically erasable rom, depositor, hard disk, moveable magnetic disc, cd-rom or technical field In interior known any other form of storage medium.
Above-described specific embodiment, has been carried out to the purpose of the present invention, technical scheme and beneficial effect further Describe in detail, be should be understood that the specific embodiment that the foregoing is only the present invention, be not intended to limit the present invention Protection domain, all any modification, equivalent substitution and improvement within the spirit and principles in the present invention, done etc., all should comprise Within protection scope of the present invention.

Claims (10)

1. a kind of acquisition methods of location information are it is characterised in that methods described includes:
Obtain the first location data of primary importance residing in current time for the user terminal;
Detect in the first Preset Time after described current time, the average rate travel of described user terminal;
After being spaced the first Preset Time, obtain the second positioning number of the second position residing in subsequent time for the described user terminal According to;Time interval between described subsequent time and described current time is described first Preset Time;
Determined between described primary importance and the described second position according to described first location data and described second location data Spacing distance;
If described spacing distance is not more than the product of described average rate travel and described first Preset Time, determine described the Two location datas are effective location data;
Described second location data is added location data set;Described location data set is stored in the basis of described user terminal In ground data base;
Effective location data in described location data set is processed, generates location information and upload data;Described positioning Information uploads the user profile that data includes described user terminal;
Described location information upload data is uploaded onto the server;
Described server uploads data to described location information and parses, and obtains described effective location data and described user letter Breath;
Described server carries out respective stored according to described user profile, effective location data that described parsing is obtained.
2. location information according to claim 1 acquisition methods it is characterised in that described by described location data set In location information upload data upload onto the server particularly as follows:
Determine whether the quantity of effective location data in described location data set reaches predetermined threshold value;
When reaching predetermined threshold value, described location information upload data is uploaded onto the server.
3. the acquisition methods of location information according to claim 2 are it is characterised in that described determination described location data collection In conjunction, the quantity of effective location data also includes after whether reaching predetermined threshold value:
When being not reaching to predetermined threshold value, using the described second position as current time residing for primary importance, interval first Continue after Preset Time to obtain the location data of subsequent time.
4. the acquisition methods of location information according to claim 1 are it is characterised in that determine described primary importance described After spacing distance and the described second position between, methods described also includes:
Using the described second position as current time residing for primary importance, interval the first Preset Time after continue obtain under The location data in one moment.
5. the acquisition methods of location information according to claim 1 are it is characterised in that described upload described location information Before data is uploaded onto the server, methods described also includes:
Detect whether the network connection state of described user terminal is normal;
If detection is normal, described location information upload data is uploaded onto the server;
If detection is abnormal, data is uploaded to described location information and stores.
6. the acquisition methods of location information according to claim 5 are it is characterised in that described in described location information After biography data is stored, methods described also includes:
Monitor the network connection state of described user terminal, when monitoring that network connection is normal, by the described positioning letter of storage Breath uploads data and uploads to described server.
7. the acquisition methods of location information according to claim 1 are it is characterised in that described upload described location information After data is uploaded onto the server, methods described also includes:
The successful response message of upload that the reception server sends;
According to described response message, delete the effective location data in described location data set.
8. the acquisition methods of location information according to claim 1 are it is characterised in that described upload described location information After data is uploaded onto the server, methods described also includes:
The response message of the upload failure that the reception server sends;
According to described response message, upload described location information to described server again and upload data.
9. the acquisition methods of location information according to claim 8 are it is characterised in that methods described also includes:
When the described number of times uploading failure reaches predetermined threshold value, described location information is uploaded data in described user terminal Stored, and stop continuing to upload described location information upload data.
10. the acquisition methods of location information according to claim 1 are it is characterised in that described effective location data is concrete For longitude and latitude degrees of data.
CN201610907144.4A 2016-10-18 2016-10-18 Method for obtaining positioning information Pending CN106341885A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610907144.4A CN106341885A (en) 2016-10-18 2016-10-18 Method for obtaining positioning information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610907144.4A CN106341885A (en) 2016-10-18 2016-10-18 Method for obtaining positioning information

Publications (1)

Publication Number Publication Date
CN106341885A true CN106341885A (en) 2017-01-18

Family

ID=57839967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610907144.4A Pending CN106341885A (en) 2016-10-18 2016-10-18 Method for obtaining positioning information

Country Status (1)

Country Link
CN (1) CN106341885A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107144280A (en) * 2017-05-10 2017-09-08 深圳市沃特沃德股份有限公司 The method and apparatus for recognizing anchor point
CN107566500A (en) * 2017-09-11 2018-01-09 珠海市魅族科技有限公司 The sending method and relevant apparatus of a kind of position location
CN108566426A (en) * 2018-04-13 2018-09-21 南京粒聚智能科技有限公司 A kind of GPS data processing method of terminal and system interaction
CN114245306A (en) * 2021-12-14 2022-03-25 深圳市融纳海川科技有限公司 Method, device and system for positioning correction
CN115002650A (en) * 2021-12-08 2022-09-02 丰疆智能(深圳)有限公司 Data transmission method, device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103052151A (en) * 2011-10-14 2013-04-17 中国电信股份有限公司 Terminal positioning method and device as well as mobile terminal
US20140070986A1 (en) * 2012-09-10 2014-03-13 O2Micro Inc. Apparatuses and methods for tracking a navigation receiver
CN104581628A (en) * 2014-12-11 2015-04-29 北京智慧图科技有限责任公司 Method and device for establishing corresponding relationship list of positions and characteristic signals
CN104677361A (en) * 2015-01-27 2015-06-03 福州华鹰重工机械有限公司 Comprehensive positioning method
CN104780605A (en) * 2015-03-17 2015-07-15 北京搜狗科技发展有限公司 Terminal location method and terminal location device
CN104994138A (en) * 2015-06-02 2015-10-21 上海天奕无线信息科技有限公司 Positioning device, positioning system and data transmission method
CN105992259A (en) * 2015-02-12 2016-10-05 阿里巴巴集团控股有限公司 Method and device for positioning detection

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103052151A (en) * 2011-10-14 2013-04-17 中国电信股份有限公司 Terminal positioning method and device as well as mobile terminal
US20140070986A1 (en) * 2012-09-10 2014-03-13 O2Micro Inc. Apparatuses and methods for tracking a navigation receiver
CN104581628A (en) * 2014-12-11 2015-04-29 北京智慧图科技有限责任公司 Method and device for establishing corresponding relationship list of positions and characteristic signals
CN104677361A (en) * 2015-01-27 2015-06-03 福州华鹰重工机械有限公司 Comprehensive positioning method
CN105992259A (en) * 2015-02-12 2016-10-05 阿里巴巴集团控股有限公司 Method and device for positioning detection
CN104780605A (en) * 2015-03-17 2015-07-15 北京搜狗科技发展有限公司 Terminal location method and terminal location device
CN104994138A (en) * 2015-06-02 2015-10-21 上海天奕无线信息科技有限公司 Positioning device, positioning system and data transmission method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107144280A (en) * 2017-05-10 2017-09-08 深圳市沃特沃德股份有限公司 The method and apparatus for recognizing anchor point
CN107144280B (en) * 2017-05-10 2020-02-04 深圳市沃特沃德股份有限公司 Method and device for identifying positioning point
CN107566500A (en) * 2017-09-11 2018-01-09 珠海市魅族科技有限公司 The sending method and relevant apparatus of a kind of position location
CN108566426A (en) * 2018-04-13 2018-09-21 南京粒聚智能科技有限公司 A kind of GPS data processing method of terminal and system interaction
CN115002650A (en) * 2021-12-08 2022-09-02 丰疆智能(深圳)有限公司 Data transmission method, device and storage medium
CN114245306A (en) * 2021-12-14 2022-03-25 深圳市融纳海川科技有限公司 Method, device and system for positioning correction

Similar Documents

Publication Publication Date Title
CN106341885A (en) Method for obtaining positioning information
CN111885502B (en) Epidemic situation prevention and control early warning and tracing system and method for protecting privacy
CN109509327B (en) Abnormal behavior early warning method and device
CN109143148B (en) Method for determining and comparing paths of users in a building
JP6452250B2 (en) System and method for measuring congestion of people in one place
US9277431B1 (en) System, method, and computer program for generating mobile subscriber network experience indicators based on geo-located events
CN103517304B (en) A kind of method and device obtaining secure status of mobile terminal
WO2017075962A1 (en) Device for examining air quality, method for processing air quality data and server
CN107358410A (en) A kind of employee work attendance method based on mobile terminal, apparatus and system
EP2863692A3 (en) Method and apparatus for using historic network information for determining approximate position
CN104954981A (en) Method and device for determining safety position
JP2015528265A5 (en)
US20140120862A1 (en) Cloud server and method of emergency response service
CN104950318A (en) Power-saving method for GPS (global position system) positioning module and mobile device
CN103354020A (en) Cloud technology based air quality remote monitoring system
JP2014524023A5 (en)
US8339316B1 (en) Smart GPS use
AU2016200233A1 (en) Global-positioning system (GPS) update interval based on sensor data
CN109462818A (en) A kind of method, apparatus and terminal of identification user trip track
CN212433949U (en) Electric energy meter with working environment detection function
EP2416549A1 (en) Mobile unit, communication system, and communication method
CN101521928A (en) Positioned mobile alarm method and system based on mobile network
CN102932194A (en) Bayes method-based Internet application service monitoring system and method
CN203931094U (en) Warning system
CN115550757A (en) Electric power distribution shaft tower monitoring and early warning system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170118