CN113326245B - Method, apparatus, device and computer readable medium for switching map service - Google Patents

Method, apparatus, device and computer readable medium for switching map service Download PDF

Info

Publication number
CN113326245B
CN113326245B CN202010128784.1A CN202010128784A CN113326245B CN 113326245 B CN113326245 B CN 113326245B CN 202010128784 A CN202010128784 A CN 202010128784A CN 113326245 B CN113326245 B CN 113326245B
Authority
CN
China
Prior art keywords
map service
map
test
version
service area
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
CN202010128784.1A
Other languages
Chinese (zh)
Other versions
CN113326245A (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.)
Beijing Jingdong Qianshi Technology Co Ltd
Original Assignee
Beijing Jingdong Qianshi Technology 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 Beijing Jingdong Qianshi Technology Co Ltd filed Critical Beijing Jingdong Qianshi Technology Co Ltd
Priority to CN202010128784.1A priority Critical patent/CN113326245B/en
Publication of CN113326245A publication Critical patent/CN113326245A/en
Application granted granted Critical
Publication of CN113326245B publication Critical patent/CN113326245B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/219Managing data history or versioning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44536Selecting among different versions

Abstract

The invention discloses a method, a device, equipment and a computer readable medium for switching map services, and relates to the technical field of computers. One embodiment of the method comprises the following steps: determining a map service state and an identification of a map service area involved in map service; matching a test version of the map service area based on the map service status and the identification of the map service area, the map service including a plurality of map service areas; and testing the map service formed by the map service areas corresponding to the test versions, and switching the test versions to preset versions according to test results. The embodiment can improve the switching efficiency of the map service version.

Description

