CN109945886B - Method, device, equipment and medium for prompting administrative division switching - Google Patents

Method, device, equipment and medium for prompting administrative division switching Download PDF

Info

Publication number
CN109945886B
CN109945886B CN201711381924.0A CN201711381924A CN109945886B CN 109945886 B CN109945886 B CN 109945886B CN 201711381924 A CN201711381924 A CN 201711381924A CN 109945886 B CN109945886 B CN 109945886B
Authority
CN
China
Prior art keywords
map grid
map
longitude
administrative division
administrative
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.)
Active
Application number
CN201711381924.0A
Other languages
Chinese (zh)
Other versions
CN109945886A (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

Images

Landscapes

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

Abstract

The embodiment of the invention provides a method, a device, equipment and a medium for prompting administrative division switching. The method comprises the following steps: acquiring longitude and latitude information of a current position; acquiring the longitude and latitude information to determine a corresponding map grid type; and when the map grid type is different from the map grid type obtained last time, performing administrative division switching prompt, wherein the map grid type is used for describing administrative division attributes of the longitude and latitude information. By the technical scheme, the technical problems of network flow waste and high power consumption in switching judgment in the prior art can be solved.

Description

Method, device, equipment and medium for prompting administrative division switching
Technical Field
The invention relates to the technical field of data services, in particular to a method, a device, equipment and a medium for prompting administrative division switching.
Background
In the process of navigating by using the mobile phone navigation application by the user, when the administrative division where the user is located is changed, the change of the administrative division and the current administrative division where the user is located need to be prompted in a voice mode. Typical scenarios are: when the user drives the car to enter the Tongzhou area of Beijing city from the sunny area of Beijing city, the navigation automatically carries out voice announcement prompting to inform the user that 'you have entered the Tongzhou area of Beijing city'.
A system structure of an administrative division switching navigation broadcasting prompt in the conventional navigation is shown in fig. 1. The system consists of a mobile phone navigation application, a mobile communication network and a server.
The server stores a plurality of administrative region data in a database (data file); the server provides an online administrative division calculation service module/interface, calculates an administrative division where the longitude and latitude are located according to the longitude and latitude carried in the terminal request and the inclusion relation of the longitude and latitude and the administrative division data, and returns the administrative division to the terminal; navigation data provided by a map provider comprises administrative division data, one surface data (a closed longitude and latitude sequence, such as 'X1, Y1; X2, Y2; X3, Y3 … Xn, Yn') corresponds to one administrative area, and each administrative area is composed of a plurality of surface shape data.
A user position timing acquisition module in the mobile phone navigation application periodically acquires the current longitude and latitude coordinates; and the user position cache checking module checks whether the position deviation reaches a preset threshold value according to the current position and the position of the last judgment period of the user, and if so, the online administrative division acquiring module is informed to send a request to the server side to acquire the administrative division codes and names corresponding to the longitude and latitude. And the administrative division switching judgment module judges whether the current administrative division is consistent with the administrative division stored in the previous judgment period, if not, the administrative division is changed, and the navigation broadcasting module is informed to perform voice broadcasting.
The mobile communication network is used as a communication channel between the mobile phone navigation application and the server side.
The prior art scheme has two disadvantages:
the first disadvantage is that: the method for acquiring the current administrative division and switching judgment by the mobile navigation application networking wastes network flow and terminal power consumption, and meanwhile, the server-side heavy load response speed is low.
The mobile phone navigation application needs to be connected with a network to initiate a network request to a server to acquire an administrative division corresponding to the current longitude and latitude, so that network traffic is wasted, and the power consumption of the mobile phone terminal is obviously increased due to frequent networking requests. For mobile phone navigation application, reading GPS data, keeping a screen lighted and navigating and broadcasting result in high power consumption, frequent networking in an online mode can increase terminal power consumption, and standby and service time of a mobile phone terminal is shortened.
The server side performs geographic geometry inclusion calculation on national administrative division data in the database according to the longitude and latitude requested by the terminal every time, calculates the administrative division where the longitude and latitude are located, and has high calculation intensity, so that the server side has high requirements on processing performance and depends on more or higher configured servers; on the other hand, the processing time delay of the server is long, so that the response speed is slow.
The second disadvantage is that: the mobile phone navigation application sets a fixed position deviation threshold value to trigger a request and a judgment mode, so that redundant requests and judgment are caused, network flow and terminal power consumption are wasted
Since the position offset threshold is a preset fixed value, the initiation of an online request and the judgment of an administrative division are triggered as long as the distance between the longitude and latitude of the current time and the longitude and latitude of the previous period reaches the threshold, so that useless requests and judgment are caused. Fig. 2 is a schematic diagram of redundancy request and judgment in a prior art scheme. In fig. 2, the left area is administrative division a, the right area is administrative division B, and the left route is the user navigation route. According to the prior art, B, C, E, E, F is a judgment point for whether an administrative division is switched, a request for acquiring the administrative division needs to be sent to a server, but a request for responding to the administrative division is A, and a terminal judges that the administrative division is not changed and does not need navigation voice broadcasting. Obviously, the request and determination at point B, C, D, E, F is redundant, wasting network traffic and terminal power consumption.
In summary, the administrative domain switching scheme in the prior art has the technical problems of traffic waste and high power consumption.
Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a medium for prompting administrative division switching, which can solve the technical problems of traffic waste and high power consumption of an administrative division switching scheme in the related technology.
In a first aspect, an embodiment of the present invention provides a method for prompting administrative zone switching, where the method includes: acquiring longitude and latitude information of a current position; determining a corresponding map grid type according to the longitude and latitude information; and when the map grid type is different from the map grid type obtained last time, performing administrative division switching prompt, wherein the map grid type is used for describing administrative division attributes of the longitude and latitude information.
In a second aspect, an embodiment of the present invention provides an apparatus for prompting administrative zone switching, where the apparatus includes: the acquisition module is used for acquiring longitude and latitude information of the current position; the determining module is used for determining the corresponding map grid type according to the longitude and latitude information; and the prompting module is used for performing administrative division switching prompt when the map grid type is different from the map grid type obtained last time, wherein the map grid type is used for describing administrative division attributes of the longitude and latitude information.
The embodiment of the invention provides equipment for prompting administrative division switching, which comprises: at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of the first aspect of the embodiments described above.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which computer program instructions are stored, which, when executed by a processor, implement the method of the first aspect in the foregoing embodiments.
The method, the device, the equipment and the medium for prompting the administrative district switching provided by the embodiment of the invention judge whether the district switching is carried out or not by comparing the types of the map grids, solve the technical problems of network flow waste and high power consumption when the district switching is judged in the prior art, and improve the response speed at the same time.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a system structure of a conventional administrative division switching navigation broadcasting prompt;
FIG. 2 is a schematic illustration of redundancy request and determination in a prior art scheme;
FIG. 3 is a flowchart of a method for performing an administrative domain switching prompt according to an embodiment of the present invention;
FIG. 4-1 illustrates a pre-processing for partitioning administrative domain data according to a map grid according to an embodiment of the present invention;
FIG. 4-2 is a schematic diagram of data stored in the administrative division boundary map grid data according to an embodiment of the present invention;
FIG. 5 is a graphical illustration of the algorithm flow for the segmentation pre-processing of the administrative domain data by map grid according to one embodiment of the present invention;
fig. 6 is a flowchart of a method for performing administrative domain switching determination and broadcast according to an embodiment of the present invention;
FIG. 7 is a diagram of a system for prompting administrative domain switching according to an embodiment of the present invention;
fig. 8 is a block diagram showing an apparatus for prompting administrative division switching according to an embodiment of the present invention;
fig. 9 is a schematic diagram illustrating a hardware structure of a device for prompting administrative zone switching according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Fig. 3 is a flowchart of a method for prompting administrative zone switching according to an embodiment of the present invention, where the method includes:
s302, collecting longitude and latitude information of the current position;
s304, determining a corresponding map grid type according to the longitude and latitude information;
and S306, when the map grid type is different from the map grid type obtained last time, performing administrative division switching prompt, wherein the map grid type is used for describing administrative division attributes of the longitude and latitude information.
Optionally, determining the corresponding map grid type according to the longitude and latitude information includes: acquiring a map grid number corresponding to the longitude and latitude information; and determining the corresponding map grid type according to the map grid number.
Optionally, the obtaining of the map grid number corresponding to the longitude and latitude information includes at least one of the following schemes: acquiring a map grid number corresponding to the longitude and latitude information from a local database; and acquiring the map grid number corresponding to the longitude and latitude information from a server through a data network.
Optionally, the map grid type includes at least one of the following grids: an internal map grid, a boundary map grid. The internal map grid is inside the administrative region and is not connected with other administrative regions, and the boundary map grid is at the edge of the administrative region and is connected with other administrative regions.
Optionally, when the map grid type is different from the map grid type obtained last time, the current administrative division where the longitude and latitude information is located is determined. The prompting of the administrative division switching comprises the following steps: and prompting to enter the current administrative division.
Optionally, before determining the corresponding map grid type according to the latitude and longitude information, the method further includes: and carrying out segmentation pretreatment on the whole administrative region section data according to grids, marking the map grid type corresponding to each grid, and storing the map grid type and the vector map data in the map grid data.
Specifically, the preprocessing of segmenting the whole administrative region section data according to grids comprises the following steps: acquiring a minimum circumscribed rectangle of the whole administrative division on a map; calculating a map grid set in the minimum bounding rectangle; traversing each map grid in the map grid set, and judging whether the boundary of each map grid and an administrative division is intersected or not; and when the intersection is judged, determining the corresponding map grid as a boundary map grid, and when the intersection is judged, determining the corresponding map grid as an internal map grid.
The following describes the embodiments of the present invention in detail with reference to the following specific embodiments:
the embodiment provides a method for partitioning and preprocessing national administrative division data according to a map grid, marking the map grid at an administrative division bordering boundary, and storing administrative division surface data of an attributive grid; the mobile phone navigation application can complete the acquisition of administrative division information based on the existing flow for acquiring map grid data, and judges the administrative division switching based on the administrative division attributes/information in the map grid data, thereby solving the problems of network flow waste and terminal power consumption in the prior art.
One embodiment of the invention provides a preprocessing of segmenting data of a plurality of administrative divisions according to a map grid. The scheme of the invention is further illustrated by taking fig. 4-1 and fig. 4-2 as examples. Fig. 4-1 is a diagram illustrating a pre-processing of partition of the administrative region data according to the map grid according to an embodiment of the present invention, and fig. 4-2 is a diagram illustrating a data storage surface in the administrative region boundary map grid data according to an embodiment of the present invention.
After preprocessing, two types of map grids 1) and 2) can be obtained.
1) The grid is completely located inside the administrative division, which is called "map grid inside the administrative division", and is referred to as "map grid inside" for short, see the area part enclosed by the boundary in fig. 4-1. For the internal map grid, because the administrative region division data belonging to the grid is the grid boundary, no additional surface data needs to be stored, and only the administrative region division attribute needs to be added to the grid. For example as in figure 4-1 of the drawings,
grid2208.gridType ═ inter; // Mark as internal map grid
Grid2208. encode 110105; // record the administrative division code to which it belongs
Grid2208 adname ═ administrative division name of sunny district// record in Beijing
Gridtype inter; // Mark as internal map grid
Adicode 110112, grid 2187; // mark belonging to the administrative division code
Adime, tokyo, municipality; // record name of administrative division
2) The grid is located at the boundary of the administrative division, and is called as an 'administrative division boundary map grid', and is called as a 'boundary map grid' for short, and is shown in gray parts of 4-1. For the boundary map grid, since administrative region area data belonging to the grid is not a grid boundary, all administrative region area information belonging to the grid and corresponding area data need to be stored. For example, Grid2209 in fig. 4-1, which spans two administrative divisions, so that the administrative division information of the two home grids is saved after the administrative division splitting pre-processing, see fig. 4-2.
Gridtype ═ border; // Mark as boundary map grid
Grid2209.adcode1 ═ 110105; // record code of administrative division 1
Grid2209. adname1. the name of the sunny district// record administrative district 1 in Beijing
Grid2209.ad polygon ═ x1, y 1; x2, y 2; x3, y 3; ..// record longitude and latitude sequence plane data of home grid of administrative division 110105, see Polygon110105 in FIG. 4-2
Grid2209.adcode2 ═ 110112; // record code of administrative division 1
Grid2209. adname2. the name of Tongzhou district// record administrative district 1 of Beijing City
Grid2209.ad polygon2 ═ x1, y 1; x2, y 2; x3, y 3; ..// record longitude and latitude sequence plane data of home grid of administrative division 110112, see Polygon110112 in FIG. 4-2
In practical application, multiple lines of political region data are organized in an array mode.
One embodiment of the invention provides a processing method and a specific algorithm flow for carrying out segmentation pretreatment on administrative division data according to a map grid. To further explain the scheme of the present invention by taking fig. 5 and fig. 6 as an example, for each administrative division, the internal map grid and the boundary map grid of the surface can be obtained through the following algorithm, the segmentation pretreatment of the administrative division data is completed, and further the segmentation pretreatment of the national administrative division data is completed, fig. 5 is an explanatory diagram of an algorithm flow for performing the segmentation pretreatment on the administrative data according to the map grid in an embodiment of the present invention, and includes diagrams 5-1, 5-2, 5-3, and 5-4. Fig. 6 is a flowchart of a method for performing administrative domain switching determination and broadcast according to an embodiment of the present invention.
1) And acquiring a circumscribed rectangle of the Polygon of the administrative district to be pretreated, which is shown in a graph 5-1.
The lower left corner Point is marked as PointleftBottomLongitude and latitude coordinates of (X)leftBottom,YleftBottom),
The upper right corner Point is marked as PointrightTopLongitude and latitude coordinates of (X)rightTop,YrightTop)。
2) The longitudinal direction of the map grid is width, and the latitudinal direction is height.
3) Obtaining the minimum map grid set S to be judged by calculationGridSee FIG. 5-2 and FIG. 5-3.
● initializing the minimum to-be-determined map grid set SGridSet of points to be determined S { }Point={}。
● initializes the longitude extension cursor i to 0 and initializes the latitude extension cursor j to 0.
● from PointleftBottomExtending to the longitude direction and the latitude direction, marking the extension Point as Point (i, j), and the longitude and latitude coordinates of the extension Point as (X)i,Yj)。
Xi=XleftBottom+ width i// longitudinal increment
Yj=YleftBottom-height j// latitudinal decrease
● if Xi>XrightTopIf yes, the longitudinal direction expansion is ended, and the current i is recorded as imax(ii) a If Y isj<YrightTopIf so, ending the latitude direction expansion and recording the current j as jmax
● satisfy i<=imaxAnd j is>=jmaxAll points (i, j) of the points are added into the Point set S to be judgedPointIn (1). Traverse SPointCalculating each point in the map grid set to obtain the map grid where the point is, and adding the map grid set to be judged into the minimum map grid set S to be judgedGridIn (1).
5) Traverse SGridAnd judging the geometric relationship with the administrative district Polygon to obtain an internal map grid and a boundary map grid, which are shown in fig. 5-4.
Disjoint: abandon
Comprises the following steps: this map grid is the "internal map grid", the mark type and administrative division codes and names.
Intersecting: the map grid is a boundary map grid, intersecting surfaces are obtained through geometric calculation, and administrative division codes and names corresponding to the intersecting surfaces and the intersecting surfaces are stored in map grid data.
The present embodiment proposes a method for performing administrative division switching determination and broadcast based on administrative division data in map grid data.
After the administrative region section data are preprocessed and split according to the map grids, the internal map grids have administrative region attributes, and the administrative region section data belonging to the grids are stored in the boundary map grid data. The mobile phone navigation application finishes the acquisition of the administrative division information of the grid in the map grid data request process, the administrative division where the individual requests are located does not need to be frequently networked, the administrative division information can be judged and switched based on the map grid data, and compared with the prior art, the power consumption waste of network flow and frequently initiated network requests is obviously reduced. The method for judging and broadcasting the administrative division switching is as follows, and a flow chart is shown in fig. 6.
STEP 1: and periodically judging the current map grid number according to the current longitude and latitude, and if map data of the map grid number does not exist locally, acquiring the map grid number from a server (wherein the map grid number carries administrative division information after segmentation pretreatment).
Note: the standard process of obtaining the map grid data from the server does not increase extra power consumption.
STEP2, judging the type of the map grid where the current longitude and latitude is located:
case1 internal map grid, No processing required
case2, namely, judging the geometric inclusion relationship according to the current longitude and latitude and administrative division data stored in the grid map data, and determining the administrative division where the current longitude and latitude is located; and if the administrative division is different from the previous period, judging that the administrative division switching occurs, and triggering navigation broadcasting, such as 'you enter the Tongzhou area of Beijing city'.
Fig. 7 shows a specific example of the low-power consumption administrative division navigation broadcasting system according to the present invention. Fig. 7 is a diagram of an exemplary system configuration including a server, a handset navigation application, and a mobile communications network, in accordance with an embodiment of the present invention.
The administrative division grid segmentation preprocessing module of the server divides national administrative division plane data according to map grids, and stores the national administrative division plane data and vector map data subjected to grid segmentation preprocessing of the map data in the map grid data; the map grid data downloading module provides a map grid data downloading service and supports downloading of corresponding map grid data (including map data and administrative division attributes/information inside) according to the requested grid number.
A user position timing acquisition module in the mobile phone navigation application periodically acquires the current longitude and latitude coordinates of a user; the map grid data request module acquires map grid data (including administrative division attributes/information) from a server and stores the map grid data in the local; the local administrative district switching judgment module judges whether the administrative district is switched according to the map grid type and the information of the current longitude and latitude based on the map grid data, and if the administrative district is switched, the navigation broadcasting module is informed to broadcast.
The mobile communication network is used as a communication channel between the electronic map terminal and the service end.
Compared with the prior scheme, the advantages of the various embodiments of the invention at least comprise:
reducing the load of the server interface and the complex calculation: the administrative region is segmented and preprocessed according to grids, and is stored in map grid data together with vector map data, and the original map grid data downloading service can support system requirements; the server does not need to store the national administrative region section data and the calculation service thereof, and the calculation load and the power consumption of the server are reduced.
The network flow of the client and the power consumption of the terminal are reduced: the administrative division switching judgment is carried out based on the administrative division attributes/information downloaded to the map grid data of the local client, the administrative division switching judgment is not required to be carried out according to distance offset threshold value networking, the acquisition of the administrative division information of the local grid is completed by utilizing the existing map grid data request interface, and the client does not need to frequently network and independently request the administrative division information. Because the map grid data can be cached in the local client, the map grid data can be locally reused after being downloaded, and for the situation of repeated navigation in a fixed area (actually, a downloaded map grid or set), the administrative division switching judgment and the broadcast prompt which do not depend on the network can be realized, and the effect of reducing the power consumption is more obvious.
Fig. 8 is a block diagram of an apparatus for prompting administrative division switching according to an embodiment of the present invention, where the apparatus includes:
an acquisition module 80, configured to acquire longitude and latitude information of a current location;
an obtaining module 82, configured to determine a corresponding map grid type according to the latitude and longitude information;
and a prompting module 84, configured to perform an administrative division switching prompt when the map grid type is different from the map grid type obtained last time, where the map grid type is used to describe an administrative division attribute of the longitude and latitude information.
Optionally, the obtaining module 82 includes: the acquiring unit is used for acquiring a map grid number corresponding to the longitude and latitude information; and the determining unit is used for determining the corresponding map grid type according to the map grid number.
The obtaining unit may further obtain a map grid number corresponding to the latitude and longitude information from a local database, and/or obtain a map grid number corresponding to the latitude and longitude information from a server through a data network.
Optionally, the map grid type includes one of: an internal map grid, a boundary map grid.
Optionally, the apparatus further comprises: and the determining module is used for determining the current administrative division where the longitude and latitude information is located when the map grid type is different from the map grid type obtained last time.
The prompting module 84 may include: and the prompting unit is used for prompting the entering of the current administrative division.
Optionally, the apparatus further comprises:
and the preprocessing module is used for carrying out segmentation preprocessing on the whole administrative region section data according to grids before the acquisition module acquires the longitude and latitude information to determine the corresponding map grid type, marking the map grid type corresponding to each grid, and storing the map grid type and the vector map data in the map grid data.
The preprocessing module carries out segmentation preprocessing on the whole administrative region sectional data according to grids and comprises the following steps: acquiring a minimum circumscribed rectangle of the whole administrative division on a map; calculating a map grid set in the minimum bounding rectangle; traversing each map grid in the map grid set, and judging whether the boundary of each map grid and an administrative division is intersected or not; and when the intersection is judged, determining the corresponding map grid as a boundary map grid, and when the intersection is judged, determining the corresponding map grid as an internal map grid.
In addition, the method for prompting the administrative domain switching according to the embodiment of the present invention described in conjunction with fig. 3 may be implemented by a device for prompting the administrative domain switching. Fig. 9 is a schematic diagram illustrating a hardware structure of a device for prompting administrative zone switching according to an embodiment of the present invention.
The device for political zone switch prompting may include a processor 901 and a memory 902 having stored computer program instructions.
Specifically, the processor 901 may include a Central Processing Unit (CPU), or an Application Specific Integrated Circuit (ASIC), or may be configured as one or more Integrated circuits implementing the embodiments of the present invention.
Memory 902 may include mass storage for data or instructions. By way of example, and not limitation, memory 902 may include a Hard Disk Drive (HDD), floppy Disk Drive, flash memory, optical Disk, magneto-optical Disk, tape, or Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 902 may include removable or non-removable (or fixed) media, where appropriate. The memory 902 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 902 is a non-volatile solid-state memory. In a particular embodiment, the memory 902 includes Read Only Memory (ROM). Where appropriate, the ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or flash memory or a combination of two or more of these.
The processor 901 reads and executes the computer program instructions stored in the memory 902 to implement any one of the methods for prompting administrative zone switching in the above embodiments.
In one example, the device for administrative zone switching prompting may also include a communications interface 903 and a bus 910. As shown in fig. 9, the processor 901, the memory 902, and the communication interface 903 are connected via a bus 910 to complete communication with each other.
The communication interface 903 is mainly used for implementing communication between modules, apparatuses, units and/or devices in the embodiments of the present invention.
Bus 910 includes hardware, software, or both to couple the components of the device that administers the partition switch alert to each other. By way of example, and not limitation, a bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hypertransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an infiniband interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a video electronics standards association local (VLB) bus, or other suitable bus or a combination of two or more of these. Bus 910 can include one or more buses, where appropriate. Although specific buses have been described and shown in the embodiments of the invention, any suitable buses or interconnects are contemplated by the invention.
In addition, in combination with the method for prompting administrative division switching in the foregoing embodiments, embodiments of the present invention may provide a computer-readable storage medium to implement the method. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the above-described embodiments of a method for performing an administrative zone switching alert.
It is to be understood that the invention is not limited to the specific arrangements and instrumentality described above and shown in the drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.

