CN105677733A - Method and apparatus for finding GPS periphery - Google Patents

Method and apparatus for finding GPS periphery Download PDF

Info

Publication number
CN105677733A
CN105677733A CN201511017290.1A CN201511017290A CN105677733A CN 105677733 A CN105677733 A CN 105677733A CN 201511017290 A CN201511017290 A CN 201511017290A CN 105677733 A CN105677733 A CN 105677733A
Authority
CN
China
Prior art keywords
shape
gps
client terminal
server
judge
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.)
Withdrawn
Application number
CN201511017290.1A
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.)
Triple Win Technology Shenzhen Co Ltd
Original Assignee
SHENZHEN DXY 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 DXY TECHNOLOGY Co Ltd filed Critical SHENZHEN DXY TECHNOLOGY Co Ltd
Priority to CN201511017290.1A priority Critical patent/CN105677733A/en
Publication of CN105677733A publication Critical patent/CN105677733A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries

Abstract

The invention is adaptive to the field of network technology and provides a method and an apparatus for finding GPS periphery. The method includes the following steps: drawing a pre-set shape centering around a GPS position of a pre-set server; determining whether the GPS position of each client falls into the realm of the shape, if the GPS position of each client falls into the realm of the shape, the peripheral scope of the server where the user terminal resides is determined. The method and apparatus of the invention can reduce data computational complexity.

Description