Method, apparatus, device and computer readable medium for switching map service
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a computer readable medium for switching map services.
Background
Users of map data have high demands on the behavior and timeliness of maps, and real world changes need to be quickly embodied in map services. The situation is that the geographic space information provided by the map reflects the current latest situation as much as possible.
A common practice with existing maps is to hierarchically process the data. Such as: the topographic data is not changed basically in a foreseeable short period; road traffic facility services are typically changed less frequently, and quarterly or monthly updates can meet most of the needs; points of interest (Point of Interest, POI) change more frequently; road conditions, traffic events, weather information, etc. are changed in real time.
In the process of implementing the present invention, the inventor finds that at least the following problems exist in the prior art: in the process of testing the map service, the map service version needs to be manually switched, and the technical problem of low switching efficiency exists.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, apparatus, device, and computer readable medium for switching map services, which can improve the switching efficiency of map service versions.
To achieve the above object, according to one aspect of the embodiments of the present invention, there is provided a method of switching a map service, including:
determining a map service state and an identification of a map service area involved in map service;
matching a test version of the map service area based on the map service status and the identification of the map service area, the map service including a plurality of map service areas;
and testing the map service formed by the map service areas corresponding to the test versions, and switching the test versions to preset versions according to test results.
The map service state includes: test status, pre-release status, and release status.
The matching the test version of the map service area based on the map service state and the identification of the map service area comprises the following steps:
and matching the test version of the map service area in a data table of the map service area based on the map service state and the identification of the map service area, wherein the data table comprises the corresponding relation among the map service state, the identification of the map service area and the version of the map service area.
The matching of the test version of the map service area based on the map service state and the identification of the map service area further comprises:
and calling the map data of the test version according to the test version of the map service area and the index data of the map service area.
The map data is data stored in a gridding.
The map service state comprises a pre-release state, and the preset version comprises a version of the map service area in a test state;
or alternatively, the first and second heat exchangers may be,
the map service state comprises a release state, and the preset version comprises a version of the map service area in the pre-release state.
The map service state comprises a test state, and the preset version comprises a version of the map service area in a pre-release state;
or alternatively, the first and second heat exchangers may be,
the map service state comprises a pre-release state, and the preset version comprises a version of the map service area in the release state.
According to a second aspect of an embodiment of the present invention, there is provided an apparatus for switching a map service, including:
the state module is used for determining the map service state and the identification of the map service area involved in the map service;
the matching module is used for matching the test version of the map service area based on the map service state and the identification of the map service area, and the map service comprises a plurality of map service areas;
and the switching module is used for testing the map service formed by the map service areas corresponding to the test versions and switching the test versions to the preset versions according to the test results.
According to a third aspect of an embodiment of the present invention, there is provided an electronic device for switching a map service, including:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the methods as described above.
According to a fourth aspect of embodiments of the present invention, there is provided a computer readable medium having stored thereon a computer program which when executed by a processor implements a method as described above.
One embodiment of the above invention has the following advantages or benefits: determining a map service state and an identification of a map service area involved in map service; matching a test version of the map service area based on the map service state and the identification of the map service area, the map service including a plurality of map service areas; and testing the map service formed by the map service areas corresponding to the test versions, and switching the test versions to the preset versions according to the test results. After the test version of the map service area is obtained by matching, the map service area can be automatically switched to the preset version according to the test result. Therefore, the switching efficiency of the map service version can be improved.
Further effects of the above-described non-conventional alternatives are described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
fig. 1 is a schematic diagram of a main flow of a method of switching a map service according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a cluster access map service according to an embodiment of the invention;
FIG. 3 is a schematic diagram of a default version of a map service area according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of data identification and data version of an embodiment of the present invention;
FIG. 5 is a diagram of index data and data volumes according to an embodiment of the present invention
Fig. 6 is a flow chart of a handover map service according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a main structure of an apparatus for switching a map service according to an embodiment of the present invention;
FIG. 8 is an exemplary system architecture diagram in which embodiments of the present invention may be applied;
fig. 9 is a schematic diagram of a computer system suitable for use in implementing an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present invention are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The high-precision map data is a data asset with high acquisition and production cost, the data value is high, and after the local data is updated, the historical data is abandoned in a very uneconomical way. The accumulation of historical data is the accumulation of data assets, which can still function in many ways, such as: the method can be used as a training sample of an algorithm, a map environment of a simulation scene and the like. Users of high-precision map services may include systems and platforms in addition to vehicles and end devices. The map service as part of the online algorithm training test and online simulation scenario may lead to failure of the simulation scenario library if updated, i.e., offline.
Map services have different states: in the release online process, only operation and maintenance personnel can access the data in the release process; when released to an online service environment, but before formally entering an operation environment, users hope to have a limited range including test vehicles and terminals to access; when released to an online operating environment, all legitimate users are accessible.
In the process of testing the map service, different environments are physically isolated, the map data is manually upgraded, and the map service version switching operation efficiency is low.
In order to solve the technical problem of low map service version switching operation efficiency, the following technical scheme in the embodiment of the invention can be adopted.
Referring to fig. 1, fig. 1 is a schematic diagram of a main flow of a method of switching a map service according to an embodiment of the present invention, matching a test version of a map service area to test the map service, and switching the version of the map service according to the test result. As shown in fig. 1, the method specifically comprises the following steps:
s101, determining the map service state and the identification of the map service area involved in the map service.
In the embodiment of the invention, the map service has different map service states, and specifically comprises the following steps: test status, pre-release status, and release status.
In the release online process, it is desirable that only the operation and maintenance personnel can access the data in the release process, which corresponds to the test state. When released to an online service environment, but before formally entering an operating environment, it is desirable that a limited range of users including test vehicles and terminals be accessible, the above process corresponds to a pre-release state. When the user issues to an online operation environment, all legal users can access the online operation environment, and the process corresponds to the issuing state.
It will be appreciated that the map service status may be determined based on the actual requirements of the test map service.
As one example, if the map service has not passed the test state, the map service state is determined to be the test state. As another example, if the map service has passed the test state but has not passed the pre-release state, the map service state is determined to be the pre-release state. As yet another example, if the map drawing has passed through the pre-posting state, then the map service is determined to be in the posting state.
The high-precision map is high-density high-added value data on the basis of the basic map, and can be divided into different logic units based on acquisition, business requirements, application scenes and management requirements of the data, and the logic units can be called map service areas.
As an example, the high-precision map may be divided into map service areas according to the batch of collected data, knowing the operation line of the business. Such as: operating line 1: a-B-C, run line 2: D-E-F. The service line 1 is set as a map service area 1, and the service line 2 is set as a map service area 2.
As another example, a high-definition map may be divided into map service areas by geographic location. Such as: city 1 serves as map service area 1 and city 2 serves as map service area 2.
It will be appreciated that the map service area is part of a high-definition map that is logically divided.
Each map service area contains data such as road network models, road facilities, point clouds and the like, and can independently meet the high-precision map requirements of specific service areas. Versions of map data for each map service area are managed independently. A specific version of data for a map service area is referred to as a map service area instance.
In an embodiment of the present invention, the map service area may include a plurality of versions. As one example, for map service area a, a test version of map service area a, a pre-release version of map service area a, and a release version of map service area a are included. It will be appreciated that each map service area has a corresponding version for each map service state.
In the embodiment of the invention, in the process of switching the map service, the identification of the map service area can be obtained based on the area related to the map service. As one example, the map service involves road a. In terms of the map service area, when the road a is included in each of the map service area 1 and the map service area 2, the map service area to which the map service relates is identified as the map service area 1 and the map service area 2.
S102, matching a test version of the map service area based on the map service state and the identification of the map service area, wherein the map service comprises a plurality of map service areas.
In the embodiment of the invention, corresponding clusters participate in each test map service state. Corresponding to each test map service state, the clusters corresponding to the test states are: testing the cluster; the clusters corresponding to the pre-release state are: pre-publishing the cluster; the clusters corresponding to the release states are: the cluster is published.
As one example, the number of test clusters is minimal; the number of pre-release clusters is smaller than the number of release clusters and larger than the number of test clusters; the number of publishing clusters is the largest.
Of course, the number of test clusters, the number of pre-release clusters and the number of release clusters are all elastically scalable.
One map service area instance publishing process needs to be performed step by step: the test state is reached, the pre-release state is reached, and the release state is reached.
Referring to fig. 2, fig. 2 is a schematic diagram of a cluster access map service according to an embodiment of the present invention. The service clusters include a test cluster, a pre-release cluster, and a release cluster. The map service state includes a test state, a pre-release state, and a release state.
The rights to access the map services are different for each cluster, and different clusters may access different map service states. The test cluster can access all three map service states; the pre-release cluster can access the pre-release state and the release state; the publication cluster may access the publication status.
The map service areas are distinguished by identifiers, and as one example, the map service includes 10 map service areas, that is, a map service area 1, a map service area 2, a map service area 3, a map service area 4, a map service area 5, a map service area 6, a map service area 7, a map service area 8, a map service area 9, and a map service area 10, respectively. Wherein the number is an identification of the map service area.
In the embodiment of the invention, each map service area records the versions of different map service states. By the identification of the map service area, when the version number of the map service state is not specified, the default version of the map service area in the corresponding cluster can be accessed.
Referring to fig. 3, fig. 3 is a schematic diagram of a default version of a map service area according to an embodiment of the present invention. In fig. 3, there are version numbers of different map service states corresponding to each map service area. The respective clusters may access corresponding versions of the map service area. As one example, the map service area is identified as 1, and the version of the test state is a12; version of the pre-release state is a11; the version of the release state is a11.
It is understood that the test version of the map service area is matched based on the map service status and the identification of the map service area. That is, according to fig. 3, it is possible to match a test version of a map service area according to a map service state and an identification of the map service area. As an example, if the map service state is the pre-release state and the identifier of the map service area is 2, the test version of the matching map service area is: A21.
specifically, the table in fig. 3 may be a data table of a map service area, and the data table of the map service area includes a map service state, an identification of the map service area, and a correspondence relationship of a version of the map service area. It will be appreciated that the test version of the map service area is matched in the data table of the map service area based on the map service status and the identification of the map service area.
Each map service area respectively manages own version, the metadata of the map service areas stores default versions of different map service states, and data identifiers and data versions contained in the versions are recorded.
Referring to fig. 4, fig. 4 is a schematic diagram of data identification and data version, including two tables, according to an embodiment of the present invention. The left table is a correspondence table of the identifications and versions of the map service areas. The right table is a corresponding table of data identifications and data versions. It will be appreciated that the metadata of the map service area includes the table in fig. 3, and also includes two tables in fig. 4. Wherein the right table of fig. 4 may be the index data.
The version in the left diagram of fig. 4 is made up of multiple versions of data in the right table of fig. 4. As an example, the version corresponding to the identifier 1 of the map service area is: A11. based on the relationship between A11 and the data identification in the right table, the following can be obtained: a11 is composed of a11, a21, and a31, totaling three versions of data. The version corresponding to the identifier 1 of the map service area is: A12. based on the relationship between A12 and the data identification in the right table, the following can be obtained: a12 is composed of a12, a21, and a31, totaling three versions of data.
Referring to fig. 5, fig. 5 is a schematic diagram of index data and a data body according to an embodiment of the present invention, wherein the left table in fig. 5 is index data and the right table is a data body.
In the embodiment of the invention, metadata of the map service area and map data of the map service area are respectively stored. The metadata of the map service area comprises index data, default versions of map service states, and data identifiers and data versions contained in the versions. Map data of a map service area is referred to as a data volume. The data volume is accessible by indexing the data.
The data volume can be stored in a grid manner in view of the high density data. The gridding storage refers to dividing a data body into gridding block storage according to a space range. The data body of fig. 5 corresponds to a plurality of grids, and each grid data contains a data identifier and a data version. The association of index data and data volumes can be managed more finely to support partial updates.
As one example, the identification of map service areas: version 1: A11. according to the index data: a11 is composed of a11, a21, and a 31.
Identification of map service area: version 1: A12. according to the index data: a12 is composed of a12, a21, and a 31.
Then, for version a12, there is no need to delete all of the data volume of a11, only a partial update is needed, namely: the a11 is updated to the a12.
Therefore, the map data can be conveniently transmitted, loaded in blocks and partially updated due to the networked storage of the data body, namely the map data, so that the updating speed can be improved, and the storage space can be saved.
That is, a version corresponding to the identification of the map service area may be regarded as a test version of the map service area. And retrieving the map data of the test version according to the test version of the map service area and the index data of the map service area. A12 and the like in fig. 4 can be understood as map data.
And retrieving the map data of the test version according to the test version of the map service area and the index data of the map service area. The same map data can be accessed through the same map service area and the same version under different map service states.
S103, testing the map service formed by the map service areas corresponding to the test versions, and switching the test versions to the preset versions according to the test results.
In an embodiment of the present invention, the map service includes a plurality of map service areas. After the test versions of the map service areas are obtained by matching, each map service area can be formed into a map service, and the map service can be tested.
As one example, the map service includes a map service area 1, a map service area 2, and a map service area 3. Matching to obtain a map service area 1: a11, map service area 2: a23 and map service area 3: A32. a11, a23, and a32 are composed into a map service to test the map service.
And testing the map service, and switching the test version to the preset version according to the test result. Test results may include test success and test failure.
As one example, a version of test success, and a version of test failure are preset. If the map service is tested successfully, switching the test version to a version with a preset test success; and if the test map service fails, switching the test version to a preset test failure version.
In the embodiment of the invention, independently running service clusters are deployed in different map service states such as a test state, a pre-release state, a release state and the like to respectively provide services for different users.
Depending on the amount of users and the amount of access, the scaling of service capabilities can be achieved by adding or subtracting the number of service instances. The service instance is a service process, the service cluster is composed of a plurality of service instances, and service requests are distributed to different service processes for execution through load balancing.
These service instances have the same map service program code and only control the service content through different service profiles.
The service content is set in the configuration file to belong to a test cluster, a pre-release cluster or a release cluster, and different service processes have respective configuration files. And forming clusters by the service processes with the same configuration according to the configuration file, wherein the clusters are a test service cluster, a pre-release service cluster and a release cluster respectively. The number of service clusters is dynamically increased or decreased according to different cluster access amounts and access pressures so as to achieve the 'extension' or 'contraction' of service capability, thereby meeting service requirements and optimizing resources.
The service instance of the test state can access all versions of the map service area; the service instance of the pre-release state can access the pre-release state and the version of the map service area of the release state; the service instance of the published state may only access the version of the map service area of the published state.
The accessed version can be controlled through the map service state, so that the versions of the same map service area accessed in each cluster can be ensured to be consistent.
Referring to fig. 6, fig. 6 is a schematic flow chart of switching map services according to an embodiment of the present invention, which specifically includes:
s601, testing state.
After the map data is produced, the identification and version of the map service area are distributed, the map data are uploaded to a server, and metadata of the map service area are registered.
The map service state is determined as follows: and testing the state. Based on the test status and the identification of the map service area, the test version of the map service area is matched.
S602, judging whether the map service corresponding to the test state is successful or not.
The test cluster can access the map service corresponding to the test state, and if the test is successful, the test state is switched to the pre-release state, namely S603 is executed; if the map service corresponding to the test state fails, the test state is switched back to the test state, and the map service is reproduced, i.e. S601 is executed.
S603, pre-release state.
The map service state is determined as follows: pre-release status. Based on the pre-release status and the identification of the map service area, the test version of the map service area is matched.
S604, judging whether the map service corresponding to the pre-release state is successful.
The pre-release cluster can access the map service corresponding to the pre-release state, and if the map service corresponding to the pre-release state is tested to be successful, the pre-release state is switched to the release state, namely S605 is executed; if the map service corresponding to the pre-release state fails, the pre-release state is switched back to the test state for verification again, and then S601 is executed.
S605, issuing a state.
The map service state is determined as follows: the status is published. Based on the distribution status and the identification of the map service area, the test version of the map service area is matched.
S606, judging whether the map service corresponding to the test release state is successful or not.
The publishing cluster can access the map service corresponding to the publishing state, and if the map service corresponding to the publishing state is tested to be successful, the service is formally operated; if the map service corresponding to the release state fails, the switch release state is returned to the release state and verified again, i.e., S603 is executed.
It can be understood that, based on the technical solution of the embodiment in fig. 6, the map service composed of the map service areas corresponding to the test versions is tested, and in the case that the test results are test failure, there are the following two cases:
case one:
the map service state comprises a pre-release state, and is switched to a preset version according to the test result. The preset version includes a version of the map service area under test.
And a second case:
the map service state comprises a release state, and is switched to a preset version according to the test result. The preset version includes a version of the map service area in the pre-release state.
The map service formed by the map service areas corresponding to the test versions is tested, and under the condition that the test results are successful, the following two conditions exist:
and a third case:
the map service state comprises a test state, and is switched to a preset version according to a test result. The preset version includes a version of the preset release state.
Case four:
the map service state comprises a pre-release state, and is switched to a preset version according to the test result. The preset version includes a version of the release state.
In the embodiment of the present invention, the preset version may be the latest version of the current map service state or a pre-designated version. That is, the preset version may be preset according to actual requirements.
In the embodiment of the invention, the map service state and the identification of the map service area involved in the map service are determined; matching a test version of the map service area based on the map service state and the identification of the map service area, the map service including a plurality of map service areas; and testing the map service formed by the map service areas corresponding to the test versions, and switching the test versions to the preset versions according to the test results. After the test version of the map service area is obtained by matching, the map service area can be automatically switched to the preset version according to the test result. The map service is online and withdrawn in different service clusters, so that the switching efficiency of the map service version can be improved.
Referring to fig. 7, fig. 7 is a schematic diagram of a main structure of an apparatus for switching a map service according to an embodiment of the present invention, the apparatus for switching a map service may implement a method for switching a map service, and as shown in fig. 7, the apparatus for switching a map service specifically includes:
a status module 701 is configured to determine a map service status and an identification of a map service area involved in the map service.
The matching module 702 is configured to match a test version of a map service area based on a map service status and an identification of the map service area, where the map service includes a plurality of map service areas.
And the switching module 703 is used for testing the map service composed of the map service areas corresponding to the test versions and switching the test versions to the preset versions according to the test results.
In one embodiment of the invention, the map service state includes: test status, pre-release status, and release status.
In one embodiment of the present invention, the matching module 702 is specifically configured to match a test version of the map service area in a data table of the map service area based on the map service state and the identifier of the map service area, where the data table includes a correspondence relationship between the map service state, the identifier of the map service area, and the version of the map service area.
In one embodiment of the present invention, the matching module 702 is further configured to retrieve the map data of the test version according to the test version of the map service area and the index data of the map service area.
In one embodiment of the invention, the map data is data that is stored in a grid.
In one embodiment of the invention, the map service state includes a pre-release state, and the pre-set version includes a version of the map service area under the test state;
or alternatively, the first and second heat exchangers may be,
the map service state includes a release state, and the preset version includes a version of the map service area in the pre-release state.
In one embodiment of the present invention, the map service state includes a test state, and the preset version includes a version of the map service area in the pre-release state;
or alternatively, the first and second heat exchangers may be,
the map service state comprises a pre-release state, and the preset version comprises a version of the map service area in the release state.
Fig. 8 illustrates an exemplary system architecture 800 of a method of switching a map service or an apparatus of switching a map service to which an embodiment of the present invention may be applied.
As shown in fig. 8, a system architecture 800 may include terminal devices 801, 802, 803, a network 804, and a server 805. The network 804 serves as a medium for providing communication links between the terminal devices 801, 802, 803 and the server 805. The network 804 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 805 through the network 804 using the terminal devices 801, 802, 803 to receive or send messages or the like. Various communication client applications such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only) may be installed on the terminal devices 801, 802, 803.
The terminal devices 801, 802, 803 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 805 may be a server providing various services, such as a background management server (by way of example only) that provides support for shopping-type websites browsed by users using the terminal devices 801, 802, 803. The background management server may analyze and process the received data such as the product information query request, and feedback the processing result (e.g., the target push information, the product information—only an example) to the terminal device.
It should be noted that, the method for switching the map service provided in the embodiment of the present invention is generally executed by the server 805, and accordingly, the device for switching the map service is generally disposed in the server 805.
It should be understood that the number of terminal devices, networks and servers in fig. 8 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
Referring now to FIG. 9, there is illustrated a schematic diagram of a computer system 900 suitable for use in implementing an embodiment of the present invention. The terminal device shown in fig. 9 is only an example, and should not impose any limitation on the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 9, the computer system 900 includes a Central Processing Unit (CPU) 901, which can execute various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 902 or a program loaded from a storage section 908 into a Random Access Memory (RAM) 903. In the RAM 903, various programs and data necessary for the operation of the system 900 are also stored. The CPU 901, ROM 902, and RAM 903 are connected to each other through a bus 904. An input/output (I/O) interface 905 is also connected to the bus 904.
The following components are connected to the I/O interface 905: an input section 906 including a keyboard, a mouse, and the like; an output portion 907 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage portion 908 including a hard disk or the like; and a communication section 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the internet. The drive 910 is also connected to the I/O interface 905 as needed. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on the drive 910 so that a computer program read out therefrom is installed into the storage section 908 as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 909 and/or installed from the removable medium 911. The above-described functions defined in the system of the present invention are performed when the computer program is executed by a Central Processing Unit (CPU) 901.
The computer readable medium shown in the present invention may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The described modules may also be provided in a processor, for example, as: a processor includes a transmitting unit, an acquiring unit, a determining unit, and a first processing unit. The names of these units do not constitute a limitation on the unit itself in some cases, and for example, the transmitting unit may also be described as "a unit that transmits a picture acquisition request to a connected server".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to include:
determining a map service state and an identification of a map service area involved in map service;
matching a test version of the map service area based on the map service state and the identification of the map service area, wherein the map service comprises a plurality of map service areas;
and testing the map service formed by the map service areas corresponding to the test versions, and switching the test versions to preset versions according to test results.
According to the technical scheme of the embodiment of the invention, the map service state and the identification of the map service area related to the map service are determined; matching a test version of the map service area based on the map service state and the identification of the map service area, the map service including a plurality of map service areas; and testing the map service formed by the map service areas corresponding to the test versions, and switching the test versions to the preset versions according to the test results. After the test version of the map service area is obtained by matching, the map service area can be automatically switched to the preset version according to the test result. Therefore, the switching efficiency of the map service version can be improved.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives can occur depending upon design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (9)

