CN105246034A - Method and device for dynamically generating two-dimension code based on position information - Google Patents

Method and device for dynamically generating two-dimension code based on position information Download PDF

Info

Publication number
CN105246034A
CN105246034A CN201510629216.9A CN201510629216A CN105246034A CN 105246034 A CN105246034 A CN 105246034A CN 201510629216 A CN201510629216 A CN 201510629216A CN 105246034 A CN105246034 A CN 105246034A
Authority
CN
China
Prior art keywords
information
state
service
base station
positional value
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
CN201510629216.9A
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.)
Wuhan Iron and Steel Group Corp
Original Assignee
Wuhan Iron and Steel Group Corp
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 Wuhan Iron and Steel Group Corp filed Critical Wuhan Iron and Steel Group Corp
Priority to CN201510629216.9A priority Critical patent/CN105246034A/en
Publication of CN105246034A publication Critical patent/CN105246034A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06KRECOGNITION OF DATA; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K19/00Record carriers for use with machines and with at least a part designed to carry digital markings
    • G06K19/06Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
    • G06K19/06009Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking
    • G06K19/06037Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code with optically detectable marking multi-dimensional coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information

Abstract

The invention relates to the technical field of information processing, and particularly relates to a method and a device for dynamically generating a two-dimension code based on position information. The method comprises the following steps: obtaining a position information service, wherein the position information service comprises a satellite position value extraction service and a base station position value extraction service; obtaining positioning information based on a current position information state of the position information service; and generating the two-dimension code based on the positioning information. The method provided by the invention is used for obtaining the positioning information through the satellite position value extraction service and the base station position value extraction service, and generating the corresponding two-dimension code to be conveniently read by a mobile terminal, and real-time accurate positioning information can be returned for a positioning application to avoid returning historical data, which are not updated in time.

Description