Search method and the device of GPS periphery
Technical field
The invention belongs to network technology field, particularly relate to a kind of method and the device of searching GPS periphery.
Background technology
GPS (GlobalPositionSystem, global positioning system (GPS)) common apply to mobile terminal and configuration of automobiles, its topmost function is for user provides navigation Service, as long as user inputs point of destination in navigating instrument, system can automatically complete path of navigation and calculate, and advanced along the route preset by display screen and voice guiding in real time user in stroke way. In ecommerce, businessman needs to use GPS to be positioned client position in the process providing service, to determine whether this user provides service or provides service by the site in which region to client.
In prior art, businessman obtains the GPS location of client, by the distance of the position and client that calculate self, judges this distance whether in default scope, and when the data volume of user is many, greatly, speed of response is slow for the calculated amount causing data.
Summary of the invention
The object of the embodiment of the present invention is to provide a kind of method and device searching GPS periphery, it is intended to solve by searching the big problem of GPS perimeter data amount in prior art.
The embodiment of the present invention realizes like this, and a kind of method searching GPS periphery, described method comprises the steps:
Centered by the GPS location of a default server, draw a preset shape;
Judge in the scope whether GPS location of each client terminal falls into described shape, it is judge that described client terminal is in the peripheral extent of described server.
Further, described centered by the GPS location of a default server, draw a preset shape and specifically comprise:
Centered by the GPS location of described server, according to one or more default length value, calculate described shape at horizontal and vertical length value;
Described shape is described according to described horizontal and vertical length value.
Further, described judge it is judge that the peripheral extent that described client terminal is in described server specifically comprises in the scope whether GPS location of each client terminal falls into described shape:
Obtain the gps coordinate of multiple point on the frame of described shape;
The described gps coordinate of multiple point, the gps coordinate of described client terminal are converted into binary data or shape data;
Contrast binary data or the shape data of described multiple point and described client terminal, when difference is less than preset value, judge that described client terminal is in the peripheral extent of described server.
Further, described shape is square, circular or rectangle.
Further, when described shape is square, on the frame of described shape, the gps coordinate of multiple point is the coordinate figure on described four square summits.
The present invention also proposes a kind of device searching GPS periphery, and described device comprises:
Drafting module, for, centered by the GPS location of a default server, drawing a preset shape;
Judge module, whether fall into for judging the GPS location of each client terminal in the scope of described shape, be, judge that described client terminal is in the peripheral extent of described server.
Further, described drafting module comprises:
Calculate unit, for centered by the GPS location of described server, according to one or more default length value, calculate described shape at horizontal and vertical length value;
Describe unit, for describing described shape according to described horizontal and vertical length value.
Further, described judgement module comprises:
Acquiring unit, the gps coordinate of multiple point on the frame obtaining described shape;
Scaling unit, for being converted into binary data or shape data by the described gps coordinate of multiple point, the gps coordinate of described client terminal;
Contrast unit, for contrasting binary data or the shape data of described multiple point and described client terminal, when difference is less than preset value, judges that described client terminal is in the peripheral extent of described server.
Further, described shape is square, circular or rectangle.
Further, when described shape is square, on the frame of described shape, the gps coordinate of multiple point is the coordinate figure on described four square summits.
The embodiment of the present invention, by customer-centric, is drawn a shaped at user's periphery certain distance, is judged to be in user's GPS periphery for any point fallen in this form range, and the distance avoiding user and peripheral point calculates, and has saved the data volume calculated. And all data are all converted into scale-of-two or shaping calculates, and further save calculated amount, significantly reduce computing amount and the resource occupation of server, it is to increase accurate data degree.
Accompanying drawing explanation
Fig. 1 is the schema of the method searching GPS periphery that the embodiment of the present invention one provides;
Fig. 2 is the schema of plot step in the method searching GPS periphery that provides of the embodiment of the present invention one;
Fig. 3 is the schema of determining step in the method searching GPS periphery that provides of the embodiment of the present invention one;
Fig. 4 is the structure iron of the device searching GPS periphery that the embodiment of the present invention two provides;
Fig. 5 is the structure iron of drafting module in the device searching GPS periphery that provides of the embodiment of the present invention two;
Fig. 6 judges the structure iron of module in the device searching GPS periphery that provides of the embodiment of the present invention two.
Embodiment
In order to make the object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated. It is to be understood that specific embodiment described herein is only in order to explain the present invention, it is not intended to limit the present invention.
Embodiment one
As shown in Figure 1, the method for a kind of GPS of searching periphery that the embodiment of the present invention one proposes comprises step:
S1, centered by the GPS location of a default server, draw a preset shape; In actual applications, this server position is businessman position, and default shape can be arrange according to actual needs, such as square, circular, rectangle etc., it may be preferred that select the square shape as the embodiment of the present invention one. As shown in Figure 2, this step specifically comprises:
S11, centered by the GPS location of server, according to one or more default length value, calculate shape at horizontal and vertical length value;For square, owing to the length of side is identical, only a length value need to be set, according to this length value, can calculate centered by the GPS location of server, square at horizontal and vertical length value. Other shape in this way, such as rectangle, then needs to arrange two length values, and a length value is as rectangular length, and another length value is as rectangular width.
S12, describe described shape according to horizontal and vertical length value. The transverse direction of known form and the length value of drafting, then depict this shape centered by the GPS location of server, and further, the also direction of this shape of adjustable, with applicable customer need.
Whether S2, the GPS location judging each client terminal fall in the scope of this shape, are, judge that client terminal is in the peripheral extent of server. As shown in Figure 3, step S2 specifically comprises:
S21, the gps coordinate obtaining multiple point on the frame of shape; For rectangle or square, it is preferable that select the gps coordinate on four summits on frame, for circular or other shape, the gps coordinate of multiple point can be selected equidistantly.
S22, multiple gps coordinate of point, the gps coordinate of client terminal are converted into binary data or shape data; When server receives the request of client terminal, this request includes the gps coordinate of client terminal and the longitude of client terminal and latitude, the gps coordinate of multiple points selected in step S21 and the gps coordinate of client terminal are converted into binary data or shape data further, binary data or shape data after conversion compare GPS coordinate data, its data volume greatly reduces, and precision improves greatly.
S23, the binary data contrasting multiple point and client terminal or shape data, when difference is less than preset value, judge that client terminal is in the peripheral extent of described server. Above-mentioned preset value based on experience value or actual needs arrange, such as, when the difference of a certain client terminal and a square summit is less than predicated value, judge that this client terminal is in the peripheral extent of server, otherwise judge that this client does not belong to the peripheral extent of server.
The embodiment of the present invention one passes through customer-centric, a shaped is drawn at user's periphery certain distance, being judged to be in user's GPS periphery for any point fallen in this form range, the distance avoiding user and peripheral point calculates, and has saved the data volume calculated. And all data are all converted into scale-of-two or shaping calculates, and further save calculated amount, significantly reduce computing amount and the resource occupation of server, it is to increase accurate data degree.
Embodiment two
The embodiment of the present invention one proposes a kind of device searching GPS periphery, and this device can be mobile terminal or server itself, it is also possible to be the built-in or external device of server. As shown in Figure 4, the device that the embodiment of the present invention two proposes comprises:
Drafting module 10, for, centered by the GPS location of a default server, drawing a preset shape;
Judge module 20, whether fall into for judging the GPS location of each client terminal in the scope of described shape, be, judge that described client terminal is in the peripheral extent of described server.
As shown in Figure 5, drafting module 10 comprises:
Calculate unit 11, for centered by the GPS location of server, according to one or more default length value, calculate shape at horizontal and vertical length value;
Describe unit 12, for describing described shape according to horizontal and vertical length value.
As shown in Figure 6, judge that module 20 comprises:
Acquiring unit 21, for obtaining the gps coordinate of multiple point on the frame of shape;
Scaling unit 22, for being converted into binary data or shape data by multiple gps coordinate of point, the gps coordinate of client terminal;
Contrast unit 23, for contrasting binary data or the shape data of multiple point and described client terminal, when difference is less than preset value, judges that client terminal is in the peripheral extent of described server.
Specifically, the device principle of work of the embodiment of the present invention two is as follows:
Drafting module 10, centered by the GPS location of a default server, draws a preset shape; In actual applications, this server position is businessman position, and default shape can be arrange according to actual needs, such as square, circular, rectangle etc., it may be preferred that select the square shape as the embodiment of the present invention one. Specifically, calculate unit 11 centered by the GPS location of server, according to one or more default length value, calculate shape at horizontal and vertical length value; For square, owing to the length of side is identical, only a length value need to be set, according to this length value, can calculate centered by the GPS location of server, square at horizontal and vertical length value. Other shape in this way, such as rectangle, then needs to arrange two length values, and a length value is as rectangular length, and another length value is as rectangular width. Describe unit 12 and describe described shape according to horizontal and vertical length value. The transverse direction of known form and the length value of drafting, then depict this shape centered by the GPS location of server, and further, the also direction of this shape of adjustable, with applicable customer need.
Judge that module 20 judges in the scope whether GPS location of each client terminal falls into this shape to be, judge that client terminal is in the peripheral extent of server. Specifically,
Acquiring unit 21 obtains the gps coordinate of multiple point on the frame of shape; For rectangle or square, it is preferable that select the gps coordinate on four summits on frame, for circular or other shape, the gps coordinate of multiple point can be selected equidistantly.
Multiple gps coordinate of point, the gps coordinate of client terminal are converted into binary data or shape data by scaling unit 22; When server receives the request of client terminal, this request includes the gps coordinate of client terminal and the longitude of client terminal and latitude, the gps coordinate of multiple points selected and the gps coordinate of client terminal are converted into binary data or shape data further, binary data or shape data after conversion compare GPS coordinate data, its data volume greatly reduces, and precision improves greatly.
Contrast unit 23 contrasts binary data or the shape data of multiple point and client terminal, when difference is less than preset value, judges that client terminal is in the peripheral extent of described server. Above-mentioned preset value based on experience value or actual needs arrange, such as, when the difference of a certain client terminal and a square summit is less than predicated value, judge that this client terminal is in the peripheral extent of server, otherwise judge that this client does not belong to the peripheral extent of server.
The embodiment of the present invention two passes through customer-centric, a shaped is drawn at user's periphery certain distance, being judged to be in user's GPS periphery for any point fallen in this form range, the distance avoiding user and peripheral point calculates, and has saved the data volume calculated. And all data are all converted into scale-of-two or shaping calculates, and further save calculated amount, significantly reduce computing amount and the resource occupation of server, it is to increase accurate data degree.
The foregoing is only the better embodiment of the present invention, not in order to limit the present invention, all any amendment, equivalent replacement and improvement etc. done within the spirit and principles in the present invention, all should be included within protection scope of the present invention.