Claims (9)

1. A method for prompting administrative district switching, the method comprising:
acquiring longitude and latitude information of a current position;
determining a corresponding map grid type according to the longitude and latitude information;
when the map grid type is different from the map grid type obtained last time, performing administrative division switching prompt, wherein the map grid type is used for describing administrative division attributes of the longitude and latitude information;
before determining the corresponding map grid type according to the longitude and latitude information, the method further comprises the following steps:
carrying out segmentation pretreatment on the whole administrative region section data according to grids, marking map grid types corresponding to each grid, and storing the map grid types and the vector map data in map grid data;
the pretreatment of segmentation of the whole administrative district section data according to grids comprises the following steps:
acquiring a minimum circumscribed rectangle of the whole administrative division on a map;
calculating a map grid set in the minimum bounding rectangle;
traversing each map grid in the map grid set, and judging whether the boundary of each map grid and an administrative division is intersected or not;
and when the intersection is judged, determining the corresponding map grid as a boundary map grid, and when the intersection is judged, determining the corresponding map grid as an internal map grid.
2. The method of claim 1, wherein determining the corresponding map grid type based on obtaining the longitude and latitude information comprises:
acquiring a map grid number corresponding to the longitude and latitude information;
and determining the corresponding map grid type according to the map grid number.
3. The method of claim 2, wherein obtaining a map grid number corresponding to the latitude and longitude information comprises:
acquiring a map grid number corresponding to the longitude and latitude information from a local database; and/or
And acquiring the map grid number corresponding to the longitude and latitude information from a server through a data network.
4. The method of claim 1, wherein the map mesh types include an internal map mesh and/or a boundary map mesh.
5. The method of claim 1, further comprising:
and when the map grid type is different from the map grid type obtained last time, determining the current administrative division in which the longitude and latitude information is located.
6. The method of claim 5, wherein performing an administrative zone switch prompt comprises:
and prompting to enter the current administrative division.
7. An apparatus for performing an administrative zone switch alert, the apparatus comprising:
the acquisition module is used for acquiring longitude and latitude information of the current position;
the determining module is used for determining the corresponding map grid type according to the longitude and latitude information;
the prompting module is used for performing administrative division switching prompting when the map grid type is different from the map grid type obtained last time, wherein the map grid type is used for describing administrative division attributes of the longitude and latitude information;
the preprocessing module is used for carrying out segmentation preprocessing on the whole administrative region section data according to grids before determining the corresponding map grid type according to the longitude and latitude information, marking the map grid type corresponding to each grid, and storing the map grid type and the vector map data in the map grid data;
the preprocessing module is specifically configured to:
acquiring a minimum circumscribed rectangle of the whole administrative division on a map;
calculating a map grid set in the minimum bounding rectangle;
traversing each map grid in the map grid set, and judging whether the boundary of each map grid and an administrative division is intersected or not;
and when the intersection is judged, determining the corresponding map grid as a boundary map grid, and when the intersection is judged, determining the corresponding map grid as an internal map grid.
8. An apparatus for prompting administrative zone switching, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of any of claims 1-6.
9.A computer-readable storage medium having computer program instructions stored thereon, which when executed by a processor implement the method of any one of claims 1-6.
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 CN109945886A (en) 2019-06-28
CN109945886B true 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)