A kind of method of Quick Response Code of dynamic generation position-based information and device
Technical field
The present invention relates to technical field of information processing, particularly relate to a kind of method and device of Quick Response Code of dynamic generation position-based information.
Background technology
Due to global positioning system (GlobalPositioningSystem, GPS) the feature that there is round-the-clock, high accuracy and automatically measure, make it be widely used in every field.At present, most of mobile terminal all supports the real-time navigation capability based on GPS.But, the real-time location of GPS needs to rely on earth-circling multi-satellite receiver to obtain range data, range equation is solved again according to range data, just can obtain longitude and latitude and the elevation of observation station, locate in real time due to GPS this during there is regular hour span, therefore, also certain time-delay can be there is in the positional information that mobile terminal obtains, such as, when user moves to B position from A position, and the positional information display user that mobile terminal receives is positioned at A position.Thus when user generates the Quick Response Code about positional information in the terminal, the positional information that Quick Response Code comprises is often inaccurate.
Summary of the invention
The present invention by providing a kind of method and device of Quick Response Code of dynamic generation position-based information, solve in prior art due to mobile terminal obtain locating information exist time delay cause generate the inaccurate technical problem of 2 D code information.
Embodiments provide a kind of method of Quick Response Code of dynamic generation position-based information, described method comprises:
Obtain location information service, wherein, described location information service comprises satellite and gets positional value service and positional value service is got in base station;
Based on the current residing positional information state of described location information service, obtain locating information;
Based on described locating information, generate Quick Response Code.
Preferably, described based on the current residing positional information state of described location information service, obtain locating information, specifically comprise:
Judge that described satellite gets whether the current residing primary importance information state of positional value service is up-to-date desirable condition;
If described primary importance information state is described up-to-date desirable condition, then, get positional value service based on described satellite, obtain satellite positioning information, and using described satellite positioning information as described locating information;
If described primary importance information state is not described up-to-date desirable condition, then, judge that the current residing whether described up-to-date desirable condition of second place information state of positional value service is got in described base station;
If described second place information state is described up-to-date desirable condition, then, get positional value service based on described base station, obtain base station location information, and using described base station location information as described locating information.
Preferably, described based on described locating information, generate Quick Response Code, be specially:
Described locating information is sent to backstage location-server by HTML (Hypertext Markup Language);
Described backstage location-server is utilized to generate Quick Response Code.
Preferably, after described acquisition satellite positioning information, described method also comprises:
Described primary importance information state is set to initial inadvisable state.
Preferably, after described acquisition base station location information, described method also comprises:
Described second place information state is set to initial inadvisable state.
Based on same design, the embodiment of the present invention also provides a kind of device of Quick Response Code of dynamic generation position-based information, and described device comprises:
First acquisition module, for obtaining location information service, wherein, described location information service comprises satellite and gets positional value service and positional value service is got in base station;
Second acquisition module, for based on the current residing positional information state of described location information service, obtains locating information;
Generation module, for based on described locating information, generates Quick Response Code.
Preferably, described second acquisition module, specifically comprises:
First judging unit, for judging that described satellite gets whether the current residing primary importance information state of positional value service is up-to-date desirable condition;
First acquiring unit, if described primary importance information state is described up-to-date desirable condition, then, for getting positional value service based on described satellite, obtains satellite positioning information, and using described satellite positioning information as described locating information;
First judging unit, if described primary importance information state is not described up-to-date desirable condition, then, for judging that the current residing whether described up-to-date desirable condition of second place information state of positional value service is got in described base station;
Second acquisition unit, if described second place information state is described up-to-date desirable condition, then, for getting positional value service based on described base station, obtains base station location information, and using described base station location information as described locating information.
Preferably, described generation module, specifically comprises:
Transmitting element, for sending described locating information by HTML (Hypertext Markup Language) to backstage location-server;
Generation unit, generates Quick Response Code for utilizing described backstage location-server.
Preferably, described device also comprises:
First state setting module, for being set to initial inadvisable state by described primary importance information state.
Preferably, described device also comprises:
Second state setting module, for being set to initial inadvisable state by described second place information state.
One or more technical schemes in the embodiment of the present invention, at least have following technique effect or advantage:
The present invention gets positional value service and base station by satellite and gets positional value service and obtain locating information, and generate corresponding Quick Response Code, read easily for mobile terminal, locating information accurately can be returned in real time for position application, the historical data avoided returning not and upgrade.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
Fig. 1 is the flow chart of the method for the Quick Response Code of a kind of dynamic generation position-based information in the embodiment of the present invention;
Fig. 2 is the schematic diagram of the device of the Quick Response Code of a kind of dynamic generation position-based information in the embodiment of the present invention.
Embodiment
There is for solving the locating information obtained due to mobile terminal in prior art the inaccurate technical problem of 2 D code information that time delay causes generating, the invention provides a kind of method and device of Quick Response Code of dynamic generation position-based information.
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of method of Quick Response Code of dynamic generation position-based information, and as shown in Figure 1, described method comprises:
Step 101: obtain location information service, wherein, described location information service comprises satellite and gets positional value service and positional value service is got in base station;
Step 102: based on the current residing positional information state of described location information service, obtain locating information;
Step 103: based on described locating information, generates Quick Response Code.
Specifically, before acquisition positional information server, first obtain location management service, the monitor being got coordinate points by satellite position service configuration satellite is that the self-defined satellite that realizes gets coordinate figure monitor, and the monitor being got coordinate by base station location service configuration base station is that coordinate figure monitor is got in the self-defined base station that realizes.No matter be satellite position service or base station location service, this service position state will be set to up-to-date desirable condition by corresponding self-defined monitor by the up-to-date coordinate points that optional position service obtains, and upgrade the two-dimensional code data of locating information on the server simultaneously.
Further, the LOCATION_SERVICE in being served by mobile platform system obtains location management service.In the process obtaining location management service, on the one hand, setting its current operation service to position management service is satellite service, and set its ultimate range difference upgrading latest data and time difference, if the satellite positioning information condition obtained meets ultimate range difference and the time difference of setting, then this satellite positioning information is updated to up-to-date satellite positioning information.On the other hand, setting its current operation service to position management service is base station service, and set its ultimate range difference upgrading latest data and time difference, if the base station location information condition obtained meets ultimate range difference and the time difference of setting, then this base station location information is updated to up-to-date base station location information
In this application, step 102 specifically comprises:
Judge that described satellite gets whether the current residing primary importance information state of positional value service is up-to-date desirable condition;
If described primary importance information state is described up-to-date desirable condition, then, get positional value service based on described satellite, obtain satellite positioning information, and using described satellite positioning information as described locating information;
If described primary importance information state is not described up-to-date desirable condition, then, judge that the current residing whether described up-to-date desirable condition of second place information state of positional value service is got in described base station;
If described second place information state is described up-to-date desirable condition, then, get positional value service based on described base station, obtain base station location information, and using described base station location information as described locating information.
In specific implementation process, if it is up-to-date desirable condition that satellite gets positional value service, then, obtain satellite positioning information, satellite positioning information is generated Quick Response Code as locating information, otherwise, whether be up-to-date desirable condition, if it is up-to-date desirable condition that positional value service is got in base station, then if judging that positional value service is got in base station, obtain base station location information, base station location information is generated Quick Response Code as locating information.If satellite gets positional value service and base station, to get positional value service be not all up-to-date desirable condition, then, location information service judges again.
Further, in this application, step 103 is specially:
Described locating information is sent to backstage location-server by HTML (Hypertext Markup Language);
Described backstage location-server is utilized to generate Quick Response Code.
In specific implementation process, after getting locating information, send locating information based on mobile network to backstage location-server by the mode of the short connection of HTML (Hypertext Markup Language) (HTTP, HyperTextTransferProtocol).
In this application, after described acquisition satellite positioning information, described method also comprises:
Described primary importance information state is set to initial inadvisable state.
In this application, after described acquisition base station location information, described method also comprises:
Described second place information state is set to initial inadvisable state.
In specific implementation process, get positional value service for satellite, after getting satellite positioning information, primary importance information state is set to initial inadvisable state, wait for the arrival of new satellite positioning information next time, then the monitor getting coordinate points by self-defined satellite is updated to desirable condition.Positional value service is got for base station, after getting base station location information, second place information state is set to initial inadvisable state, waits for the arrival of new base station location information next time, then the monitor getting coordinate points by self-defined base station is updated to desirable condition.
In addition, after acquisition locating information, can also judge whether to stop obtaining locating information, obtain locating information, then stop position management service if stop, obtaining locating information if do not stop, then continue to obtain locating information.
The present invention can be applicable to any mobile terminal based on Android platform or iOS platform, realizes Real-time Obtaining effective location information, possesses process automatically and obtains the function of up-to-date effective location information.
Based on same inventive concept, the embodiment of the present invention also provides a kind of device of Quick Response Code of dynamic generation position-based information, and as shown in Figure 2, described device comprises:
First acquisition module 201, for obtaining location information service, wherein, described location information service comprises satellite and gets positional value service and positional value service is got in base station;
Second acquisition module 202, for based on the current residing positional information state of described location information service, obtains locating information;
Generation module 203, for based on described locating information, generates Quick Response Code.
Wherein, the second acquisition module 202, specifically comprises:
First judging unit, for judging that described satellite gets whether the current residing primary importance information state of positional value service is up-to-date desirable condition;
First acquiring unit, if described primary importance information state is described up-to-date desirable condition, then, for getting positional value service based on described satellite, obtains satellite positioning information, and using described satellite positioning information as described locating information;
First judging unit, if described primary importance information state is not described up-to-date desirable condition, then, for judging that the current residing whether described up-to-date desirable condition of second place information state of positional value service is got in described base station;
Second acquisition unit, if described second place information state is described up-to-date desirable condition, then, for getting positional value service based on described base station, obtains base station location information, and using described base station location information as described locating information.
Wherein, generation module 203, specifically comprises:
Transmitting element, for sending described locating information by HTML (Hypertext Markup Language) to backstage location-server;
Generation unit, generates Quick Response Code for utilizing described backstage location-server.
In this application, described device also comprises:
First state setting module, for being set to initial inadvisable state by described primary importance information state.
In this application, described device also comprises:
Second state setting module, for being set to initial inadvisable state by described second place information state.
Technical scheme in above-mentioned the embodiment of the present application, at least has following technique effect or advantage:
The present invention gets positional value service and base station by satellite and gets positional value service and obtain locating information, and generate corresponding Quick Response Code, read easily for mobile terminal, locating information accurately can be returned in real time for position application, the historical data avoided returning not and upgrade.
Although describe the preferred embodiments of the present invention, those skilled in the art once obtain the basic creative concept of cicada, then can make other change and amendment to these embodiments.So claims are intended to be interpreted as comprising preferred embodiment and falling into all changes and the amendment of the scope of the invention.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.