Claims (10)

1. search the method for GPS periphery for one kind, it is characterised in that, described method comprises the steps:
Centered by the GPS location of a default server, draw a preset shape;
Judge in the scope whether GPS location of each client terminal falls into described shape, it is judge that described client terminal is in the peripheral extent of described server.
2. the method for claim 1, it is characterised in that, described centered by the GPS location of a default server, draw a preset shape and specifically comprise:
Centered by the GPS location of described server, according to one or more default length value, calculate described shape at horizontal and vertical length value;
Described shape is described according to described horizontal and vertical length value.
3. the method for claim 1, it is characterised in that, described judge it is judge that the peripheral extent that described client terminal is in described server specifically comprises in the scope whether GPS location of each client terminal falls into described shape:
Obtain the gps coordinate of multiple point on the frame of described shape;
The described gps coordinate of multiple point, the gps coordinate of described client terminal are converted into binary data or shape data;
Contrast binary data or the shape data of described multiple point and described client terminal, when difference is less than preset value, judge that described client terminal is in the peripheral extent of described server.
4. method as claimed in claim 3, it is characterised in that, described shape is square, circular or rectangle.
5. method as claimed in claim 4, it is characterised in that, when described shape is square, on the frame of described shape, the gps coordinate of multiple point is the coordinate figure on described four square summits.
6. search the device of GPS periphery for one kind, it is characterised in that, described device comprises:
Drafting module, for, centered by the GPS location of a default server, drawing a preset shape;
Judge module, whether fall into for judging the GPS location of each client terminal in the scope of described shape, be, judge that described client terminal is in the peripheral extent of described server.
7. device as claimed in claim 6, it is characterised in that, described drafting module comprises:
Calculate unit, for centered by the GPS location of described server, according to one or more default length value, calculate described shape at horizontal and vertical length value;
Describe unit, for describing described shape according to described horizontal and vertical length value.
8. device as claimed in claim 6, it is characterised in that, described judgement module comprises:
Acquiring unit, the gps coordinate of multiple point on the frame obtaining described shape;
Scaling unit, for being converted into binary data or shape data by the described gps coordinate of multiple point, the gps coordinate of described client terminal;
Contrast unit, for contrasting binary data or the shape data of described multiple point and described client terminal, when difference is less than preset value, judges that described client terminal is in the peripheral extent of described server.
9. device as claimed in claim 8, it is characterised in that, described shape is square, circular or rectangle.
10. device as claimed in claim 9, it is characterised in that, when described shape is square, on the frame of described shape, the gps coordinate of multiple point is the coordinate figure on described four square summits.
CN201511017290.1A 2015-12-29 2015-12-29 Method and apparatus for finding GPS periphery Withdrawn CN105677733A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511017290.1A CN105677733A (en) 2015-12-29 2015-12-29 Method and apparatus for finding GPS periphery

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511017290.1A CN105677733A (en) 2015-12-29 2015-12-29 Method and apparatus for finding GPS periphery

