Summary of the invention
Based on this, be necessary the above-mentioned technical matters of pin, a kind of localization method based on city code and device of energy precise positioning are provided.
Based on a localization method for city code, described method comprises:
Obtain the positioning instruction that user triggers destination object, described positioning instruction is sent to server, described server is made to inquire about the target code of described destination object according to positioning instruction, according to the object coding preset and the mapping relations of positional information, obtain the target position information that described target code is corresponding;
Receive the described target position information that described server returns, and on preset electronic map, described target position information is marked.
Wherein in an embodiment, after the step of the described target position information returned at the described server of described reception, also comprise:
Obtain the navigation instruction that user triggers;
Position according to the reference position of navigation instruction to user place and obtain start position information;
According to described start position information and target position information travel route planning provide navigation on described electronic chart.
Based on a localization method for city code, described method comprises:
The positioning instruction that the user that receiving terminal sends triggers destination object;
The target code of described destination object is inquired about according to positioning instruction;
According to the object coding preset and the mapping relations of positional information, obtain the target position information that described target code is corresponding;
Described target position information is back to described terminal.
Wherein in an embodiment, the user sent at described receiving terminal to the step of the positioning instruction that destination object triggers before, also comprise:
Obtain the positional information that in city, object to be encoded is corresponding;
By city code system, coding is carried out to described object to be encoded and obtain object coding;
Set up the mapping relations of described object coding and described positional information.
Wherein in an embodiment, described object to be encoded comprises: commercial subject, buildings, grid department, grid role, patrol and examine in item, functional item and floating population at least one.
Based on a locating device for city code, described device comprises:
Instruction sending module, for obtaining the positioning instruction that user triggers destination object, described positioning instruction is sent to server, described server is made to inquire about the target code of described destination object according to positioning instruction, according to the object coding preset and the mapping relations of positional information, obtain the target position information that described target code is corresponding;
Position mark module, for receiving the described target position information that described server returns, and marks described target position information on preset electronic map.
Wherein in an embodiment, described device also comprises:
Instruction acquisition module, for obtaining the navigation instruction that user triggers;
Locating module, obtains start position information for positioning according to the reference position of navigation instruction to user place;
Navigation module, for according to described start position information and target position information travel route planning provide navigation on the map.
Based on a locating device for city code, described device comprises:
Command reception module, the positioning instruction that the user for receiving terminal transmission triggers destination object;
Coded query module, for inquiring about the target code of described destination object according to positioning instruction;
Position acquisition module, for the mapping relations according to the object coding preset and positional information, obtains the target position information that described target code is corresponding;
Information returns module, for described target position information is back to described terminal.
Wherein in an embodiment, described device also comprises:
Data obtaining module, for obtaining the positional information that in city, object to be encoded is corresponding;
Coding module, obtains object coding for carrying out coding by city code system to described object to be encoded;
Relation sets up module, for setting up the mapping relations of described object coding and described positional information.
Wherein in an embodiment, described object to be encoded comprises: commercial subject, buildings, grid department, grid role, patrol and examine in item, functional item and floating population at least one.
The above-mentioned localization method based on city code and device, destination object stores in the server with the form of target code, server can according to the mapping relations of object coding and positional information, obtain the target position information that described target code is corresponding, because the target position information obtained does not obtain by means of positioning units such as GPS, thus strong at positioning unit signal or on map, do not have markd little place, said method and device also can realize the precise positioning to destination object, improve the accuracy of location.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
As shown in Figure 1, in one embodiment, a kind of localization method based on city code provided, the method comprises the steps:
Step 101, obtains the positioning instruction that user triggers destination object, positioning instruction is sent to server.
City code is exactly the people comprised in city, thing and thing are identified in an encoded form.Coding can adopt one or more combinations in numeral, letter and word.City after coding will become a digitized city.Such as, city is divided into multiple grid, grid refers to the electronic information unit set up according to administrative region.The coding of the people in each electronic information unit, thing and thing existence anduniquess.
In the present embodiment, user comprises all kinds of crowd in city.People can download from server the software matched with oneself identity by terminal, the coding resource of digitalized city can be utilized to facilitate daily Working Life by software.In one embodiment, when user is the litigant handling business registration, can download business registration software, business registration software can assist party concerned just to handle every affairs of business registration efficiently.Destination object in business registration software litigant comprising government department (industrial and commercial bureau, the tax bureau etc.) and other use business registration software handling business registration etc.Litigant before handling business registration by trigger government department can quick position to its position accurately.
In another embodiment, when user is the inspector of grid, can download the community management software of patrolling and examining version, inspector refers to carrying out safety patrol inspection in grid and providing the managerial personnel of service.Every patrol task is distributed to corresponding inspector by server, and inspector is received an assignment by the software of patrolling and examining in terminal, and performs patrol task.Such as, inspector needs the fire fighting device of patrolling and examining in the rental house in grid whether to meet safety requirements.Here destination object refers to fire protection patrol task.Which position user can navigate to fire protection patrol task rental house by clicking fire protection patrol task is positioned at.When user is the leader of grid, the community management software of inspection version can be downloaded, here destination object can be inspector and patrol task, and leader patrols and examines work by the position supervision of locating inspector, and that can also arrive the spot check inspector of patrol task patrols and examines work.
In the present embodiment, server according to the target code of positioning instruction query aim object, according to the mapping relations of object coding and the positional information preset, the target position information that acquisition target code is corresponding.
Concrete, destination object can be people, thing and thing.Server can obtain corresponding target code according to destination object.Prestored the mapping relations of object coding and positional information in the database of server, namely each object coding associates with positional information, and positional information specifically refers to geographic coordinate point (longitude and latitude).The geographical location information of such as buildings is east longitude 120 degree, north latitude 40 degree.
Step 102, the target position information that reception server returns, and on preset electronic map, target position information is marked.
In the present embodiment, installed electronic chart in terminal, concrete, electronic chart can be provided by third-party platform.Such as, Baidu's map, high moral map and Kai Lide map etc. can also be the electronic urban maps that server self provides.Terminal by the electronic chart in city, invocation target object place, and on electronic chart by the position mark of destination object on map, make user intuitively can recognize the position of destination object according to gauge point, for user provides stroke reference.
In one embodiment, on electronic chart except the correlation attribute information that destination object stores in the server also can show by marker location information.Such as, destination object is buildings, and the attribute information of display comprises: the title of buildings, the information that building age and floor area of building etc. is relevant to buildings.
The above-mentioned localization method based on city code, destination object stores in the server with the form of target code, server can according to the mapping relations of object coding and positional information, obtain the target position information that target code is corresponding, because the target position information obtained does not obtain by means of positioning units such as GPS, thus strong at positioning unit signal or on map, do not have markd little place, said method also can realize the precise positioning to destination object.Improve the accuracy of location.
As shown in Figure 2, in one embodiment, in step 102, after the target position information that reception server returns, the method also comprises:
Step 201, obtains the navigation instruction that user triggers.
Step 202, positions according to the reference position of navigation instruction to user place and obtains start position information.
Step 203, according to start position information and target position information travel route planning provide navigation on electronic chart.
The software interface of terminal includes the navigation button, and user will be loaded into electronic chart preset in mobile terminal after clicking the navigation button, obtained the reference position at litigant place, and planning arrives the path of destination object from starting point by GPS or LBS location.In one embodiment, terminal can cook up some traffic path figure for user's selection respectively according to the mode of trip.Traffic path figure comprises: Walking Route, take pubic transport route and driving route etc.In one embodiment, the electronic compass in terminal is that navigation indicates working direction, and the loudspeaker in terminal provide row voice message for navigating.
Fig. 3 is the application scenarios figure of said method in an embodiment, in Fig. 3, user A is provided with community management software on mobile phone, the positioning instruction of destination object is sent to server by mobile phone, owing to storing grid department in server, rental housing, enterprise, patrol and examine item, each coding of floating population and inspector and the mapping relations of positional information, server will return the destination locations information of destination object according to positioning instruction, and the initial point position of user A is obtained in conjunction with LBS location, carry out path planning by calling electronic chart and navigation is provided, assisted user A arrives destination object fast.
Fig. 4 is for being arranged on the surface chart of the community management software on user A (inspector) mobile phone, inspector, by clicking the navigation icon in the most upper left corner of surface chart, namely ejects and inspector is navigated to the navigation map that grid Nei Shanmei community, Yue Fan mountain number is the rental house of U.S. No. 1569 of coral.
Said method can realize the quick position to destination object based on city code, can extract destination object (place) latitude and longitude information accurately by target code.Call the navigation Service that terminal is installed again, reference position and destination locations are presented on electronic chart, rapid navigation can arrive destination object according to programme path.Owing to breaking away from the location of destination object, the signal of positioning unit is relied on, promote stability and the degree of accuracy of location, because destination object is also not limited only to and geographic position, comprise grid department, grid personnel, floating population, buildings, all kinds of item etc., because the scope expanding navigation changes the trip mode of people.
As shown in Figure 5, in one embodiment, a kind of localization method based on city code provided, the method comprises the steps:
Step 501, the positioning instruction that the user that receiving terminal sends triggers destination object.Step 502, according to the target code of positioning instruction query aim object.
Step 503, according to the mapping relations of object coding and the positional information preset, the target position information that acquisition target code is corresponding.
Step 504, is back to terminal by target position information.
In the present embodiment, the target code of destination object is stored in the database of server, when receiving positioning instruction, will trigger the inquiry request to database, by obtaining the target code of destination object to data base querying.Coding in server all associates with positional information, can obtain target position information by target code.And the target position information of acquisition is back to terminal.
As shown in Figure 6, in one embodiment, in step 501, before the positioning instruction that the user that receiving terminal sends triggers destination object, the method also comprises:
Step 601, obtains the positional information that in city, object to be encoded is corresponding.
Concrete, object to be encoded includes but not limited to following several: commercial subject, buildings, grid department, grid role, patrol and examine item, functional item and floating population etc.Such as, commercial subject is enterprises and individual industrial and commercial households, and buildings is rental housing, ordinary residence and office building.Grid department is the functional government departments such as fire department, toilet and industrial and commercial bureau.Grid role is grid leader and grid inspector etc.Function item can be fire-fighting safety check item and population item in registration etc.Patrolling and examining item can be security patrol item.
In one embodiment, server obtains the object to be encoded of user's typing, treat coded object by GPS or LBS and position acquisition positional information, not accurate enough or when can not find suitable located sites on electronic chart, server additionally provides auxiliary positioning function in location, first time position.User manually can determine on electronic chart that the particular geographic location of object to be encoded is to correct a mistake or to improve positioning precision.
Step 602, treats coded object by city code system and carries out coding and obtain object coding.
Be preset with coding rule in city code system, treat coded object according to the coding rule preset and carry out numerical coding.Basic data is divided into encode and business datum coding object to be encoded according to type of coding.Wherein basic data coding comprises again: administrative region coding and buildings coding.Business datum coding comprises: grid department coding, grid role coding and all kinds of item coding.Below by reality for example bright lower part coding rule.The object to be encoded of every type comprises the coding table specific as follows 1-1 of two digits:
Object type to be encoded |
Coding |
Buildings |
01 |
Grid department |
02 |
Grid role |
03 |
Function item |
04 |
Admin Events |
05 |
Table 1-1
For object to be encoded for grid department, the specific coding of each grid department rule is as shown in following table 1-2: wherein: 441900122 refer to administrative region, and grid department last two digits of encoding refers to department name, superposes from 01.New tabernaemontanus bulrush " center " represents with " 01 "; " fire-fighting group " represents with " 02 "; " public security subbureau " represents with " 03 "; " safety supervision branch office " represents with " 04 "." industrial and commercial branch office " represents with " 05 "; Hou Jiehou street fire-fighting group is encoded to 0244190012201, its middle age 02 representative be object to be encoded be grid department, 441900122 be administrative region coding stands is Dongguan Hou Jie, and 02 is the coding of fire-fighting group.
Grid department name |
Coding |
Hou Jie community |
02 441900122 00 |
Hou Jiexinguan center |
02 441900122 01 |
Hou Jie fire-fighting group |
02 441900122 02 |
Hou Jie public security bureau |
02 441900122 03 |
Hou Jie safety supervision branch office |
02 441900122 04 |
The industrial and commercial branch office in thick street |
02 441900122 05 |
Table 1-2
For object to be encoded for patrolling and examining item, the coding rule of patrolling and examining item is as follows: inspected object (buildings) is divided into 4 classes, 1 bit digital to represent, is respectively " rental house " and represents with " 0 "; " manufacturing enterprise " represents with " 1 "; " little retail shop " represents with " 2 "; " little workshop " represents with " 3 "; " town pipe enterprise " represents with " 4 "; " pipe enterprise of city " represents with " 5 "; " province pipe enterprise " represents with " 6 "; " central enterprise " represents with " 7 ".Qualitative classification (hidden danger character) table 1 figure place represents." administrative class hidden danger " use " 0 "; " security against fire hidden danger " represents with " 1 ".Grade separation (hidden danger grade) 1 figure place represents." general incipient faults " represents with " 0 "; " hidden trouble " represents with 1; " especially severe " represents with 2.Sequence number (data of system assignment) represents by 2 figure places.Following table 1-3 is the encoding examples of patrolling and examining item, and wherein, coding " 034419001220211001 " represents that the result of patrolling and examining obtained after the security against fire hidden danger of Dongguan Hou Jie fire-fighting group to manufacturing enterprise is patrolled and examined there is general potential safety hazard.
Coding key |
Coding |
Lattice portion class |
03 |
Fire-fighting group (patrolling and examining the affiliated function of item) |
03 441900122 02 |
Manufacturing enterprise's (inspected object) |
03 441900122 02 1 |
Security against fire hidden danger (qualitative classification) |
03 441900122 02 1 1 |
General incipient faults (grade separation) |
03 441900122 02 1 1 0 |
Sequence number (systematic conservation data sequence number) |
03 441900122 02 1 1 0 01 |
Table 1-3
For object to be encoded for grid role, grid department role is divided into: leader, length of a film, inspectorate, operator, landlord sublessor, owner.The coding rule of grid role is as shown in following table 1-4:
Grid department role |
Coding |
Leader |
01 |
Length of a film |
02 |
Inspector |
03 |
Operator |
04 |
.... |
.... |
Table 1-4
Above are only the coding rule illustrating variant type object to be encoded, also have other to carry out encoding and the implementation of same type employing Unified coding according to dissimilar, do not limit at this.
Step 603, sets up the mapping relations of object coding and positional information.
In the present embodiment, by setting up the mapping relations of object coding and positional information, the data of digitalized city all associated with geographical location information, location has been not only that traditional sense has positioned geographic position, can also position people or thing.Such as, when inspector receives patrol task, without the need to the destination address by GPS locating query patrol task, directly triggering is patrolled and examined item and is got final product precise positioning to patrolling and examining on-the-spot address.
The city code system of gridding, can encode towards the tubulation object of grass-roots community (people, thing and thing), and the scope that coding covers is wide and practical.Bind after object coding to be encoded with its geographical location information, make location reach degree quite accurately, be specially adapted to the use of personnel's public affair working of government administration section.Correspondingly, as the routine work life that convenience-for-people use can be convenient for people to, such as, business litigant, when handling administrative examination and approval or government services does, can find the geographic position of administrative authority rapidly.Due to limitation of user right, user's obtainable coded data scope of different rights is different, to guarantee the security of its coded data.
As shown in Figure 7, in one embodiment, a kind of locating device based on city code provided, this device comprises as lower module:
Instruction sending module 10, for obtaining the positioning instruction that user triggers destination object, is sent to server by described positioning instruction.In the present embodiment, server inquires about the target code of described destination object according to positioning instruction, according to the object coding preset and the mapping relations of positional information, obtains the target position information that described target code is corresponding.
Position mark module 12, for receiving the described target position information that described server returns, and marks described target position information on preset electronic map.
As shown in Figure 8, in one embodiment, the locating device based on city code also comprises:
Instruction acquisition module 14, for obtaining the navigation instruction that user triggers.
Locating module 16, obtains start position information for positioning according to the reference position of navigation instruction to user place.
Navigation module 18, for according to described start position information and target position information travel route planning provide navigation on the map.
As shown in Figure 9, in one embodiment, a kind of locating device based on city code provided, this application of installation is in server, and this device comprises as lower module:
Command reception module 23, the positioning instruction that the user for receiving terminal transmission triggers destination object.
Coded query module 24, for inquiring about the target code of described destination object according to positioning instruction.
Position acquisition module 25, for the mapping relations according to the object coding preset and positional information, obtains the target position information that described target code is corresponding.
Information returns module 26, for described target position information is back to described terminal.
As shown in Figure 10, in one embodiment, the locating device based on city code also comprises:
Data obtaining module 20, for obtaining the positional information that in city, object to be encoded is corresponding.
In the present embodiment, object to be encoded include but not limited to following at least one: commercial subject, buildings, grid department, grid role, patrol and examine item, functional item and floating population etc.
Coding module 21, obtains object coding for carrying out coding by city code system to described object to be encoded.
Relation sets up module 22, for setting up the mapping relations of described object coding and described positional information.
Above embodiment only have expressed several embodiment of the present invention, and it describes comparatively concrete and detailed, but therefore can not be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.