Claims (10)

1. dynamically generate a method for the Quick Response Code of position-based information, it is characterized in that, described method comprises:
Obtain location information service, wherein, described location information service comprises satellite and gets positional value service and positional value service is got in base station;
Based on the current residing positional information state of described location information service, obtain locating information;
Based on described locating information, generate Quick Response Code.
2. the method for claim 1, is characterized in that, described based on the current residing positional information state of described location information service, obtains locating information, specifically comprises:
Judge that described satellite gets whether the current residing primary importance information state of positional value service is up-to-date desirable condition;
If described primary importance information state is described up-to-date desirable condition, then, get positional value service based on described satellite, obtain satellite positioning information, and using described satellite positioning information as described locating information;
If described primary importance information state is not described up-to-date desirable condition, then, judge that the current residing whether described up-to-date desirable condition of second place information state of positional value service is got in described base station;
If described second place information state is described up-to-date desirable condition, then, get positional value service based on described base station, obtain base station location information, and using described base station location information as described locating information.
3. method as claimed in claim 2, is characterized in that, described based on described locating information, generates Quick Response Code, is specially:
Described locating information is sent to backstage location-server by HTML (Hypertext Markup Language);
Described backstage location-server is utilized to generate Quick Response Code.
4. method as claimed in claim 2, it is characterized in that, after described acquisition satellite positioning information, described method also comprises:
Described primary importance information state is set to initial inadvisable state.
5. method as claimed in claim 2, it is characterized in that, after described acquisition base station location information, described method also comprises:
Described second place information state is set to initial inadvisable state.
6. dynamically generate a device for the Quick Response Code of position-based information, it is characterized in that, described device comprises:
First acquisition module, for obtaining location information service, wherein, described location information service comprises satellite and gets positional value service and positional value service is got in base station;
Second acquisition module, for based on the current residing positional information state of described location information service, obtains locating information;
Generation module, for based on described locating information, generates Quick Response Code.
7. device as claimed in claim 6, it is characterized in that, described second acquisition module, specifically comprises:
First judging unit, for judging that described satellite gets whether the current residing primary importance information state of positional value service is up-to-date desirable condition;
First acquiring unit, if described primary importance information state is described up-to-date desirable condition, then, for getting positional value service based on described satellite, obtains satellite positioning information, and using described satellite positioning information as described locating information;
First judging unit, if described primary importance information state is not described up-to-date desirable condition, then, for judging that the current residing whether described up-to-date desirable condition of second place information state of positional value service is got in described base station;
Second acquisition unit, if described second place information state is described up-to-date desirable condition, then, for getting positional value service based on described base station, obtains base station location information, and using described base station location information as described locating information.
8. device as claimed in claim 7, it is characterized in that, described generation module, specifically comprises:
Transmitting element, for sending described locating information by HTML (Hypertext Markup Language) to backstage location-server;
Generation unit, generates Quick Response Code for utilizing described backstage location-server.
9. device as claimed in claim 7, it is characterized in that, described device also comprises:
First state setting module, for being set to initial inadvisable state by described primary importance information state.
10. device as claimed in claim 7, it is characterized in that, described device also comprises:
Second state setting module, for being set to initial inadvisable state by described second place information state.
CN201510629216.9A 2015-09-29 2015-09-29 Method and device for dynamically generating two-dimension code based on position information Pending CN105246034A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510629216.9A CN105246034A (en) 2015-09-29 2015-09-29 Method and device for dynamically generating two-dimension code based on position information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510629216.9A CN105246034A (en) 2015-09-29 2015-09-29 Method and device for dynamically generating two-dimension code based on position information