Families Citing this family (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
CN114360255B (en) * 2022-03-21 2022-08-30 北京闪马智建科技有限公司 Flow determination method and device, storage medium and electronic device
CN115238119B (en) * 2022-09-22 2023-01-03 中电信数字城市科技有限公司 Method and device for analyzing position information of oblique photography photo

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3274982B2 (en) * 1997-05-12 2002-04-15 株式会社ケンウッド In-vehicle navigation device
US20100021013A1 (en) * 2008-07-25 2010-01-28 Gale William N 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
CN102437890B (en) * 2011-10-31 2014-02-26 深圳市赛格导航科技股份有限公司 Method for managing radio based on real-time positioning information in vehicle and system thereof
DE112011106048T5 (en) * 2011-12-27 2014-09-11 Mitsubishi Electric Corp. Navigation device and navigation method
CN103377585B (en) * 2012-04-25 2017-02-08 腾讯科技(深圳)有限公司 Method for locating administrative division based on longitude and latitude
CN104252489B (en) * 2013-06-28 2019-04-09 厦门雅迅网络股份有限公司 A method of position character description information is quickly obtained according to longitude and latitude data
CN104636482B (en) * 2015-02-16 2019-03-26 百度在线网络技术(北京)有限公司 Method and apparatus for determining destination address

Also Published As

Publication number Publication date
CN109945886A (en) 2019-06-28

Similar Documents

Publication Publication Date Title
CN108133619B (en) Parking lot parking prediction method and device, storage medium and terminal equipment
CN109945886B (en) Method, device, equipment and medium for prompting administrative division switching
CN105466435B (en) Route planning method and device of navigation system
CN111006682A (en) Navigation route planning method and device, electronic equipment and storage medium
CN105279211A (en) Push method for application and mobile terminal thereof
CN111275383B (en) Distribution range generation method and device, computer equipment and storage medium
CN104102637A (en) Method and device for generating hot spot region
CN115665665A (en) Moving path recognition method, recognition device, electronic equipment and readable storage medium
US20200035097A1 (en) Parking lot information management system, parking lot guidance system, parking lot information management program, and parking lot guidance program
CN100387098C (en) Information providing method based on position and system
CN113418531A (en) Navigation route determination method and device, electronic equipment and computer storage medium
CN109344247B (en) Method and apparatus for outputting information
CN116129643A (en) Bus travel characteristic identification method, device, equipment and medium
CN112052276B (en) Mining method and device for riding route
CN114973745B (en) Parking lot recommendation method and automobile
JP2018205041A (en) Information acquisition device, information acquisition system, information acquisition method, and information acquisition program
CN111291953B (en) Method, device and equipment for determining boarding point and computer readable storage medium
CN111787490A (en) Pseudo base station track identification method, device, equipment and storage medium
US10902655B1 (en) Editing cached map titles
CN105741152A (en) Identity information verification method and device based on taxi taking
CN103970778A (en) Bus information query method based on mobile terminal of user
CN113821736B (en) Method, device, equipment and medium for predicting vehicle destination based on prefix tree
CN112836991B (en) Site planning method and device, terminal equipment and readable storage medium
CN115171416B (en) Recommended driving information sending method, device, electronic equipment and medium
CN116739191B (en) Hot spot grid identification method and device, storage medium and electronic equipment

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