CN109945886A - Method, apparatus, equipment and the medium of administrative division switch prompting - Google Patents

Method, apparatus, equipment and the medium of administrative division switch prompting Download PDF

Info

Publication number
CN109945886A
CN109945886A CN201711381924.0A CN201711381924A CN109945886A CN 109945886 A CN109945886 A CN 109945886A CN 201711381924 A CN201711381924 A CN 201711381924A CN 109945886 A CN109945886 A CN 109945886A
Authority
CN
China
Prior art keywords
map grid
administrative division
latitude
map
longitude information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711381924.0A
Other languages
Chinese (zh)
Other versions
CN109945886B (en
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.)
China Mobile Communications Group Co Ltd
China Mobile Group Liaoning Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Liaoning 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 China Mobile Communications Group Co Ltd, China Mobile Group Liaoning Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201711381924.0A priority Critical patent/CN109945886B/en
Publication of CN109945886A publication Critical patent/CN109945886A/en
Application granted granted Critical
Publication of CN109945886B publication Critical patent/CN109945886B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Navigation (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention provides method, apparatus, equipment and the media of a kind of administrative division switch prompting.This method comprises: the latitude and longitude information of acquisition current location;It obtains the latitude and longitude information and determines corresponding map grid type;In the map grid type and the upper map grid type difference once obtained, administrative division switch prompting is carried out, wherein the map grid type is used to describe the administrative division attribute of the latitude and longitude information.According to the technical solution of the present invention, it is able to solve and wastes network flow and power consumption high technical problem when switching over judgement in the prior art.

Description

Method, apparatus, equipment and the medium of administrative division switch prompting
Technical field
The present invention relates to data service technical field more particularly to a kind of method, apparatus of administrative division switch prompting, set Standby and medium.
Background technique
During user uses Mobile Telephone Gps application navigation, when the administrative division locating for the user changes, need The administrative division being presently in the variation and user of voice mode prompt administrative division.Typical scene is: when user drives When vehicle enters Tongzhou District, Beijing City from Chaoyang District, Beijing City, navigate it is automatic carry out voice broadcast prompt, inform user " you into Enter Tongzhou District, Beijing City ".
The system structure of administrative division switching navigation casting prompt is as shown in Figure 1 in existing navigation.System is by Mobile Telephone Gps Using, mobile communications network, server-side constitute.
Multiple administrative division data are stored in database (data file) by server-side;Server-side provides online administrative area It draws and calculates service module/interface, according to the longitude and latitude carried in terminal request, what it is according to longitude and latitude and administrative division data includes Administrative division locating for longitude and latitude is calculated in relationship, returns to terminal;It include a row in the navigation data that map quotient provides Draw data, face data (a closed longitude and latitude degree series, such as " X1, Y1 in administrative division;X2,Y2;X3, Y3 ... Xn, Yn ") it is one corresponding Administrative region, each administrative region are made of many planar shape datas.
The user location timing acquisition module period in Mobile Telephone Gps application obtains current latitude and longitude coordinates;User location Caching checks that module judges period position according to user current location and upper one, checks whether positional shift reaches preset threshold, It notifies online administrative division to obtain module and send request to server-side if reaching threshold value, obtains the corresponding administrative division of longitude and latitude Coding and title.The judgement of administrative division switching judging module is presently in the row whether administrative division judges period preservation with upper one The standardized cause in administrative division, illustrates that administrative division is changed if inconsistent, and navigation broadcasting module is notified to carry out voice broadcast.
Mobile communications network is as Mobile Telephone Gps using the communication channel between server-side.
There are two disadvantages for prior art:
Disadvantage one: the mode that Mobile Telephone Gps application networking obtains current administrative division and switching judging waste network flow and Power consumption of terminal, while it is slow to service end load weight response speed.
Mobile Telephone Gps application needs to connect network and initiates the corresponding administration of the current longitude and latitude of network request acquisition to server-side On the one hand zoning wastes network flow, request of on the other hand frequently networking also dramatically increases the power consumption of mobile phone terminal.For mobile phone Navigation application reads GPS data, screen is kept to light and navigate to broadcast and already lead to that power consumption is higher, and online mode is frequently networked It but will increase power consumption of terminal, shorten that mobile phone terminal is standby and service time.
Server-side will carry out ground to the national administrative division data in database according to the longitude and latitude of terminal request every time Managing geometry includes to calculate, and therefrom calculates the administrative division where longitude and latitude, calculating intensity is larger, on the one hand to the place of server-side Rationality can be more demanding, relies on the server of more or higher configuration;The processing delay of another aspect server-side is longer, causes to ring Answer speed slower.
Disadvantage two: it is extra that the fixed positional shift threshold triggers request of Mobile Telephone Gps application settings causes with judgment mode Request and judgement, waste network flow and power consumption of terminal
Since positional shift threshold value is preset fixed value, as long as then this longitude and latitude and upper period longitude and latitude Distance reach threshold value i.e. and can trigger the online request of initiation and administrative division judgement, therefore cause futile requests and judgement.Fig. 2 is The schematic diagram of redundant request and judgement in prior art.Left area is administrative division A in Fig. 2, and right area is administration Zoning B, left side route are user's navigation travelling route.Wherein the distance of A-B, B-C, C-D, D-E, E-F have reached sets in advance Fixed positional shift threshold value, according to prior art, B, C, E, E, F are the judgement point that whether switches of administrative division, need to Server-side, which is sent, obtains administrative division request, but response administrative area is requested to divide A into, and terminal judges administrative division, and there is no becoming Change, without carrying out navigation voice broadcast.Obviously, be in the request and judgement of B, C, D, E, F point it is extra, waste network flow And power consumption of terminal.
In conclusion there is waste flow, the high technical problem of power consumption in administrative division handover scheme in the prior art.
Summary of the invention
The embodiment of the invention provides method, apparatus, equipment and the media of a kind of administrative division switch prompting, are able to solve Administrative division handover scheme wastes flow, the high technical problem of power consumption in the related technology.
In a first aspect, the embodiment of the invention provides a kind of methods of administrative division switch prompting, which comprises adopt Collect the latitude and longitude information of current location;Corresponding map grid type is determined according to the latitude and longitude information;In the map net When lattice type and the last map grid type difference obtained, administrative division switch prompting is carried out, wherein the map grid Type is used to describe the administrative division attribute of the latitude and longitude information.
Second aspect, the embodiment of the invention provides a kind of device of administrative division switch prompting, described device includes: to adopt Collect module, for acquiring the latitude and longitude information of current location;Determining module, it is corresponding for being determined according to the latitude and longitude information Map grid type;Cue module, in the map grid type and when the upper map grid type difference once obtained, Carry out administrative division switch prompting, wherein the map grid type is used to describe the administrative division category of the latitude and longitude information Property.
The embodiment of the invention provides a kind of equipment of administrative division switch prompting, comprising: at least one processor, at least One memory and computer program instructions stored in memory, it is real when computer program instructions are executed by processor Now such as the method for first aspect in above embodiment.
Fourth aspect, the embodiment of the invention provides a kind of computer readable storage mediums, are stored thereon with computer journey The method such as first aspect in above embodiment is realized in sequence instruction when computer program instructions are executed by processor.
Method, apparatus, equipment and the medium of administrative division switch prompting provided in an embodiment of the present invention, by comparing map Trellis-type determines whether to carry out zoning switching, solves and carries out wasting network flow when zoning switching judging in the prior art The high technical problem with power consumption, while improving response speed.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, will make below to required in the embodiment of the present invention Attached drawing is briefly described, for those of ordinary skill in the art, without creative efforts, also Other drawings may be obtained according to these drawings without any creative labor.
Fig. 1 is the system structure of existing administrative division switching navigation casting prompt;
Fig. 2 is the schematic diagram of redundant request and judgement in prior art;
Fig. 3 is the method flow diagram of the administrative division switch prompting of one embodiment of the invention;
Fig. 4-1 be one embodiment of the invention by map grid to administrative division data carry out cutting pretreatment;
Fig. 4-2 is that face data schematic diagram is stored in the administrative division border map grid data of one embodiment of the invention;
Fig. 5 be one embodiment of the invention by map grid to administrative division data carry out cutting Preprocessing Algorithm process Illustrate figure;
Fig. 6 is the method flow diagram for carrying out administrative division switching determination and casting of one embodiment of the invention;
Fig. 7 is the administrative division switch prompting system structure chart of one embodiment of the invention;
Fig. 8 is the structural block diagram of the device of the administrative division switch prompting of one embodiment of the invention;
Fig. 9 shows the hardware configuration signal of the equipment of administrative division switch prompting provided by one embodiment of the present invention Figure.
Specific embodiment
The feature and exemplary embodiment of various aspects of the invention is described more fully below, in order to make mesh of the invention , technical solution and advantage be more clearly understood, with reference to the accompanying drawings and embodiments, the present invention is further retouched in detail It states.It should be understood that specific embodiment described herein is only configured to explain the present invention, it is not configured as limiting the present invention. To those skilled in the art, the present invention can be real in the case where not needing some details in these details It applies.Below the description of embodiment is used for the purpose of better understanding the present invention to provide by showing example of the invention.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence " including ... ", it is not excluded that including There is also other identical elements in the process, method, article or equipment of the element.
Fig. 3 is a kind of method flow diagram of administrative division switch prompting of one embodiment of the invention, which comprises
S302 acquires the latitude and longitude information of current location;
S304 determines corresponding map grid type according to the latitude and longitude information;
S306 carries out administrative division in the map grid type and the upper map grid type difference once obtained Switch prompting, wherein the map grid type is used to describe the administrative division attribute of the latitude and longitude information.
Optionally, determine that corresponding map grid type includes: to obtain and the longitude and latitude according to the latitude and longitude information The corresponding map grid number of information;Corresponding map grid type is determined according to map grid number.
Optionally, obtaining map grid number corresponding with the latitude and longitude information includes at least one in following scheme Kind: map grid number corresponding with the latitude and longitude information is obtained from local data base;By data network from server Obtain map grid number corresponding with the latitude and longitude information.
Optionally, the map grid type includes at least one of following grid: internal map grid, border map Grid.Internal map grid representation is not joined with other administrative regions, border map grid, boundary inside administrative region Map grid expression is to join at administrative region edge with other administrative regions.
Optionally, in the map grid type and the upper map grid type difference once obtained, the warp is determined Current administrative division where latitude information.Carrying out administrative division switch prompting includes: that prompt enters the current administrative division.
Optionally, before determining corresponding map grid type according to the latitude and longitude information, the method also includes: Cutting pretreatment is carried out to entire administrative division face data by grid, marks map grid type corresponding with each grid, with Map vector data is stored in together in map grid data.
Specifically, carrying out cutting pretreatment to entire administrative division face data by grid includes: to obtain the entire administration Minimum circumscribed rectangle of the zoning on map;Calculate the map grid set in the minimum circumscribed rectangle;Traverse the map Each map grid in grid set, judges whether each map grid intersects with the line of demarcation of administrative division;Judging phase When friendship, corresponding map grid is determined as border map grid, when judging non-intersecting, corresponding map grid is determined as Internal map grid.
It is described in detail below with reference to scheme of the specific embodiment to the present embodiment:
Present embodiment, which is proposed, carries out cutting pretreatment to national administrative division data by map grid, in administration The map grid that zoning borders on boundary is marked, and stores the administrative division face data for belonging to this grid;Mobile Telephone Gps application Administrative division acquisition of information can be completed in process based on existing acquisition map grid data, and based in map grid data Administrative division properties/information judge that administrative division switches, thus solve the existing waste network flow of prior art and Power consumption of terminal problem.
One embodiment of the invention, which is proposed, carries out cutting pretreatment by data of the map grid to multiple administrative divisions.With Scheme of the present invention is further detailed for Fig. 4-1, Fig. 4-2., Fig. 4-1 be one embodiment of the invention by Map grid carries out cutting pretreatment to administrative division data, and Fig. 4-2 is the administrative division outland of one embodiment of the invention Face data schematic diagram is stored in figure grid data.
Two kinds of map grid 1 can be divided into after pretreatment) and 2).
1) grid is completely in inside administrative division, referred to as " administrative division internal map grid ", referred to as " internally Figure grid ", the region part that the boundary seen in Fig. 4-1 surrounds.For internal map grid, due to belonging to the administrative area of this grid Cuttings data are exactly net boundary, answer this without storing additional face data, only need to increase administrative division attribute for this grid.Such as In Fig. 4-1,
Grid2208.gridType=inter;// it is labeled as internal map grid
Grid2208.adcode=110105;// record affiliated administrative division code
Administrative division title belonging to the Chaoyang District, Beijing City Grid2208.adname=// record
Grid2187.gridType=inter;// it is labeled as internal map grid
Grid2187.adcode=110112;// mark affiliated administrative division code
The Tongzhou District, Beijing City Grid2187.adname=;// record affiliated administrative division title
2) grid is located at administrative division boundary, referred to as " administrative division border map grid ", referred to as " border map net Lattice " are shown in Fig. 4-1 kinds of grey parts.For border map grid, the administrative division face data due to belonging to this grid is not grid Boundary, it is therefore desirable to which storage belongs to all administrative division information and corresponding face data of this grid.Such as in Fig. 4-1 Grid2209 crosses over two administrative divisions, therefore can save two after administrative division splits pretreatment and belong to this grid Administrative division information, see Fig. 4-2.
Grid2209.gridType=border;// it is labeled as border map grid
Grid2209.adcode1=110105;The code of // record administrative division 1
The Chaoyang District, Beijing City Grid2209.adname1=// record administrative division 1 title
Grid2209.adPolygon=x1, y1;x2,y2;x3,y3;.. // record administrative division 110105 belongs to Home Network The longitude and latitude degree series face data of lattice, is shown in the Polygon110105 in Fig. 4-2
Grid2209.adcode2=110112;The code of // record administrative division 1
The Tongzhou District, Beijing City Grid2209.adname2=// record administrative division 1 title
Grid2209.adPolygon2=x1, y1;x2,y2;x3,y3;.. // record administrative division 110112 belongs to Home Network The longitude and latitude degree series face data of lattice, is shown in the Polygon110112 in Fig. 4-2
More administrative division data are according to array mode tissue in practical applications.
One embodiment of the invention, which is proposed, carries out the pretreated processing side of cutting to administrative division data by map grid Method and specific algorithm process.Scheme of the present invention is further detailed by taking Fig. 5, Fig. 6 as an example, for each administrative area Cuttings can obtain the internal map grid and border map grid in the face by following algorithm, complete administrative division face data Cutting pretreatment, and then the cutting pretreatment of national administrative division face data is completed, Fig. 5 is one embodiment of the invention by map Grid carries out the figure that illustrates of cutting Preprocessing Algorithm process, including diagram 5-1,5-2,5-3,5-4 to administrative division data. Fig. 6 is the method flow diagram that one embodiment of the invention carries out administrative division switching determination and casting.
1) boundary rectangle for obtaining cuttings Polygon in administrative area to be pre-treated is shown in diagram 5-1.
Its lower-left angle point is denoted as PointleftBottom, latitude and longitude coordinates are (XleftBottom,YleftBottom),
Its upper right angle point is denoted as PointrightTop, latitude and longitude coordinates are (XrightTop,YrightTop)。
2) a length of width of map grid longitudinal, a length of height in latitude direction.
3) minimum map grid set S to be determined is calculatedGrid, see diagram 5-2, diagram 5-3.
● the minimum map grid set S to be determined of initializationGrid={ }, point set S to be determinedPOint={ }.
● initialization longitudinal extension vernier i is 0, initializes latitude Directional Extension vernier j=0.
● from PointleftBottomTo longitudinal and latitude Directional Extension, extension point is denoted as Point (i, j), longitude and latitude Degree coordinate is (Xi, Yj)。
Xi=XleftBottom+ width*i // longitudinal is incremented by
Yj=YleftBottomSuccessively decrease in-height*j // latitude direction
If ● Xi>XrightTop, then longitudinal extends and terminates, and recording current i is imax;If Yj<YrightTop, then latitude Degree Directional Extension terminates, and recording current j is jmax
● meeting i≤imaxAnd j >=jmaxAll the points Point (i, j), be added to point set S to be determinedPointIn. Traverse SPointIn each point, map grid where its is calculated, is added to minimum map grid set S to be determinedGridIn.
5) S is traversedGridIn each map grid, judgement obtains inside with the geometrical relationship of administrative area cuttings Polygon Map grid and border map grid are shown in diagram 5-4.
It is non-intersecting: to give up
Include: this map grid is " internal map grid ", type and administrative division coding and title.
Intersection: this map grid is " border map grid ", and intersection is calculated in geometry, intersection, intersection pair The administrative division coding and title answered are stored into map grid data.
The present embodiment propose based in map grid data administrative division data carry out administrative division switching determination and The method of casting.
After administrative division face data is pre-processed and split by map grid, internal map grid has row Attribute is drawn in administrative division, and the administrative division face data for belonging to the grid is stored in border map grid data.Mobile Telephone Gps are applied The process of map grid request of data is the acquisition for completing this mesh row administrative division and drawing information, and institute separately is requested without frequently networking Locate administrative division, can determine that administrative division information and switching based on map grid data, comparison prior art means significantly drop Low network flow and the power wastage for frequently initiating network request.Progress administrative division switching determination and casting described in this programme Method flow it is as follows, flow chart is shown in Fig. 6.
STEP1: periodically numbering according to the map grid that the judgement of current longitude and latitude is presently in, if local without the ground The map datum of figure grid number, then obtain (wherein carrying the pretreated administrative division information of cutting) from server-side.
Note: obtaining the normal process of map grid data from server-side, does not increase extra power consumption consumption.
STEP2: judge the map grid type where current longitude and latitude:
Case1: internal map grid, without processing
Case2: border map grid, then according to the administrative division data stored in current longitude and latitude and grid map data Judge geometry inclusion relation, determines the administrative division where current longitude and latitude;If administrative division is different from previous cycle, sentence Surely administrative division switching, triggering navigation casting, such as " you come into Tongzhou District, Beijing City " has occurred.
One specific example of the administrative division navigation broadcasting system of low-power consumption of the present invention is as shown in Figure 7.Fig. 7 is The exemplary system architecture figure of one embodiment of the invention, including the application of server-side, Mobile Telephone Gps and mobile communications network.
The administrative division grid cutting preprocessing module of server-side is carried out national administrative division face data by map grid Cutting is stored in map grid data together with the pretreated map vector data of map data tile cutting;Map net Lattice data download module provides map grid data download service, supports to download corresponding map grid according to the grid number of request Data (inside includes map datum and administrative division properties/information).
User location timing acquisition module in Mobile Telephone Gps application periodically acquires the current latitude and longitude coordinates of user;Map Grid data request module obtains map grid data (including administrative division properties/information) from server-side and is stored in local; Local administrative area cutting-up changes judgment module and is based on map grid data, map grid type and letter where current longitude and latitude Breath determines whether administrative division switches, and switches in case of administrative area, then notifies that navigation broadcasting module is broadcasted.
Mobile communications network is as the communication channel between electronic map terminal and server-side.
Compared to existing scheme, the advantages of each embodiment of the invention, is included at least:
It reduces server-side interface load and complicated calculations: cutting pretreatment being carried out to administrative area cuttings by grid, with vector Map datum is stored in together in map grid data, and original map grid data download service can support system requirements;Clothes End be engaged in without saving national administrative division face data and its calculating service, reduces server-side calculated load and power consumption.
Reduce client network flow and power consumption of terminal: based on the row in the map grid data for downloading to client local Administrative division draws properties/information and carries out administrative division switching determination, carries out administrative division switching without networking according to ranging offset threshold value Determine, and complete the acquisition that information is drawn in this mesh row administrative division using existing map grid data request interface, client is without frequency Locating administrative division information separately is requested in numerous networking.Since map grid data can be buffered in client local, after downloading It is local to reuse, it, can for repeating the case where navigating in fixed area (map grid or set really downloaded) It realizes the administrative division switching judging for not depending on network and casting prompt, it is more obvious to reduce power consumption effect.
Fig. 8 is a kind of structural block diagram of the device of administrative division switch prompting of one embodiment of the invention, the device packet It includes:
Acquisition module 80, for acquiring the latitude and longitude information of current location;
Module 82 is obtained, for determining corresponding map grid type according to the latitude and longitude information;
Cue module 84, in the map grid type and when the upper map grid type difference once obtained, into Draw switch prompting in every trade administrative division, wherein the map grid type is used to describe the administrative division attribute of the latitude and longitude information.
Optionally, obtaining module 82 includes: acquiring unit, for obtaining map grid corresponding with the latitude and longitude information Number;Determination unit, for determining corresponding map grid type according to map grid number.
Acquiring unit can also obtain map grid number corresponding with the latitude and longitude information from local data base, And/or map grid corresponding with the latitude and longitude information is obtained from server by data network and is numbered.
Optionally, the map grid type includes following one: internal map grid, border map grid.
Optionally, described device further include: determining module, in the map grid type and the upper ground once obtained When figure trellis-type difference, the current administrative division where the latitude and longitude information is determined.
Cue module 84 may include: prompt unit, enter the current administrative division for prompting.
Optionally, described device further include:
Preprocessing module, for obtain module obtain the latitude and longitude information determine corresponding map grid type it Before, cutting pretreatment is carried out to entire administrative division face data by grid, marks map grid type corresponding with each grid, It is stored in map grid data together with map vector data.
It includes: to obtain the entire row that preprocessing module, which carries out cutting pretreatment to entire administrative division face data by grid, Draw the minimum circumscribed rectangle on map in administrative division;Calculate the map grid set in the minimum circumscribed rectangle;It traverses describedly Each map grid in figure grid set, judges whether each map grid intersects with the line of demarcation of administrative division;Judging When intersection, corresponding map grid is determined as border map grid, when judging non-intersecting, corresponding map grid is determined For internal map grid.
In addition, the method in conjunction with the administrative division switch prompting of Fig. 3 embodiment of the present invention described can be by administrative division The equipment of switch prompting is realized.Fig. 9 shows the equipment of administrative division switch prompting provided by one embodiment of the present invention Hardware structural diagram.
The equipment of administrative division switch prompting may include processor 901 and the storage for being stored with computer program instructions Device 902.
Specifically, above-mentioned processor 901 may include central processing unit (CPU) or specific integrated circuit (Application Specific Integrated Circuit, ASIC), or may be configured to implement implementation of the present invention One or more integrated circuits of example.
Memory 902 may include the mass storage for data or instruction.For example it rather than limits, memory 902 may include hard disk drive (Hard Disk Drive, HDD), floppy disk drive, flash memory, CD, magneto-optic disk, tape or logical With the combination of universal serial bus (Universal Serial Bus, USB) driver or two or more the above.It is closing In the case where suitable, memory 902 may include the medium of removable or non-removable (or fixed).In a suitable case, it stores Device 902 can be inside or outside data processing equipment.In a particular embodiment, memory 902 is nonvolatile solid state storage Device.In a particular embodiment, memory 902 includes read-only memory (ROM).In a suitable case, which can be mask ROM, programming ROM (PROM), erasable PROM (EPROM), the electric erasable PROM (EEPROM), electrically-alterable ROM of programming (EAROM) or the combination of flash memory or two or more the above.
Processor 901 is by reading and executing the computer program instructions stored in memory 902, to realize above-mentioned implementation The method of any one administrative division switch prompting in example.
In one example, the equipment of administrative division switch prompting may also include communication interface 903 and bus 910.Wherein, As shown in figure 9, processor 901, memory 902, communication interface 903 connect by bus 910 and complete mutual communication.
Communication interface 903 is mainly used for realizing in the embodiment of the present invention between each module, device, unit and/or equipment Communication.
Bus 910 includes hardware, software or both, and the component of the equipment of administrative division switch prompting is coupled to each other one It rises.For example it rather than limits, bus may include accelerated graphics port (AGP) or other graphics bus, enhancing industrial standard frame Structure (EISA) bus, front side bus (FSB), super transmission (HT) interconnection, Industry Standard Architecture (ISA) bus, infinite bandwidth interconnection, Low pin count (LPC) bus, memory bus, micro- channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI- Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association part (VLB) bus or The combination of other suitable buses or two or more the above.In a suitable case, bus 910 may include one Or multiple buses.Although specific bus has been described and illustrated in the embodiment of the present invention, the present invention considers any suitable bus Or interconnection.
In addition, in conjunction with the method for the administrative division switch prompting in above-described embodiment, the embodiment of the present invention can provide one kind Computer readable storage medium is realized.Computer program instructions are stored on the computer readable storage medium;The computer The method of any one administrative division switch prompting in above-described embodiment is realized when program instruction is executed by processor.
It should be clear that the invention is not limited to specific configuration described above and shown in figure and processing. For brevity, it is omitted here the detailed description to known method.In the above-described embodiments, several tools have been described and illustrated The step of body, is as example.But method process of the invention is not limited to described and illustrated specific steps, this field Technical staff can be variously modified, modification and addition after understanding spirit of the invention, or suitable between changing the step Sequence.
Functional block shown in structures described above block diagram can be implemented as hardware, software, firmware or their group It closes.When realizing in hardware, it may, for example, be electronic circuit, specific integrated circuit (ASIC), firmware appropriate, insert Part, function card etc..When being realized with software mode, element of the invention is used to execute program or the generation of required task Code section.Perhaps code segment can store in machine readable media program or the data-signal by carrying in carrier wave is passing Defeated medium or communication links are sent." machine readable media " may include any medium for capableing of storage or transmission information. The example of machine readable media includes electronic circuit, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), soft Disk, CD-ROM, CD, hard disk, fiber medium, radio frequency (RF) link, etc..Code segment can be via such as internet, inline The computer network of net etc. is downloaded.
It should also be noted that, the exemplary embodiment referred in the present invention, is retouched based on a series of step or device State certain methods or system.But the present invention is not limited to the sequence of above-mentioned steps, that is to say, that can be according in embodiment The sequence referred to executes step, may also be distinct from that the sequence in embodiment or several steps are performed simultaneously.
The above description is merely a specific embodiment, it is apparent to those skilled in the art that, For convenience of description and succinctly, the system, module of foregoing description and the specific work process of unit can refer to preceding method Corresponding process in embodiment, details are not described herein.It should be understood that scope of protection of the present invention is not limited thereto, it is any to be familiar with Those skilled in the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or substitutions, These modifications or substitutions should be covered by the protection scope of the present invention.