Publications (1)

Publication Number Publication Date
CN105677733A true CN105677733A (en) 2016-06-15

Family

ID=56189747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511017290.1A Withdrawn CN105677733A (en) 2015-12-29 2015-12-29 Method and apparatus for finding GPS periphery

Country Status (1)

Country Link
CN (1) CN105677733A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017113133A1 (en) * 2015-12-29 2017-07-06 深圳市鼎芯无限科技有限公司 Method and device for searching gps perimeter

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291435A (en) * 2011-07-15 2011-12-21 武汉大学 Mobile information searching and knowledge discovery system based on geographic spatiotemporal data
CN103200238A (en) * 2013-03-13 2013-07-10 周良文 Geography fencing intelligent network information system
CN103563406A (en) * 2011-06-03 2014-02-05 苹果公司 Monitoring geofence exit
CN103947229A (en) * 2011-10-20 2014-07-23 高通股份有限公司 Method and/or apparatus for geofence management
CN104181568A (en) * 2013-05-23 2014-12-03 霍尼韦尔国际公司 System and method with automatic radius crossing notification for gps tracker
CN104202717A (en) * 2013-02-21 2014-12-10 周良文 Information platform of basic unit-based short-range fence and application method
CN204288512U (en) * 2014-12-10 2015-04-22 北京东方车云信息技术有限公司 For the electronic enclosure system that network is hired a car
CN105190355A (en) * 2013-03-15 2015-12-23 高通股份有限公司 Energy conservation apparatus for geofence applications
CN105191361A (en) * 2013-02-22 2015-12-23 英特尔公司 Geo-fence notification management

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103563406A (en) * 2011-06-03 2014-02-05 苹果公司 Monitoring geofence exit
CN102291435A (en) * 2011-07-15 2011-12-21 武汉大学 Mobile information searching and knowledge discovery system based on geographic spatiotemporal data
CN103947229A (en) * 2011-10-20 2014-07-23 高通股份有限公司 Method and/or apparatus for geofence management
CN104202717A (en) * 2013-02-21 2014-12-10 周良文 Information platform of basic unit-based short-range fence and application method
CN105191361A (en) * 2013-02-22 2015-12-23 英特尔公司 Geo-fence notification management
CN103200238A (en) * 2013-03-13 2013-07-10 周良文 Geography fencing intelligent network information system
CN105190355A (en) * 2013-03-15 2015-12-23 高通股份有限公司 Energy conservation apparatus for geofence applications
CN104181568A (en) * 2013-05-23 2014-12-03 霍尼韦尔国际公司 System and method with automatic radius crossing notification for gps tracker
CN204288512U (en) * 2014-12-10 2015-04-22 北京东方车云信息技术有限公司 For the electronic enclosure system that network is hired a car

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017113133A1 (en) * 2015-12-29 2017-07-06 深圳市鼎芯无限科技有限公司 Method and device for searching gps perimeter