Publications (1)

Publication Number Publication Date
CN105246034A true CN105246034A (en) 2016-01-13

Family

ID=55043466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510629216.9A Pending CN105246034A (en) 2015-09-29 2015-09-29 Method and device for dynamically generating two-dimension code based on position information

Country Status (1)

Country Link
CN (1) CN105246034A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110390220A (en) * 2018-04-23 2019-10-29 腾讯科技(深圳)有限公司 Identification code processing and generation method, device, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724632A (en) * 2012-06-29 2012-10-10 武汉钢铁(集团)公司 Method for acquiring geographical location data
CN202918341U (en) * 2012-11-02 2013-05-01 广州智途信息科技有限公司 Geography position sharing system based on intelligent hand-held terminal and two-dimension code
CN104111954A (en) * 2013-04-22 2014-10-22 腾讯科技(深圳)有限公司 Location information acquisition method, location information acquisition device and location information acquisition system
CN104243516A (en) * 2013-06-13 2014-12-24 阿里巴巴集团控股有限公司 Method and system for obtaining geographical location information of terminals, server and terminals
CN104459613A (en) * 2013-09-16 2015-03-25 中兴通讯股份有限公司 Position tracking method and terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724632A (en) * 2012-06-29 2012-10-10 武汉钢铁(集团)公司 Method for acquiring geographical location data
CN202918341U (en) * 2012-11-02 2013-05-01 广州智途信息科技有限公司 Geography position sharing system based on intelligent hand-held terminal and two-dimension code
CN104111954A (en) * 2013-04-22 2014-10-22 腾讯科技(深圳)有限公司 Location information acquisition method, location information acquisition device and location information acquisition system
CN104243516A (en) * 2013-06-13 2014-12-24 阿里巴巴集团控股有限公司 Method and system for obtaining geographical location information of terminals, server and terminals
CN104459613A (en) * 2013-09-16 2015-03-25 中兴通讯股份有限公司 Position tracking method and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110390220A (en) * 2018-04-23 2019-10-29 腾讯科技(深圳)有限公司 Identification code processing and generation method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
EP2362702A1 (en) A method and system for physical mapassisted wireless access point locating
KR20180098622A (en) Geographic Location Positioning Method and Apparatus
CN109474894B (en) Terminal positioning processing method and device and electronic equipment
CN103913164A (en) Mobile-terminal-based positioning method and system
JP2019132584A (en) Gnss correction data distribution device, rtk terminal device, gnss correction data distribution system, and gnss correction data distribution method
KR20160132045A (en) Positioning method and device based on electronic equipment and application
CN110895343A (en) Data processing method, system and related equipment
US20130009813A1 (en) Method and System for a Virtual Wide Area GNSS Reference Network
JP2009063336A (en) Equipment, method and program for acquiring positional information
CN105246034A (en) Method and device for dynamically generating two-dimension code based on position information
CN110770601A (en) Method and device for transmitting correction data and for determining the position of a mobile unit with high precision
KR20190059120A (en) Facility Inspection System using Augmented Reality based on IoT
CN107462902B (en) positioning method and positioning equipment
CN104853431A (en) Geographical location information positioning method and device
CN105527641A (en) Positioning method, positioning system and terminal
CN102724632B (en) Method for acquiring geographical location data
JP2018004434A (en) Positioning processing system, method, computer program, server device and user terminal
WO2016087928A1 (en) Retrospective path analysis
KR20160017216A (en) Portable dgps reference station
JP2016017898A (en) Information processing device and information processing method
KR20110067902A (en) Mobile terminal having function for measuring area
CN107860392B (en) Efficient person finding method and system
US9712971B2 (en) Automatic location address translation and less accurate location technology address to more accurate location technology address translation
KR20180054096A (en) VRS GPS omitted
CN106441266B (en) Navigation method and navigation system based on two-dimensional code

Legal Events

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

Application publication date: 20160113

RJ01 Rejection of invention patent application after publication