Claims (11)

1. a kind of method of administrative division switch prompting, which is characterized in that the described method includes:
Acquire the latitude and longitude information of current location;
Corresponding map grid type is determined according to the latitude and longitude information;
In the map grid type and the upper map grid type difference once obtained, administrative division switch prompting is carried out, Wherein, the map grid type is used to describe the administrative division attribute of the latitude and longitude information.
2. the method according to claim 1, wherein determining corresponding map according to the latitude and longitude information is obtained Trellis-type includes:
Obtain map grid number corresponding with the latitude and longitude information;
Corresponding map grid type is determined according to map grid number.
3. according to the method described in claim 2, being compiled it is characterized in that, obtaining map grid corresponding with the latitude and longitude information Number include:
Map grid number corresponding with the latitude and longitude information is obtained from local data base;And/or
Map grid number corresponding with the latitude and longitude information is obtained from server by data network.
4. the method according to claim 1, wherein the map grid type include internal map grid and/ Or border map grid.
5. the method according to claim 1, wherein the method also includes:
In the map grid type and the upper map grid type difference once obtained, the latitude and longitude information place is determined Current administrative division.
6. according to the method described in claim 5, it is characterized in that, progress administrative division switch prompting includes:
Prompt enters the current administrative division.
7. the method according to claim 1, wherein determining corresponding map net according to the latitude and longitude information Before lattice type, the method also includes:
Cutting pretreatment is carried out to entire administrative division face data by grid, marks map grid class corresponding with each grid Type is stored in map grid data together with map vector data.
8. the method according to the description of claim 7 is characterized in that it is pre- to carry out cutting to entire administrative division face data by grid Processing includes:
Obtain minimum circumscribed rectangle of the entire administrative division on map;
Calculate the map grid set in the minimum circumscribed rectangle;
Each map grid in the map grid set is traversed, judges that the line of demarcation of each map grid and administrative division is No intersection;
When judging intersection, corresponding map grid is determined as border map grid, it, will correspondingly when judging non-intersecting Figure grid is determined as internal map grid.
9. a kind of device of administrative division switch prompting, which is characterized in that described device includes:
Acquisition module, for acquiring the latitude and longitude information of current location;
Determining module, for determining corresponding map grid type according to the latitude and longitude information;
Cue module, it is administrative for carrying out in the map grid type and the upper map grid type difference once obtained Zoning switch prompting, wherein the map grid type is used to describe the administrative division attribute of the latitude and longitude information.
10. a kind of equipment of administrative division switch prompting characterized by comprising at least one processor, at least one storage The computer program instructions of device and storage in the memory, when the computer program instructions are executed by the processor Shi Shixian method for example of any of claims 1-8.
11. a kind of computer readable storage medium, is stored thereon with computer program instructions, which is characterized in that when the calculating Such as method of any of claims 1-8 is realized when machine program instruction is executed by processor.
CN201711381924.0A 2017-12-20 2017-12-20 Method, device, equipment and medium for prompting administrative division switching Active CN109945886B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711381924.0A CN109945886B (en) 2017-12-20 2017-12-20 Method, device, equipment and medium for prompting administrative division switching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711381924.0A CN109945886B (en) 2017-12-20 2017-12-20 Method, device, equipment and medium for prompting administrative division switching