Similar Documents

Publication Publication Date Title
US10890454B2 (en) Integrating online navigation data with cached navigation data during active navigation
US9609473B2 (en) Service processing method and apparatus based on location information
KR101752821B1 (en) Method, system and terminal device for processing pedestrian navigation
WO2015169219A1 (en) Navigation method and apparatus
CA3058243C (en) Information display method and apparatus
CN107273376B (en) Target position searching method and device
WO2013130216A1 (en) Visual ocr for positioning
WO2016119383A1 (en) Method and terminal for acquiring wi-fi signal strength
CN108537352A (en) A kind of data processing method, device and server
CN108897025B (en) High-precision positioning method and device, terminal equipment and computer readable storage medium
CN107135244B (en) Location-based service implementation method and device
KR20200060553A (en) Providing notifications based on geofencing search results
JP2009063336A (en) Equipment, method and program for acquiring positional information
US10362442B2 (en) Retrospective path analysis
JP2014194363A (en) Guidance device, guidance method, and program
CN105021203A (en) System and method for mobile terminal navigation
CN105677733A (en) Method and apparatus for finding GPS periphery
CN103344211B (en) A kind of mobile terminal sun position method and system
CN102288187A (en) Real-time road condition and route planning method and equipment
CN104864888B (en) A kind of method and apparatus of navigation device position amendment
CN110672086B (en) Scene recognition method, device, equipment and computer readable medium
US20150038175A1 (en) Automatic Location Address Translation and Less Accurate Location Technology Address to More Accurate Location Technology Address Translation
CN111380558A (en) Method, device, server and storage medium for ordering points of interest
JP2007147468A (en) Store guide system
CN105246034A (en) Method and device for dynamically generating two-dimension code based on position information

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
TA01 Transfer of patent application right

Effective date of registration: 20190115

Address after: 518000 Building 405A, 01B, Zone E, Zhiheng Emerging Industrial Park, Nantou Street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen win win Technology Co., Ltd.

Address before: 518000 Meilong Road and Minwang Road, Minzhi Street, Longhua New District, Shenzhen City, Guangdong Province. Room 903, 905 and 906, Block B, Minzhi Commercial Plaza, Qixing Commercial Plaza (office space)

Applicant before: SHENZHEN DXY TECHNOLOGY CO., LTD.

TA01 Transfer of patent application right
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20160615

WW01 Invention patent application withdrawn after publication