1. A method of switching map services, comprising:
determining a map service state and an identification of a map service area involved in map service;
matching a test version of the map service area based on the map service status and the identification of the map service area, the map service including a plurality of map service areas;
testing map service formed by map service areas corresponding to the test versions, and automatically switching the test versions to preset versions according to test results;
the map service state includes: test status, pre-release status, and release status.
2. The method of switching map services according to claim 1, wherein said matching a test version of a map service area based on said map service status and an identification of said map service area comprises:
and matching the test version of the map service area in a data table of the map service area based on the map service state and the identification of the map service area, wherein the data table comprises the corresponding relation among the map service state, the identification of the map service area and the version of the map service area.
3. The method of switching map services according to claim 1, wherein after matching the test version of the map service area based on the map service status and the identification of the map service area, further comprising:
and calling the map data of the test version according to the test version of the map service area and the index data of the map service area.
4. A method of switching map services according to claim 3, wherein said map data is data stored in a grid.
5. The method of switching map services according to claim 1, wherein the map service state includes a pre-release state, and the pre-set version includes a version of the map service area in a test state;
or alternatively, the first and second heat exchangers may be,
the map service state comprises a release state, and the preset version comprises a version of the map service area in the pre-release state.
6. The method of switching map services according to claim 1, wherein the map service state includes a test state, and the preset version includes a version of the map service area in a pre-release state;
or alternatively, the first and second heat exchangers may be,
the map service state comprises a pre-release state, and the preset version comprises a version of the map service area in the release state.
7. An apparatus for switching map services, comprising:
the state module is used for determining the map service state and the identification of the map service area involved in the map service; the map service state includes: test state, pre-release state and release state;
the matching module is used for matching the test version of the map service area based on the map service state and the identification of the map service area, and the map service comprises a plurality of map service areas;
and the switching module is used for testing the map service formed by the map service areas corresponding to the test versions and automatically switching the test versions to the preset versions according to the test results.
8. An electronic device for switching map services, comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-6.
9. A computer readable medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the method according to any of claims 1-6.
CN202010128784.1A 2020-02-28 2020-02-28 Method, apparatus, device and computer readable medium for switching map service Active CN113326245B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010128784.1A CN113326245B (en) 2020-02-28 2020-02-28 Method, apparatus, device and computer readable medium for switching map service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010128784.1A CN113326245B (en) 2020-02-28 2020-02-28 Method, apparatus, device and computer readable medium for switching map service