Publications (2)

Publication Number Publication Date
CN109945886A true CN109945886A (en) 2019-06-28
CN109945886B CN109945886B (en) 2021-08-03

Family

ID=67004072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711381924.0A Active CN109945886B (en) 2017-12-20 2017-12-20 Method, device, equipment and medium for prompting administrative division switching

Country Status (1)

Country Link
CN (1) CN109945886B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442669A (en) * 2019-08-12 2019-11-12 广州小鹏汽车科技有限公司 A kind of whole scene determines the method and system of administrative zone position where positioning device
CN114360255A (en) * 2022-03-21 2022-04-15 北京闪马智建科技有限公司 Flow determination method and device, storage medium and electronic device
CN115238119A (en) * 2022-09-22 2022-10-25 中电信数字城市科技有限公司 Method and device for analyzing position information of oblique photography photo

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10311733A (en) * 1997-05-12 1998-11-24 Kenwood Corp Vehicle-mounted navigator
EP2148171A2 (en) * 2008-07-25 2010-01-27 Navteq North America, LLC Open area maps with guidance
CN102252685A (en) * 2010-05-21 2011-11-23 科菱航睿空间信息技术有限公司 Navigation electronic map data processing method and storage method based on same
CN102437890A (en) * 2011-10-31 2012-05-02 深圳市赛格导航科技股份有限公司 Method for managing radio based on real-time positioning information in vehicle and system thereof
CN103377585A (en) * 2012-04-25 2013-10-30 腾讯科技(深圳)有限公司 Method for locating administrative division based on longitude and latitude
CN104024799A (en) * 2011-12-27 2014-09-03 三菱电机株式会社 Navigation device and navigation method
CN104252489A (en) * 2013-06-28 2014-12-31 厦门雅迅网络股份有限公司 Method for fast obtaining position character description information according to latitude and longitude data
CN104636482A (en) * 2015-02-16 2015-05-20 百度在线网络技术(北京)有限公司 Target address determining method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10311733A (en) * 1997-05-12 1998-11-24 Kenwood Corp Vehicle-mounted navigator
EP2148171A2 (en) * 2008-07-25 2010-01-27 Navteq North America, LLC Open area maps with guidance
CN102252685A (en) * 2010-05-21 2011-11-23 科菱航睿空间信息技术有限公司 Navigation electronic map data processing method and storage method based on same
CN102437890A (en) * 2011-10-31 2012-05-02 深圳市赛格导航科技股份有限公司 Method for managing radio based on real-time positioning information in vehicle and system thereof
CN104024799A (en) * 2011-12-27 2014-09-03 三菱电机株式会社 Navigation device and navigation method
CN103377585A (en) * 2012-04-25 2013-10-30 腾讯科技(深圳)有限公司 Method for locating administrative division based on longitude and latitude
CN104252489A (en) * 2013-06-28 2014-12-31 厦门雅迅网络股份有限公司 Method for fast obtaining position character description information according to latitude and longitude data
CN104636482A (en) * 2015-02-16 2015-05-20 百度在线网络技术(北京)有限公司 Target address determining method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442669A (en) * 2019-08-12 2019-11-12 广州小鹏汽车科技有限公司 A kind of whole scene determines the method and system of administrative zone position where positioning device
CN114360255A (en) * 2022-03-21 2022-04-15 北京闪马智建科技有限公司 Flow determination method and device, storage medium and electronic device
CN114360255B (en) * 2022-03-21 2022-08-30 北京闪马智建科技有限公司 Flow determination method and device, storage medium and electronic device
CN115238119A (en) * 2022-09-22 2022-10-25 中电信数字城市科技有限公司 Method and device for analyzing position information of oblique photography photo

