CN108280199B - Map switching method and device - Google Patents
Map switching method and device Download PDFInfo
- Publication number
- CN108280199B CN108280199B CN201810084738.9A CN201810084738A CN108280199B CN 108280199 B CN108280199 B CN 108280199B CN 201810084738 A CN201810084738 A CN 201810084738A CN 108280199 B CN108280199 B CN 108280199B
- Authority
- CN
- China
- Prior art keywords
- map
- engine
- map engine
- target
- user terminal
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9537—Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Remote Sensing (AREA)
- Instructional Devices (AREA)
- Navigation (AREA)
Abstract
The invention provides a map switching method and device. The method comprises the following steps: the server acquires the position information of the user terminal in real time and judges whether the user terminal passes through a preset boundary or not according to the position information; when the server judges that the preset boundary is crossed, acquiring corresponding optimal map engine information and business map layer data according to the target area information of the user terminal; the server sends the optimal map engine information and the service map layer data to the user terminal; the user terminal receives the corresponding data and judges whether the currently running map engine is a target map engine corresponding to the optimal map engine information; if not, the user terminal switches the currently running map engine to the target map engine, and displays the map of the target area based on the business map layer data and the target map engine. The method has high map switching efficiency, can switch the optimal map matched with the target area in real time according to the position information of the user terminal, saves the time of the user and improves the user experience.
Description
Technical Field
The invention relates to the technical field of map display, in particular to a map switching method and device.
Background
With the continuous development of map display technology, users are gradually used to acquire required electronic map information by using user terminals (such as smart phones), but the map feature integrity exhibited by electronic maps produced by different electronic map manufacturers (such as Google maps and Baidu maps) aiming at the same area is different, so that the map features of the same area acquired by the users corresponding to APPs through different electronic maps are different. The map switching method comprises the steps that map features shown by some electronic maps are few in maps of the same area, and the map features shown by some electronic maps are more, so that at present, a user needs to select the electronic map APP capable of showing the map features of a target area to the maximum extent from the APPs by switching the corresponding APPs of different electronic maps manually, the map switching efficiency of the map switching scheme is not high, the overall switching time is long, the switching success rate is low, and the user needs to spend a large amount of time to switch to the optimal electronic map for display.
Disclosure of Invention
In order to overcome the above disadvantages in the prior art, an object of the present invention is to provide a map switching method and apparatus, where the map switching method has high map switching efficiency, and can switch an optimal map matched with a target area for a user in real time according to location information of a user terminal, thereby saving user time and improving user experience.
Regarding to the method, an embodiment of the present invention provides a map switching method, where the method is applied to a user terminal and a server that communicate with each other, the user terminal includes a plurality of map engines, and the server stores all map engine information included in the user terminal. The method comprises the following steps:
the server acquires the position information of the user terminal in real time and judges whether the user terminal passes through a preset boundary or not according to the position information;
when the server judges that the user terminal crosses the preset boundary, the server obtains optimal map engine information corresponding to the target area information from all stored map engine information according to the target area information of the user terminal, and correspondingly obtains business map layer data of a target area under a target map engine corresponding to the optimal map engine information;
the server sends the optimal map engine information and the business map layer data to the user terminal;
the user terminal receives the optimal map engine information and the business map layer data and judges whether a currently running map engine is a target map engine corresponding to the optimal map engine information;
and if the currently running map engine is not the target map engine, the user terminal switches the currently running map engine to the target map engine and displays a map corresponding to a target area based on the business map layer data and the target map engine.
As for the method, the embodiment of the present invention further provides a map switching method, where the method is applied to a user terminal in communication connection with a server, where the user terminal includes a plurality of map engines, and the server stores all map engine information included in the user terminal. The method comprises the following steps:
receiving optimal map engine information and business map layer data which are sent by the server and correspond to the target area;
judging whether the map engine currently operated by the user terminal is a target map engine corresponding to the optimal map engine information or not according to the received optimal map engine information;
and if the currently running map engine is not the target map engine, switching the currently running map engine to the target map engine, and displaying a map corresponding to a target area based on the business map layer data and the target map engine.
In terms of a device, an embodiment of the present invention provides a map switching device, where the device is applied to a user terminal in communication connection with a server, the user terminal includes a plurality of map engines, and the server stores all map engine information included in the user terminal. The device comprises:
the data receiving module is used for receiving the optimal map engine information and the service map layer data which are sent by the server and correspond to the target area;
the engine judgment module is used for judging whether the map engine currently operated by the user terminal is a target map engine corresponding to the optimal map engine information according to the received optimal map engine information;
and the switching display module is used for switching the currently running map engine to the target map engine when the currently running map engine is not the target map engine, and displaying the map of the corresponding target area based on the service map layer data and the target map engine.
Compared with the prior art, the map switching method and the map switching device provided by the embodiment of the invention have the following beneficial effects: the map switching method is high in map switching efficiency, and can switch the optimal map matched with the target area for the user in real time according to the position information of the user terminal, so that the time of the user is saved, and the user experience is improved. The method is applied to a user terminal and a server which are communicated with each other, wherein the user terminal comprises a plurality of map engines, and the server stores all map engine information included by the user terminal. Firstly, the server acquires the position information of the user terminal in real time and judges whether the user terminal crosses a preset boundary according to the position information; secondly, when the server judges that the user terminal crosses the preset boundary, the server obtains optimal map engine information corresponding to the target area information from all stored map engine information according to the target area information of the user terminal, and correspondingly obtains service map layer data of a target area under a target map engine corresponding to the optimal map engine information; then, the server sends the optimal map engine information and the business map layer data to the user terminal; then, the user terminal receives the optimal map engine information and the business map layer data, and judges whether the currently running map engine is a target map engine corresponding to the optimal map engine information; and finally, if the currently running map engine is not the target map engine, the user terminal switches the currently running map engine to the target map engine and displays a map corresponding to a target area based on the service map layer data and the target map engine, so that the user terminal can switch and display an optimal electronic map corresponding to the target area in real time to improve user experience, wherein the target area is an area where a target place to which the user terminal goes when crossing a corresponding preset boundary is located.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments are briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope of the claims of the present invention, and it is obvious for those skilled in the art that other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic diagram of interaction between a server and at least one user terminal according to an embodiment of the present invention.
Fig. 2 is a first flowchart of a map switching method according to an embodiment of the present invention.
Fig. 3 is a second flowchart of the map switching method according to the embodiment of the present invention.
Fig. 4 is a third flowchart illustrating a map switching method according to an embodiment of the present invention.
Fig. 5 is a fourth flowchart illustrating a map switching method according to an embodiment of the present invention.
Fig. 6 is a block diagram illustrating a map switching apparatus according to an embodiment of the present invention.
Fig. 7 is another block diagram of a map switching device according to an embodiment of the present invention.
Icon: 20-a server; 10-a user terminal; 100-map switching means; 110-a data receiving module; 120-an engine judgment module; 130-switching display module; 140-direct display module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that, unless otherwise explicitly specified or limited, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art. Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1, an interaction between a server 20 and at least one user terminal 10 according to an embodiment of the present invention is shown. In the embodiment of the present invention, the server 20 is in communication connection with the at least one user terminal 10 through a network, and is configured to determine whether to allow the corresponding user terminal 10 to switch the currently displayed electronic map according to the current location information of each user terminal 10. The map engine information of the at least one user terminal 10 is stored in the server 20, and the user terminal 10 displays a map corresponding to the map system through the running map engine, for example, when one user terminal 10 includes a Baidu map engine, a Google map engine, and a high-level map engine, the user terminal 10 may correspondingly display a matched Baidu map, a Google map, or a high-level map by running the Baidu map engine, the Google map engine, or the high-level map engine, and each map engine corresponds to one electronic map.
In this embodiment, if the server 20 determines that a certain user terminal 10 needs to switch a currently displayed electronic map, the server 20 selects optimal map engine information matched with a target area for the user terminal 10 according to target area information corresponding to the user terminal 10 when the user terminal 10 moves, and correspondingly obtains service map layer data of the target area under a map engine corresponding to the optimal map engine information, and then sends the obtained optimal map engine information and the service map layer data to the corresponding user terminal 10, so that the user terminal 10 switches a currently operated map engine to the target map engine matched with the optimal map engine information according to the optimal map engine information, and displays a corresponding map based on the target map engine and the service map layer data, so that the user terminal 10 can switch and display the optimal electronic map corresponding to the target area in real time, so as to improve the user experience, wherein the target area is an area where a target location to which the user terminal 10 goes when crossing the corresponding preset boundary is located. In this embodiment, the user terminal 10 may be, but is not limited to, a smart phone, a Personal Computer (PC), a tablet PC, a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), and the like.
Optionally, please refer to fig. 2, which is a first flowchart illustrating a map switching method according to an embodiment of the present invention. In the embodiment of the present invention, the map switching method is applied to a user terminal 10 and a server 20 that communicate with each other, the user terminal 10 includes a plurality of map engines, and the server 20 stores all map engine information included in the user terminal 10, where each map engine corresponds to one electronic map. The detailed flow and steps of the map switching method shown in fig. 2 are explained in detail below.
In the embodiment of the invention, the map switching method comprises the following steps:
in step S210, the server 20 obtains the location information of the user terminal 10 in real time, and determines whether the user terminal 10 crosses a preset boundary according to the location information.
In this embodiment, the server 20 may obtain the location information of the user terminal 10 in real time by positioning the user terminal 10; the server 20 may also obtain the location information of the user terminal 10 in real time from a third party positioning detection system, wherein the third party positioning detection system may be, but is not limited to, a GPS global positioning system, a beidou positioning system, etc.; the server 20 may also obtain the location information of the user terminal 10 in real time by directly obtaining the location information from the user terminal 10, where the user terminal 10 may obtain the location information of itself through a probe detection system included in itself.
In the present embodiment, the server 20 stores preset boundary information corresponding to the user terminal 10 for communication connection, where the preset boundary information may be, but is not limited to, country boundary information, region boundary information, scenic spot boundary information, indoor and outdoor boundary information, service execution area boundary information, and the like. The preset boundary information stored in the server 20 and corresponding to each user terminal 10 may be different or different, and the specific situation may be set differently by the user corresponding to the user terminal 10 according to the actual requirement.
In this embodiment, the server 20 may obtain the position movement track of the user terminal 10 by analyzing the position information of the user terminal 10 obtained in real time, and determine whether the user terminal 10 crosses the corresponding preset boundary based on the position movement track.
In step S220, when it is determined that the user terminal 10 crosses the preset boundary, the server 20 obtains, according to the target area information of the user terminal 10, optimal map engine information corresponding to the target area information from all stored map engine information, and correspondingly obtains service map layer data of the target area under the target map engine corresponding to the optimal map engine information.
In this embodiment, after determining that the user terminal 10 crosses the corresponding preset boundary, the server 20 may determine a target area where the user terminal 10 crosses the preset boundary according to the position movement track of the user terminal 10. For example, a preset boundary of one user terminal 10 is an indoor and outdoor boundary, a position moving trajectory of the user terminal 10 is from indoor to outdoor, and a target area where the user terminal 10 crosses the preset boundary is an outdoor area.
In this embodiment, after obtaining the target area of the user terminal 10, the server 20 obtains the optimal map engine information corresponding to the target area information according to the target area information corresponding to the target area, and the service map layer data of the target area under the target map engine corresponding to the optimal map engine information. The target area information includes a name, a position, a range, facility information and the like corresponding to the target area, and the service map layer data includes distribution conditions of facilities, streets, traffic and the like of the target area in an electronic map corresponding to a corresponding target map engine.
Optionally, the step of obtaining the optimal map engine information corresponding to the target area information from all the stored map engine information according to the target area information of the user terminal 10 includes:
calculating the map feature integrity of each map engine at the corresponding target area according to the target area information;
and comparing the map feature integrity corresponding to each map engine, and selecting the map engine information corresponding to the map engine with the maximum map feature as the optimal map engine information corresponding to the target area information.
The map feature integrity can represent a map display condition corresponding to the target area of the corresponding map engine, and the electronic map corresponding to the map engine in the target area is more accurate when the numerical value of the map feature integrity is larger.
In step S230, the server 20 sends the optimal map engine information and the service map layer data to the user terminal 10.
In this embodiment, the server 20 may send the optimal map engine information and the service map layer data corresponding to the user terminal 10 to the corresponding matched user terminal 10 based on a network.
In step S240, the user terminal 10 receives the optimal map engine information and the service map layer data, and determines whether the currently running map engine is a target map engine corresponding to the optimal map engine information.
In this embodiment, after receiving the optimal map engine information and the service map layer data sent by the server 20, the user terminal 10 determines whether the currently running map engine of the user terminal 10 is the target map engine corresponding to the optimal map engine information by matching the currently running map engine with the optimal map engine information.
In step S250, if the currently running map engine is not the target map engine, the user terminal 10 switches the currently running map engine to the target map engine, and displays a map corresponding to the target area based on the service map layer data and the target map engine.
In this embodiment, if the currently running map engine of the user terminal 10 is not matched with the optimal map engine information, the user terminal 10 determines that the currently running map engine is not the target map engine, and switches the currently running map engine to the target map engine, so as to display a map of a corresponding target area based on the service map layer data and the target map engine, thereby implementing real-time switching display of an optimal electronic map corresponding to the target area, and improving user experience.
Optionally, the step of switching the currently running map engine to the target map engine by the user terminal 10, and displaying the map of the corresponding target area based on the service map layer data and the target map engine includes:
storing user data and service data displayed on a currently running map engine, and carrying out adaptation adjustment on the target map engine according to a preset engine adaptation standard to obtain an adapted target map engine;
and restoring and displaying the stored user data and the stored service data on the adapted target map engine, and correspondingly loading and displaying the service map layer data on the adapted target map engine so as to display the map of the target area through the target map engine.
In this embodiment, the map engines running on the user terminal 10 are all map engines adapted and adjusted based on a preset engine adaptation standard, and the preset engine adaptation standard can be used for performing standardized adaptation processing on map engines in various regions, so that user data and service data displayed on the adapted map engines cannot change due to map engine switching, thereby implementing seamless switching of the map engines and ensuring that users can always view the user data and service data displayed on the user terminal 10.
In this embodiment, the preset engine adaptation standard is stored in the user terminal 10, and each map engine needs to be adapted and adjusted based on the preset engine adaptation standard when running in a manner of unifying a mapping entry and an abstract map base class, so that the user terminal 10 can seamlessly switch target map engines to be switched.
In this embodiment, the user terminal 10 implements a switching process of a map engine by restoring and displaying user data and service data, which are originally displayed on a currently running map engine, on an adapted target map engine, and loads and displays service map layer data matched with the target map engine and the target area to the adapted target map engine after restoring and displaying the user data and the service data, so as to display a map corresponding to the target area based on the target map engine.
Optionally, please refer to fig. 3, which is a second flowchart of the map switching method according to the embodiment of the present invention. In this embodiment of the present invention, the map switching method shown in fig. 2 may further include:
step S260, if the currently running map engine is the target map engine, the user terminal 10 loads and displays the service map layer data on the currently running map engine, so as to directly display the map corresponding to the target area through the currently running map engine.
In this embodiment, if the currently running map engine of the user terminal 10 matches the optimal map engine information, the user terminal 10 determines that the currently running map engine is the target map engine, at this time, the currently running map engine of the user terminal 10 does not need to perform map engine switching, and the user terminal 10 may directly display the map corresponding to the target area based on the currently running map engine by directly loading and displaying the service map layer data on the currently running map engine by the user terminal 10.
Optionally, please refer to fig. 4, which is a third flowchart illustrating a map switching method according to an embodiment of the present invention. In the embodiment of the present invention, the map switching method shown in fig. 4 is applied to a user terminal 10 communicatively connected to a server 20, where the user terminal 10 includes a plurality of map engines, and the server 20 stores all map engine information included in the user terminal 10, where each map engine corresponds to one electronic map. The detailed flow and steps of the map switching method shown in fig. 4 will be described in detail below.
In the embodiment of the invention, the map switching method comprises the following steps:
in step S310, the optimal map engine information and the service map layer data corresponding to the target area, which are transmitted by the server 20, are received.
In this embodiment, after obtaining the optimal map engine information and the service map layer data corresponding to the target area to which the user terminal 10 goes through the preset boundary, the server 20 sends the optimal map engine information and the service map layer data to the user terminal 10, and the user terminal 10 correspondingly receives the optimal map engine information and the service map layer data.
Step S320, determining whether the map engine currently running in the user terminal 10 is the target map engine corresponding to the optimal map engine information according to the received optimal map engine information.
In this embodiment, the user terminal 10 determines whether the currently running map engine is the target map engine corresponding to the optimal map engine information by matching the currently running map engine with the optimal map engine information.
Step S330, if the currently running map engine is not the target map engine, switching the currently running map engine to the target map engine, and displaying a map corresponding to a target area based on the business map layer data and the target map engine.
In this embodiment, if the currently running map engine is not matched with the optimal map engine information, the user terminal 10 determines that the currently running map engine is not the target map engine, the user terminal 10 performs map engine switching on the currently running map engine by using the target map engine, and displays a map of a corresponding target area based on the switched target map engine and the service map layer data.
Optionally, the step of switching the currently running map engine to the target map engine, and displaying the map of the corresponding target area based on the service map layer data and the target map engine includes:
storing user data and service data displayed on a currently running map engine, and carrying out adaptation adjustment on the target map engine according to a preset engine adaptation standard to obtain an adapted target map engine;
and restoring and displaying the stored user data and the stored service data on the adapted target map engine, and correspondingly loading and displaying the service map layer data on the adapted target map engine so as to display the map of the target area through the target map engine.
The specific implementation process may refer to the above detailed description of step S250.
Optionally, please refer to fig. 5, which is a fourth flowchart illustrating a map switching method according to an embodiment of the present invention. In this embodiment of the present invention, the map switching method shown in fig. 4 may further include:
step S340, if the currently running map engine is the target map engine, loading and displaying the service map layer data on the currently running map engine, so as to directly display a map corresponding to the target area through the currently running map engine.
In this embodiment, if the currently running map engine matches the optimal map engine information, the user terminal 10 determines that the currently running map engine is the target map engine, at this time, the currently running map engine of the user terminal 10 does not need to switch the map engines, and the user terminal 10 may directly display the map corresponding to the target area based on the currently running map engine by directly loading and displaying the service map layer data on the currently running map engine by the user terminal 10.
Fig. 6 is a block diagram of a map switching apparatus 100 according to an embodiment of the present invention. In the embodiment of the present invention, the map switching apparatus 100 is applied to the user terminal 10 communicatively connected to the server 20, the user terminal 10 includes a plurality of map engines, and the server 20 stores all map engine information included in the user terminal 10, where each map engine corresponds to one electronic map. The map switching device 100 includes a data receiving module 110, an engine determining module 120, and a switching display module 130.
The data receiving module 110 is configured to receive the optimal map engine information and the service map layer data, which are sent by the server 20 and correspond to the target area.
In this embodiment, the data receiving module 110 may execute step S310 shown in fig. 4, and the specific execution step may refer to the above detailed description of step S310.
The engine determining module 120 is configured to determine, according to the received optimal map engine information, whether a map engine currently running in the user terminal 10 is a target map engine corresponding to the optimal map engine information.
In this embodiment, the engine determining module 120 may execute step S320 shown in fig. 4, and the specific execution step may refer to the above detailed description of step S320.
The switching display module 130 is configured to switch the currently running map engine to the target map engine when the currently running map engine is not the target map engine, and display a map of a corresponding target area based on the service map layer data and the target map engine.
In this embodiment, the switching and displaying module 130 switches the currently running map engine to the target map engine, and a manner of displaying a map of a corresponding target area based on the service map layer data and the target map engine includes:
storing user data and service data displayed on a currently running map engine, and carrying out adaptation adjustment on the target map engine according to a preset engine adaptation standard to obtain an adapted target map engine;
and restoring and displaying the stored user data and the stored service data on the adapted target map engine, and correspondingly loading and displaying the service map layer data on the adapted target map engine so as to display the map of the target area through the target map engine.
The switching display module 130 may execute step S330 shown in fig. 4, and the specific execution step may refer to the above detailed description of step S330.
Optionally, please refer to fig. 7, which is another block diagram of the map switching apparatus 100 according to the embodiment of the present invention. In the embodiment of the present invention, the map switching apparatus 100 may further include a direct display module 140.
The direct display module 140 is configured to load and display the service map layer data on the currently running map engine when the currently running map engine is the target map engine, so as to directly display a map corresponding to the target area through the currently running map engine.
In this embodiment, the direct display module 140 may execute step S340 shown in fig. 5, and the specific execution step may refer to the above detailed description of step S340.
In summary, in the map switching method and the map switching device provided in the embodiments of the present invention, the map switching efficiency of the map switching method is high, and an optimal map matching a target area can be switched for a user in real time according to the location information of the user terminal, so that the time of the user is saved, and the user experience is improved. The method is applied to a user terminal and a server which are communicated with each other, wherein the user terminal comprises a plurality of map engines, and the server stores all map engine information included by the user terminal. Firstly, the server acquires the position information of the user terminal in real time and judges whether the user terminal crosses a preset boundary according to the position information; secondly, when the server judges that the user terminal crosses the preset boundary, the server obtains optimal map engine information corresponding to the target area information from all stored map engine information according to the target area information of the user terminal, and correspondingly obtains service map layer data of a target area under a target map engine corresponding to the optimal map engine information; then, the server sends the optimal map engine information and the business map layer data to the user terminal; then, the user terminal receives the optimal map engine information and the business map layer data, and judges whether the currently running map engine is a target map engine corresponding to the optimal map engine information; and finally, if the currently running map engine is not the target map engine, the user terminal switches the currently running map engine to the target map engine and displays a map corresponding to a target area based on the service map layer data and the target map engine, so that the user terminal can switch and display an optimal electronic map corresponding to the target area in real time to improve user experience, wherein the target area is an area where a target place to which the user terminal goes when crossing a corresponding preset boundary is located.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (7)
1. A map switching method is applied to a user terminal and a server which are communicated with each other, wherein the user terminal comprises a plurality of map engines, and the server stores all map engine information included by the user terminal, and the method comprises the following steps:
the server acquires the position information of the user terminal in real time and judges whether the user terminal passes through a preset boundary or not according to the position information;
when the server judges that the user terminal crosses the preset boundary, the server obtains optimal map engine information corresponding to the target area information from all stored map engine information according to the target area information of the user terminal, and correspondingly obtains business map layer data of a target area under a target map engine corresponding to the optimal map engine information;
the server sends the optimal map engine information and the business map layer data to the user terminal;
the user terminal receives the optimal map engine information and the business map layer data and judges whether a currently running map engine is a target map engine corresponding to the optimal map engine information;
if the currently running map engine is not the target map engine, the user terminal switches the currently running map engine to the target map engine and displays a map corresponding to a target area based on the business map layer data and the target map engine;
the step of switching the currently running map engine to the target map engine by the user terminal and displaying the map of the corresponding target area based on the service map layer data and the target map engine comprises the following steps:
storing user data and service data displayed on a currently running map engine, and carrying out adaptation adjustment on the target map engine according to a preset engine adaptation standard to obtain an adapted target map engine;
and restoring and displaying the stored user data and the stored service data on the adapted target map engine, and correspondingly loading and displaying the service map layer data on the adapted target map engine so as to display the map of the target area through the target map engine.
2. The method according to claim 1, wherein the step of obtaining the optimal map engine information corresponding to the target area information from among all the stored map engine information according to the target area information of the user terminal comprises:
calculating the map feature integrity of each map engine at the corresponding target area according to the target area information;
and comparing the map feature integrity corresponding to each map engine, and selecting the map engine information corresponding to the map engine with the maximum map feature as the optimal map engine information corresponding to the target area information.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and if the currently operated map engine is the target map engine, the user terminal loads and displays the data of the service map layer on the currently operated map engine so as to directly display a map corresponding to a target area through the currently operated map engine.
4. A map switching method is applied to a user terminal which is in communication connection with a server, wherein the user terminal comprises a plurality of map engines, and the server stores all map engine information included in the user terminal, and the method comprises the following steps:
receiving optimal map engine information and business map layer data which are sent by the server and correspond to the target area;
judging whether the map engine currently operated by the user terminal is a target map engine corresponding to the optimal map engine information or not according to the received optimal map engine information;
if the currently running map engine is not the target map engine, switching the currently running map engine to the target map engine, and displaying a map corresponding to a target area based on the business map layer data and the target map engine;
the step of switching the currently running map engine to the target map engine and displaying the map of the corresponding target area based on the service map layer data and the target map engine comprises:
storing user data and service data displayed on a currently running map engine, and carrying out adaptation adjustment on the target map engine according to a preset engine adaptation standard to obtain an adapted target map engine;
and restoring and displaying the stored user data and the stored service data on the adapted target map engine, and correspondingly loading and displaying the service map layer data on the adapted target map engine so as to display the map of the target area through the target map engine.
5. The method of claim 4, further comprising:
and if the currently running map engine is the target map engine, loading and displaying the service map layer data on the currently running map engine so as to directly display the map corresponding to the target area through the currently running map engine.
6. A map switching apparatus applied to a user terminal communicatively connected to a server, the user terminal including a plurality of map engines, the server storing information of all the map engines included in the user terminal, the apparatus comprising:
the data receiving module is used for receiving the optimal map engine information and the service map layer data which are sent by the server and correspond to the target area;
the engine judgment module is used for judging whether the map engine currently operated by the user terminal is a target map engine corresponding to the optimal map engine information according to the received optimal map engine information;
the switching display module is used for switching the currently running map engine into the target map engine when the currently running map engine is not the target map engine, and displaying a map corresponding to a target area based on the business map layer data and the target map engine;
when the currently running map engine is not the target map engine, the switching display module switches the currently running map engine to the target map engine, and a mode of displaying a map of a corresponding target area based on the service map layer data and the target map engine includes:
storing user data and service data displayed on a currently running map engine, and carrying out adaptation adjustment on the target map engine according to a preset engine adaptation standard to obtain an adapted target map engine;
and restoring and displaying the stored user data and the stored service data on the adapted target map engine, and correspondingly loading and displaying the service map layer data on the adapted target map engine so as to display the map of the target area through the target map engine.
7. The apparatus of claim 6, further comprising:
and the direct display module is used for loading and displaying the service map layer data on the currently running map engine when the currently running map engine is the target map engine so as to directly display the map corresponding to the target area through the currently running map engine.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810084738.9A CN108280199B (en) | 2018-01-29 | 2018-01-29 | Map switching method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810084738.9A CN108280199B (en) | 2018-01-29 | 2018-01-29 | Map switching method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108280199A CN108280199A (en) | 2018-07-13 |
CN108280199B true CN108280199B (en) | 2020-12-01 |
Family
ID=62805550
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810084738.9A Active CN108280199B (en) | 2018-01-29 | 2018-01-29 | Map switching method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108280199B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111447088A (en) * | 2020-03-23 | 2020-07-24 | 成都西加云杉科技有限公司 | Alarm method, device, equipment and storage medium based on Internet of things |
CN114385161A (en) * | 2022-01-24 | 2022-04-22 | 重庆长安汽车股份有限公司 | Method for switching navigation SDK during operation and architecture thereof |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103187002A (en) * | 2011-12-29 | 2013-07-03 | 北京移动坚石信息技术有限公司 | Method for generating electronic map |
CN103377583A (en) * | 2012-04-17 | 2013-10-30 | 百度在线网络技术(北京)有限公司 | Map display method and map display system for mobile terminal, and GIS (geographical information system) server |
CN106776807A (en) * | 2016-11-24 | 2017-05-31 | 上海博泰悦臻网络技术服务有限公司 | A kind of map-indication method, system and electronic equipment |
CN107632769A (en) * | 2017-10-12 | 2018-01-26 | 携程旅游信息技术(上海)有限公司 | Map methods of exhibiting, device, electronic equipment, storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10169400B2 (en) * | 2015-06-19 | 2019-01-01 | International Business Machines Corporation | Geographic space management |
-
2018
- 2018-01-29 CN CN201810084738.9A patent/CN108280199B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103187002A (en) * | 2011-12-29 | 2013-07-03 | 北京移动坚石信息技术有限公司 | Method for generating electronic map |
CN103377583A (en) * | 2012-04-17 | 2013-10-30 | 百度在线网络技术(北京)有限公司 | Map display method and map display system for mobile terminal, and GIS (geographical information system) server |
CN106776807A (en) * | 2016-11-24 | 2017-05-31 | 上海博泰悦臻网络技术服务有限公司 | A kind of map-indication method, system and electronic equipment |
CN107632769A (en) * | 2017-10-12 | 2018-01-26 | 携程旅游信息技术(上海)有限公司 | Map methods of exhibiting, device, electronic equipment, storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108280199A (en) | 2018-07-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9582937B2 (en) | Method, apparatus and computer program product for displaying an indication of an object within a current field of view | |
US9702721B2 (en) | Map service with network-based query for search | |
CN108932331B (en) | Map data updating method, device and system | |
US8639803B2 (en) | Systems and method for predicting the future location of an entity | |
US8244227B2 (en) | Information providing device, mobile communication device, information providing system, information providing method, and program | |
KR102325495B1 (en) | Method and system for pushing point of interest information | |
US20160094942A1 (en) | Visual Representation Of Contact Location | |
CN102840864B (en) | A kind of method and apparatus being realized location navigation by Quick Response Code | |
US20140026065A1 (en) | Transportation service communication method, apparatus and system | |
KR101640964B1 (en) | Presentation of a digital map | |
EP2388553A1 (en) | Method, mobile device and computer program product for processing location information | |
CN106792545B (en) | Data transmission method, mobile terminal and server | |
US20100112989A1 (en) | Automatic detection of personal networks | |
KR20100117067A (en) | Graphical user interface for presenting location information | |
CN102822627B (en) | Position measurement apparatus and the method being used for producing positional information | |
KR20110024324A (en) | Appratus and method for tagging contents in portable terminal | |
CN116029719B (en) | Payment service recommendation method, electronic device and storage medium | |
CN102045637A (en) | Map data zone downloading method and location service terminal | |
CN108280199B (en) | Map switching method and device | |
CN109725928A (en) | Gray scale dissemination method, device, equipment and readable storage medium storing program for executing | |
CN107727109A (en) | Personalized speech reminding method and device and electronic equipment | |
US8874146B2 (en) | Determining geographic zone | |
CN102123203A (en) | Wallpaper replacing method and system of mobile communication terminal | |
KR20060012390A (en) | Mobile satation with function of operating application on lacation based and method thereof | |
CN104010270A (en) | Method, apparatus and system for displaying contact information on address list of mobile terminal |
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 |