Publications (2)

Publication Number Publication Date
CN113326245A CN113326245A (en) 2021-08-31
CN113326245B true CN113326245B (en) 2024-01-12

Family

ID=77412719

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010128784.1A Active CN113326245B (en) 2020-02-28 2020-02-28 Method, apparatus, device and computer readable medium for switching map service

Country Status (1)

Country Link
CN (1) CN113326245B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3252430A1 (en) * 2016-05-31 2017-12-06 HERE Global B.V. Route determination and navigation based on multi-version map regions
CN109918463A (en) * 2019-02-22 2019-06-21 广州多益网络股份有限公司 Map data processing method, device, equipment and storage medium
CN109977191A (en) * 2019-04-01 2019-07-05 国家基础地理信息中心 Problem map detection method, device, electronic equipment and medium
CN110569599A (en) * 2019-09-10 2019-12-13 上海彩虹鱼海洋科技股份有限公司 map service publishing method, system and medium
CN110765223A (en) * 2019-10-24 2020-02-07 北京百度网讯科技有限公司 Map updating processing method, device, equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007132711A (en) * 2005-11-08 2007-05-31 Aisin Aw Co Ltd Navigation device, map server, map update system, map update method, and map update program
US9355476B2 (en) * 2012-06-06 2016-05-31 Apple Inc. Smoothing road geometry
US10079720B2 (en) * 2015-06-23 2018-09-18 Microsoft Technology Licensing, Llc Dynamically managing different versions of a service

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3252430A1 (en) * 2016-05-31 2017-12-06 HERE Global B.V. Route determination and navigation based on multi-version map regions
CN109918463A (en) * 2019-02-22 2019-06-21 广州多益网络股份有限公司 Map data processing method, device, equipment and storage medium
CN109977191A (en) * 2019-04-01 2019-07-05 国家基础地理信息中心 Problem map detection method, device, electronic equipment and medium
CN110569599A (en) * 2019-09-10 2019-12-13 上海彩虹鱼海洋科技股份有限公司 map service publishing method, system and medium
CN110765223A (en) * 2019-10-24 2020-02-07 北京百度网讯科技有限公司 Map updating processing method, device, equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
在线地图集发布与服务系统的设计与实现;王琨;周启;任福;任东宇;杜清运;鲁月新;;地理信息世界(01);111-114+134 *
基于RESTful技术实现ArcGIS Server地图服务管理;李治明;;矿山测量(04);75-77+95 *
基于云计算的分布式切图服务设计与实现;饶庆云;丁晶晶;苏乐乐;谷永权;夏良晖;胡中南;;测绘与空间地理信息(S1);36-42 *

Also Published As

Publication number Publication date
CN113326245A (en) 2021-08-31

Similar Documents

Publication Publication Date Title
US11064053B2 (en) Method, apparatus and system for processing data
CN108629029B (en) Data processing method and device applied to data warehouse
CN107480205B (en) Method and device for partitioning data
CN107729570B (en) Data migration method and device for server
CN111460129A (en) Method and device for generating identification, electronic equipment and storage medium
CN112597126A (en) Data migration method and device
CN111061680A (en) Data retrieval method and device
CN114138558A (en) Object storage method and device, electronic equipment and storage medium
CN113326245B (en) Method, apparatus, device and computer readable medium for switching map service
CN112115206A (en) Method and device for processing object storage metadata
CN115982148A (en) Database table processing method and device, electronic equipment and storage medium
CN112711572B (en) Online capacity expansion method and device suitable for database and table division
CN113918659A (en) Data operation method and device, storage medium and electronic equipment
CN113364895A (en) Method, device, electronic equipment and storage medium for resource scheduling
CN109213815B (en) Method, device, server terminal and readable medium for controlling execution times
US11842077B2 (en) Method, device, and computer program product for transmitting data for object storage
CN113765688B (en) Proprietary cloud platform management method and system and proprietary cloud platform
CN116010677B (en) Spatial index method and device and electronic equipment thereof
CN113127430B (en) Mirror image information processing method, mirror image information processing device, computer readable medium and electronic equipment
CN110120958B (en) Task pushing method and device based on crowdsourcing mode
CN111177588B (en) Interest point retrieval method and device
CN113239038A (en) Data processing method and device
CN113742312A (en) Operation and maintenance management method and device for database
US8650153B2 (en) Storing records in databases in a randomized manner to effectively utilize database servers
CN113986917A (en) Method, device, equipment and computer readable medium for processing service data

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