Also Published As

Publication number Publication date
CN109945886B (en) 2021-08-03

Similar Documents

Publication Publication Date Title
CN108932331B (en) Map data updating method, device and system
US20090216442A1 (en) Method, apparatus and computer program product for map feature detection
CN109945886A (en) Method, apparatus, equipment and the medium of administrative division switch prompting
JP2020516535A (en) Lane selection method, target vehicle and computer storage medium
CN110069580B (en) Road marking display method and device, electronic equipment and storage medium
CN111044056A (en) Positioning method based on road matching, chip subsystem and electronic equipment
CN105279211A (en) Push method for application and mobile terminal thereof
CN103308063A (en) Navigation method and navigation equipment for multiple destinations
CN106092116A (en) The generation of a kind of optimum travel route based on navigation terminal, air navigation aid and device
CN112765214B (en) Electronic map path matching method, system, server and storage medium
CN103604437A (en) Method and apparatus used for displaying road condition information
CN108572999A (en) The searching method and device of interest face AOI profiles
CN104794889A (en) Method and equipment for pushing order forms
CN105203119A (en) Navigation method and navigation system
CN106663375A (en) Traffic information updating method and device
US20090210147A1 (en) Method, Apparatus and Computer Program Product for Map Generation Using Perpendicular Projection to Merge Data
CN110023717A (en) The update of numerical map
CN102538815A (en) Method and device for dynamic display of road names
JP2009015739A (en) Traffic information distribution server, traffic information distribution system, and traffic information distribution method
CN108072375B (en) Information identification method in navigation and terminal
CN102840863A (en) Navigation method and navigation system for continuous intersections, navigation server and mobile terminal
CN110188152B (en) Electronic map road information processing method and device, electronic equipment and readable medium
CN109241453A (en) Public bus network method for pushing and device based on user location
CN111213118B (en) Position identification method and terminal
CN114323037B (en) Road segment position matching and navigation method and device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant