CN114629951A - Address service switching method and device, computer equipment and storage medium - Google Patents

Address service switching method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114629951A
CN114629951A CN202210282266.4A CN202210282266A CN114629951A CN 114629951 A CN114629951 A CN 114629951A CN 202210282266 A CN202210282266 A CN 202210282266A CN 114629951 A CN114629951 A CN 114629951A
Authority
CN
China
Prior art keywords
address service
target
target address
address
service
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.)
Pending
Application number
CN202210282266.4A
Other languages
Chinese (zh)
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.)
Kangjian Information Technology Shenzhen Co Ltd
Original Assignee
Kangjian Information Technology Shenzhen 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 Kangjian Information Technology Shenzhen Co Ltd filed Critical Kangjian Information Technology Shenzhen Co Ltd
Priority to CN202210282266.4A priority Critical patent/CN114629951A/en
Publication of CN114629951A publication Critical patent/CN114629951A/en
Pending legal-status Critical Current

Links

Images

Abstract

The application relates to an address service switching method, an address service switching device, a computer device, a storage medium and a computer program product. The method comprises the following steps: acquiring an address service switching request; acquiring a current address service identifier and a target address service identifier needing to be switched according to the address service switching request; and converting the current address service corresponding to the current address service identification into a target address service corresponding to the target address service identification through a conversion interface. The method designs the conversion interface based on the template mode and the proxy mode, interfaces the address service switching, can directly switch the address service through the conversion interface without reconstructing the whole address service, and improves the address service switching efficiency.

Description

Address service switching method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of micro service technologies, and in particular, to an address service switching method and apparatus, a computer device, a storage medium, and a computer program product.
Background
Location Based Services (LBS) is also called Location Services, or address Services, which is a Location-related service that wireless carrier provides to subscribers.
The address service is introduced into different applications, so that the navigation requirements of users under different scenes can be facilitated. Existing address services are provided by a number of different companies in different countries, for example by hectometer, gord, etc. domestically, and by google, Mapbox, etc. at abroad. However, the docking modes provided by each address service provider are different, and the docking contents are also different.
At present, when the application is implemented in different countries, a specific service provider cannot be used due to local policy, business and the like, or a great deal of modification is made when the service provider needs to be switched. Therefore, it is necessary to construct a method that can improve the address service switching efficiency.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an address service switching method, an apparatus, a computer device, a computer readable storage medium, and a computer program product, which can improve the address service switching efficiency.
In a first aspect, the present application provides an address service switching method. The method comprises the following steps:
acquiring an address service switching request;
according to the address service switching request, acquiring a current address service identifier and a target address service identifier needing to be switched;
and converting the current address service corresponding to the current address service identification into the target address service corresponding to the target address service identification through a conversion interface, wherein the conversion interface is realized based on a template mode and an agent mode.
In one embodiment, converting, by the conversion interface, a current address service corresponding to the current address service identifier into a destination address service corresponding to the destination address service identifier includes: converting the current address service identifier into a target address service identifier through a conversion interface; generating a target address service proxy class according to the target address service identification; the target address service is invoked by the target address service proxy class.
In one embodiment, the method further comprises: if the target address service identification does not exist in the preset configuration information, acquiring target configuration information corresponding to the target address service; configuring a target address service according to the target configuration information; when the target address service is configured, the current address service corresponding to the current address service identification is converted into the target address service corresponding to the target address service identification through the conversion interface.
In one embodiment, after converting, by the conversion interface, the current address service corresponding to the current address service identifier into the target address service corresponding to the target address service identifier, the method further includes: acquiring an address request service type; calling a target address service corresponding to the address request service type through an address service calling interface to obtain address data; and converting the address data according to a preset address data format, and pushing the converted address data.
In one embodiment, the destination address service identification may be determined by any one of the following: acquiring a target address service identifier provided by a user; and acquiring the next address service identifier of the current address service identifier according to the preset address service priority to obtain the target address service identifier.
In one embodiment, the address service switching request is generated and pushed by the network terminal when the network performance of the current address service is monitored to be lower than the preset network performance.
In a second aspect, the present application further provides an address service switching apparatus. The device includes:
the request acquisition module is used for acquiring an address service switching request;
the identification acquisition module is used for acquiring the current address service identification and the target address service identification needing to be switched according to the address service switching request;
and the conversion module is used for converting the current address service corresponding to the current address service identification into the target address service corresponding to the target address service identification through a conversion interface, and the conversion interface is realized based on a template mode and an agent mode.
In a third aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor implementing the following steps when executing the computer program:
acquiring an address service switching request;
according to the address service switching request, acquiring a current address service identifier and a target address service identifier needing to be switched;
and converting the current address service corresponding to the current address service identification into a target address service corresponding to the target address service identification through a conversion interface, wherein the conversion interface is realized based on a template mode and an agent mode.
In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring an address service switching request;
according to the address service switching request, acquiring a current address service identifier and a target address service identifier needing to be switched;
and converting the current address service corresponding to the current address service identification into a target address service corresponding to the target address service identification through a conversion interface, wherein the conversion interface is realized based on a template mode and an agent mode.
In a fifth aspect, the present application further provides a computer program product. The computer program product comprising a computer program which when executed by a processor performs the steps of:
acquiring an address service switching request;
according to the address service switching request, acquiring a current address service identifier and a target address service identifier needing to be switched;
and converting the current address service corresponding to the current address service identification into a target address service corresponding to the target address service identification through a conversion interface, wherein the conversion interface is realized based on a template mode and an agent mode.
The address service switching method, the address service switching device, the computer equipment, the storage medium and the computer program product acquire an address service switching request; acquiring a current address service identifier and a target address service identifier needing to be switched according to the address service switching request; and converting the current address service corresponding to the current address service identification into a target address service corresponding to the target address service identification through a conversion interface. The method designs the conversion interface based on the template mode and the proxy mode, interfaces the address service switching, can directly switch the address service through the conversion interface without reconstructing the whole address service, and improves the address service switching efficiency.
Drawings
FIG. 1 is a diagram of an application environment for a method for address service handoff in one embodiment;
FIG. 2 is a flowchart illustrating an address service handoff method according to an embodiment;
FIG. 3 is a flowchart illustrating an address service handoff step in another embodiment;
FIG. 4 is a block diagram of an address service switching device in one embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
Even the map coordinate systems used by different address service providers may differ, since different address service providers temporarily do not have uniform rules to specify the docking manner. Therefore, when a project is implemented in different countries, one of the original service providers cannot be used due to local policy, business, etc., or a great deal of modification is made when a service provider needs to be switched.
Address service provider switching can have a large impact on the overall project, possibly involving an overall reconfiguration of upstream traffic. This is clearly unacceptable for an application landing, since the problem of a single address facilitator switch can affect the traffic of the entire application project. Currently, there is no guarantee of zero impact of address service provider switching corresponding to upper layer services, and single provider dependency increases instability of address services.
Based on this, the present application provides an address service switching method, and the address service switching method provided in the embodiment of the present application may be applied to an application environment as shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The data storage system may store data that the server 104 needs to process. The data storage system may be integrated on the server 104, or may be located on the cloud or other network server. The terminal 102 acquires an address service switching request, and acquires a current address service identifier and a target address service identifier needing to be switched according to the address service switching request; and converting the current address service corresponding to the current address service identification into a target address service corresponding to the target address service identification through a conversion interface. The method designs the conversion interface based on the template mode and the proxy mode, interfaces the address service switching, can directly switch the address service through the conversion interface without reconstructing the whole address service, and improves the address service switching efficiency. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, and portable wearable devices, and the internet of things devices may be smart speakers, smart televisions, smart air conditioners, smart car-mounted devices, and the like. The portable wearable device can be a smart watch, a smart bracelet, a head-mounted device, and the like. The server 104 may be implemented as a stand-alone server or as a server cluster comprised of multiple servers.
In an embodiment, as shown in fig. 2, an address service switching method is provided, which is described by taking the application of the method to the terminal in fig. 1 as an example, and includes the following steps:
step 202, an address service switching request is obtained.
The address service switching request is sent by a user or a network terminal and is used for enabling the terminal to switch address service providers and further switching address services.
Specifically, the terminal receives an address service request sent by a user or a network terminal.
Step 204, according to the address service switching request, obtaining the current address service identifier and the target address service identifier to be switched.
Specifically, the terminal obtains a current address service identifier stored locally according to the address service switching request. The target address service identification can be provided by a user or a network terminal, is carried in the address service switching request, and the terminal analyzes the address service request to obtain the target address service identification.
Step 206, converting the current address service corresponding to the current address service identifier into the destination address service corresponding to the destination address service identifier through the conversion interface.
The conversion interface is an address service switching interface method, and is realized based on a template mode and an agent mode, the calling process of the address service is realized based on the template mode, and the agent class switching of different address service providers is realized based on the agent mode because the agent classes corresponding to different address service providers are different.
Specifically, the terminal inputs the current address service identifier and the target address service identifier to be switched into the conversion interface method, converts the current address service identifier into the target address service identifier through the conversion interface, generates a corresponding target address service proxy class according to the target address service identifier based on the template mode and the proxy mode, and calls the target address service through the target address service proxy class.
In the address service switching method, an address service switching request is acquired; acquiring a current address service identifier and a target address service identifier needing to be switched according to the address service switching request; and converting the current address service corresponding to the current address service identification into a target address service corresponding to the target address service identification through a conversion interface. The method designs the conversion interface based on the template mode and the proxy mode, interfaces the address service switching, can directly switch the address service through the conversion interface without reconstructing the whole address service, and improves the address service switching efficiency.
In an alternative embodiment, as shown in fig. 3, the converting, by the conversion interface, the current address service corresponding to the current address service identifier into the destination address service corresponding to the destination address service identifier includes:
step 302, converting the current address service identifier into the destination address service identifier through the conversion interface.
Specifically, the terminal inputs the current address service identifier and the target address service identifier into the conversion interface method, converts the current address service identifier into the target address service identifier through the conversion interface, and matches the docking interface of the target address provider. When the address service is called, different address service providers can give different docking modes, such as two main docking modes of api and restful, so a universal address service calling interface is designed, and one of the universal address service calling interface and the restful is specified in the target configuration information, and even if the address service provider is switched, the terminal can call the address service according to the docking mode provided by the target address service provider.
The conversion interface may be change (a, b), where a is the current address service identifier and b is the destination address service identifier. For example, if the current address service identifier is baidu and the target address service identifier is google, the baidu and the google are input into a conversion interface change (baidu, google), that is, the current address service identifier baidu is converted into the target address service identifier google.
And step 304, generating a target address service proxy class according to the target address service identification.
Specifically, based on the factory design model and the proxy model, different address service providers correspond to different proxy classes, for example, the proxy class corresponding to google is google mapproxy, and the proxy class corresponding to baidu is baidu mapproxy. And after the terminal converts the current address service identifier into a target address service identifier, generating a target address service proxy class according to the target address service identifier based on a calling flow of the address service provided by the template mode.
Step 306, the target address service is called through the target address service proxy class.
Specifically, the terminal calls a target address service thread through the target address service proxy class, and obtains address data through the target address service thread.
In an optional embodiment, the method further comprises: if the target address service identification does not exist in the preset configuration information, acquiring target configuration information corresponding to the target address service; configuring a target address service according to the target configuration information; when the target address service is configured, the current address service corresponding to the current address service identification is converted into the target address service corresponding to the target address service identification through the conversion interface.
Specifically, the address service provider accesses an account number of a provider needing configuration, the added account number information of the address service provider is preset in the preset configuration information, and address service providers which are not accessed are all set to be null. The terminal detects the configuration information by using a dynamic configuration strategy, if the preset configuration information is configured with target configuration information, the current address service corresponding to the current address service identification is converted into the target address service corresponding to the target address service identification through a conversion interface, and the terminal obtains the preset address service priority according to the priority of an address service provider set by a user. The terminal pushes target configuration information request information when the target configuration information is not detected in the preset configuration information by using a dynamic configuration strategy, then obtains the target configuration information corresponding to the target address service provided by the user, configures the account number of a target address service provider according to the target configuration information, and further configures the target address service.
In the embodiment, the butt joint interfaces of the address suppliers are unified through the conversion interfaces, so that the butt joint is convenient and rapid, and the geological service switching efficiency is improved.
In an optional embodiment, after converting, by the conversion interface, the current address service corresponding to the current address service identifier into the target address service corresponding to the target address service identifier, the method further includes: acquiring an address request service type; calling a target address service corresponding to the address request service type through an address service calling interface to obtain address data; and converting the address data according to a preset address data format, and pushing the converted address data.
The address request service type refers to an address service type requested by a user, and the address request service type comprises address positioning through latitude and longitude, latitude and longitude reverse resolution through an address, address searching through keywords and the like.
The address service call interface is obtained by unifying address service interfaces provided by different address service providers.
Specifically, after the terminal acquires the address request service type, a target address service thread corresponding to the address request service type is called through an address service call interface, and address acquisition is performed through the target address service thread to obtain address data.
Further, since the address data models provided by different address service providers are different, for example, in china, there is a three-level administrative division in province and city, but in other countries there may be two-level or four-level administrative divisions. A common pre-set address data format is therefore designed to accommodate address data provided by different address service providers. Thus, even if the address service is switched among different countries, the address data formats provided for the users are uniform.
And the terminal converts the address data according to a preset address data format and pushes the converted address data.
For example, the general administrative division does not exceed three levels, for example, the domestic administrative division is three levels (province) and japan is two levels. The preset address data format is designed into a three-level model, level 1 stores similar province/state data, level 2 stores cities, and level 3 stores districts/counties. Each level is associated according to the parent id, and the next level data can be found through the previous level, and the corresponding upper level data can also be found through the lowest level data. For example, the first level is Jiangsu province, the second level is Nanjing city, the third level is a Drum district, and the corresponding second-level and third-level id and information can be found through the drum district. The preset address data format can be set according to specific requirements.
In the embodiment, the target address service is called through the address service calling interface, the address service calling interface exists no matter whether the actual service of the service provider is accessed or not, if the switching is needed, the service account is added at any time for accessing, and the stability and the efficiency of the address service switching are further improved. Meanwhile, a preset address data format is provided to unify the acquired address data formats, so that the user can realize the non-perception switching.
In an alternative embodiment, the destination address service identification may be determined by any one of the following: acquiring a target address service identifier provided by a user; and acquiring the next address service identifier of the current address service identifier according to the preset address service priority to obtain the target address service identifier.
Specifically, the target address service identification may be provided by a user, and address service performance monitoring push may also be performed by the network terminal. Due to the limitation of a network and other reasons, the service of an address service provider is unstable, and when the stability of the current address service provider in a preset time period is monitored to be poor, such as the service timeout times reach a preset threshold value or the problem that the address cannot be obtained occurs, the address service provider is replaced according to the preset address service priority through the monitoring of the network terminal on the address service platform.
In an optional embodiment, the address service switching request is generated and pushed by the network terminal when it is monitored that the network performance of the current address service is lower than the preset network performance.
Specifically, the network terminal monitors an address service platform, network performance analysis is carried out according to the overtime frequency and the abnormal frequency of the current address service in a preset time period, when the overtime frequency and the abnormal frequency reach preset threshold values, it is judged that the network performance of the current address service is lower than the preset network performance, an address service switching request is pushed, the next address service of the current address service in the preset address service priority is used as a target address service, and the pushed address service switching request carries a target address service identifier. For example, the number of service timeouts may be monitored as a per second or per minute service call exception, such as network call return 500, or the request may not return data, and if the per second or per minute service call exception reaches a certain threshold, an address service handoff request may be sent.
In the embodiment, the network performance of the current address service is monitored through the network terminal, and the address service is switched in time according to the network performance, so that the stability of the address service is improved.
In order to easily understand the technical solution provided by the embodiment of the present application, a complete address service switching process is used to briefly describe the address service switching method provided by the embodiment of the present application:
(1) the method comprises the steps of obtaining an address service switching request, wherein the address service switching request can be generated and pushed by a user or a network terminal when the network performance of the current address service is monitored to be lower than the preset network performance.
(2) And acquiring the current address service identification and the target address service identification needing to be switched according to the address service switching request.
(3) Inquiring a target address service identifier in preset configuration information, and if the target address service identifier does not exist in the preset configuration information, acquiring target configuration information corresponding to the target address service; configuring a target address service according to the target configuration information; when the target address service is configured, the current address service corresponding to the current address service identification is converted into the target address service corresponding to the target address service identification through the conversion interface.
(4) Converting the current address service identifier into a target address service identifier through a conversion interface; generating a target address service proxy class according to the target address service identifier; the target address service is invoked by the target address service proxy class.
(5) Acquiring an address request service type; calling a target address service corresponding to the address request service type through an address service calling interface to obtain address data; and converting the address data according to a preset address data format, and pushing the converted address data.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides an address service switching apparatus for implementing the above-mentioned address service switching method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, so specific limitations in one or more embodiments of the address service switching device provided below can refer to the limitations for the address service switching method in the foregoing, and details are not described herein again.
In one embodiment, as shown in fig. 4, there is provided an address service switching apparatus including: a request acquisition module 402, an identity acquisition module 404, and a translation module 406, wherein:
the request obtaining module 402 obtains an address service switching request from a user.
An identifier obtaining module 404, configured to obtain, according to the address service switching request, a current address service identifier and a target address service identifier that needs to be switched.
A conversion module 406, configured to convert, through a conversion interface, a current address service corresponding to the current address service identifier into a target address service corresponding to the target address service identifier, where the conversion interface is implemented based on a template mode and an agent mode.
In an alternative embodiment, the translation module 406 is further configured to translate the current address service identifier into the destination address service identifier through the translation interface; generating a target address service proxy class according to the target address service identification; the target address service is invoked by the target address service proxy class.
In an optional embodiment, the identifier obtaining module 404 is further configured to obtain target configuration information corresponding to the target address service if the target address service identifier does not exist in the preset configuration information; configuring a target address service according to the target configuration information; when the target address service is configured, the current address service corresponding to the current address service identification is converted into the target address service corresponding to the target address service identification through the conversion interface.
In an alternative embodiment, the translation module 406 is further configured to obtain an address request service type; calling a target address service corresponding to the address request service type through an address service calling interface to obtain address data; and converting the address data according to a preset address data format, and pushing the converted address data.
In an optional embodiment, the identifier obtaining module 404 is further configured to obtain a destination address service identifier provided by the user; and acquiring the next address service identifier of the current address service identifier according to the preset address service priority to obtain the target address service identifier.
In an optional embodiment, the address service switching request is generated and pushed by the network terminal when it is monitored that the network performance of the current address service is lower than the preset network performance.
The modules in the address service switching device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement an address service switching method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on a shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
acquiring an address service switching request;
according to the address service switching request, acquiring a current address service identifier and a target address service identifier needing to be switched;
and converting the current address service corresponding to the current address service identifier into a target address service corresponding to the target address service identifier through a conversion interface, wherein the conversion interface is realized based on a template mode and an agent mode.
In one embodiment, the processor, when executing the computer program, further performs the steps of: converting the current address service corresponding to the current address service identifier into the target address service corresponding to the target address service identifier through the conversion interface comprises: converting the current address service identifier into a target address service identifier through a conversion interface; generating a target address service proxy class according to the target address service identification; the target address service is invoked by the target address service proxy class.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the method further comprises the following steps: if the target address service identification does not exist in the preset configuration information, acquiring target configuration information corresponding to the target address service; configuring a target address service according to the target configuration information; when the target address service is configured, the current address service corresponding to the current address service identification is converted into the target address service corresponding to the target address service identification through the conversion interface.
In one embodiment, the processor when executing the computer program further performs the steps of: after the current address service corresponding to the current address service identifier is converted into the target address service corresponding to the target address service identifier through the conversion interface, the method further comprises the following steps: acquiring an address request service type; calling a target address service corresponding to the address request service type through an address service calling interface to obtain address data; and converting the address data according to a preset address data format, and pushing the converted address data.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the destination address service identification can be determined by any one of the following methods: acquiring a target address service identifier provided by a user; and acquiring the next address service identifier of the current address service identifier according to the preset address service priority to obtain the target address service identifier.
In one embodiment, the processor when executing the computer program further performs the steps of: the address service switching request is generated and pushed by the network terminal when the network performance of the current address service is monitored to be lower than the preset network performance.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring an address service switching request;
according to the address service switching request, acquiring a current address service identifier and a target address service identifier needing to be switched;
and converting the current address service corresponding to the current address service identification into the target address service corresponding to the target address service identification through a conversion interface, wherein the conversion interface is realized based on a template mode and an agent mode.
In one embodiment, the computer program when executed by the processor further performs the steps of: converting the current address service corresponding to the current address service identifier into the target address service corresponding to the target address service identifier through the conversion interface comprises: converting the current address service identifier into a target address service identifier through a conversion interface; generating a target address service proxy class according to the target address service identification; the target address service is invoked by the target address service proxy class.
In one embodiment, the computer program when executed by the processor further performs the steps of: the method further comprises the following steps: if the target address service identification does not exist in the preset configuration information, acquiring target configuration information corresponding to the target address service; configuring a target address service according to the target configuration information; when the target address service is configured, the current address service corresponding to the current address service identification is converted into the target address service corresponding to the target address service identification through the conversion interface.
In one embodiment, the computer program when executed by the processor further performs the steps of: after the current address service corresponding to the current address service identifier is converted into the target address service corresponding to the target address service identifier through the conversion interface, the method further comprises the following steps: acquiring an address request service type; calling a target address service corresponding to the address request service type through an address service calling interface to obtain address data; and converting the address data according to a preset address data format, and pushing the converted address data.
In one embodiment, the computer program when executed by the processor further performs the steps of: the destination address service identification can be determined by any one of the following methods: acquiring a target address service identifier provided by a user; and acquiring the next address service identifier of the current address service identifier according to the preset address service priority to obtain the target address service identifier.
In one embodiment, the computer program when executed by the processor further performs the steps of: the address service switching request is generated and pushed by the network terminal when the network performance of the current address service is monitored to be lower than the preset network performance.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, performs the steps of:
acquiring an address service switching request;
according to the address service switching request, acquiring a current address service identifier and a target address service identifier needing to be switched;
and converting the current address service corresponding to the current address service identification into the target address service corresponding to the target address service identification through a conversion interface, wherein the conversion interface is realized based on a template mode and an agent mode.
In one embodiment, the computer program when executed by the processor further performs the steps of: converting the current address service corresponding to the current address service identifier into the target address service corresponding to the target address service identifier through the conversion interface comprises: converting the current address service identifier into a target address service identifier through a conversion interface; generating a target address service proxy class according to the target address service identification; the target address service is invoked by the target address service proxy class.
In one embodiment, the computer program when executed by the processor further performs the steps of: the method further comprises the following steps: if the target address service identification does not exist in the preset configuration information, acquiring target configuration information corresponding to the target address service; configuring a target address service according to the target configuration information; when the target address service is configured, the current address service corresponding to the current address service identification is converted into the target address service corresponding to the target address service identification through the conversion interface.
In one embodiment, the computer program when executed by the processor further performs the steps of: after the current address service corresponding to the current address service identifier is converted into the target address service corresponding to the target address service identifier through the conversion interface, the method further comprises the following steps: acquiring an address request service type; calling a target address service corresponding to the address request service type through an address service calling interface to obtain address data; and converting the address data according to a preset address data format, and pushing the converted address data.
In one embodiment, the computer program when executed by the processor further performs the steps of: the destination address service identification can be determined by any one of the following methods: acquiring a target address service identifier provided by a user; and acquiring the next address service identifier of the current address service identifier according to the preset address service priority to obtain the target address service identifier.
In one embodiment, the computer program when executed by the processor further performs the steps of: the address service switching request is generated and pushed by the network terminal when the network performance of the current address service is monitored to be lower than the preset network performance.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), Magnetic Random Access Memory (MRAM), Ferroelectric Random Access Memory (FRAM), Phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others. The databases involved in the embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
All possible combinations of the technical features in the above embodiments may not be described for the sake of brevity, but should be considered as being within the scope of the present disclosure as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.

Claims (10)

1. An address service switching method, the method comprising:
acquiring an address service switching request;
acquiring a current address service identifier and a target address service identifier needing to be switched according to the address service switching request;
and converting the current address service corresponding to the current address service identification into a target address service corresponding to the target address service identification through a conversion interface, wherein the conversion interface is realized based on a template mode and an agent mode.
2. The method of claim 1, wherein the converting, via a conversion interface, the current address service corresponding to the current address service identifier into the target address service corresponding to the target address service identifier comprises:
converting the current address service identification into the target address service identification through a conversion interface;
generating a target address service proxy class according to the target address service identification;
and calling the target address service through the target address service proxy class.
3. The method of claim 1, further comprising:
if the target address service identification does not exist in the preset configuration information, acquiring target configuration information corresponding to the target address service;
configuring target address service according to the target configuration information;
and when the target address service is configured, converting the current address service corresponding to the current address service identification into the target address service corresponding to the target address service identification through a conversion interface.
4. The method of claim 1, wherein after the converting, by the conversion interface, the current address service corresponding to the current address service identifier into the target address service corresponding to the target address service identifier, further comprising:
acquiring an address request service type;
calling a target address service corresponding to the address request service type through an address service calling interface to obtain address data;
and converting the address data according to a preset address data format, and pushing the converted address data.
5. The method of claim 1, wherein the destination address service identification is determined by any one of:
acquiring a target address service identifier provided by a user;
and acquiring the next address service identifier of the current address service identifier according to the preset address service priority to obtain the target address service identifier.
6. The method of claim 1, wherein the address service handover request is generated and pushed by the network terminal when monitoring that the network performance of the current address service is lower than a preset network performance.
7. An address service switching apparatus, the apparatus comprising:
the request acquisition module is used for acquiring an address service switching request;
the identification obtaining module is used for obtaining the current address service identification and the target address service identification needing to be switched according to the address service switching request;
and the conversion module is used for converting the current address service corresponding to the current address service identification into the target address service corresponding to the target address service identification through a conversion interface, and the conversion interface is realized based on a template mode and an agent mode.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 6.
9. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 6 when executed by a processor.
CN202210282266.4A 2022-03-22 2022-03-22 Address service switching method and device, computer equipment and storage medium Pending CN114629951A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210282266.4A CN114629951A (en) 2022-03-22 2022-03-22 Address service switching method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210282266.4A CN114629951A (en) 2022-03-22 2022-03-22 Address service switching method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114629951A true CN114629951A (en) 2022-06-14

Family

ID=81904215

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210282266.4A Pending CN114629951A (en) 2022-03-22 2022-03-22 Address service switching method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114629951A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116662016A (en) * 2023-07-25 2023-08-29 太平金融科技服务(上海)有限公司 Port switching method, device, computer equipment, storage medium and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070233695A1 (en) * 2006-03-31 2007-10-04 Research In Motion Limited Methods and apparatus for providing map locations in user applications using URL strings
CN106851582A (en) * 2017-04-07 2017-06-13 广东欧珀移动通信有限公司 The service switch method of mobile terminal, device and mobile terminal
CN107528963A (en) * 2016-06-22 2017-12-29 维沃移动通信有限公司 The switching method and mobile terminal of a kind of positioning service
CN107743312A (en) * 2016-08-10 2018-02-27 乐高乐佳(北京)信息技术有限公司 Cross-platform geographic position locating method, platform and positioning access server
CN112033424A (en) * 2019-06-03 2020-12-04 上海博泰悦臻网络技术服务有限公司 Method and system for switching working modes of navigation software and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070233695A1 (en) * 2006-03-31 2007-10-04 Research In Motion Limited Methods and apparatus for providing map locations in user applications using URL strings
CN107528963A (en) * 2016-06-22 2017-12-29 维沃移动通信有限公司 The switching method and mobile terminal of a kind of positioning service
CN107743312A (en) * 2016-08-10 2018-02-27 乐高乐佳(北京)信息技术有限公司 Cross-platform geographic position locating method, platform and positioning access server
CN106851582A (en) * 2017-04-07 2017-06-13 广东欧珀移动通信有限公司 The service switch method of mobile terminal, device and mobile terminal
CN112033424A (en) * 2019-06-03 2020-12-04 上海博泰悦臻网络技术服务有限公司 Method and system for switching working modes of navigation software and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杜福光;: "地市级地理信息共享服务平台设计", 测绘工程, no. 11, 30 November 2014 (2014-11-30), pages 51 - 55 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116662016A (en) * 2023-07-25 2023-08-29 太平金融科技服务(上海)有限公司 Port switching method, device, computer equipment, storage medium and program product
CN116662016B (en) * 2023-07-25 2023-10-20 太平金融科技服务(上海)有限公司 Port switching method, device, computer equipment, storage medium and program product

Similar Documents

Publication Publication Date Title
US10379818B2 (en) Multi-tenant, tenant-specific applications
CA2802458C (en) Synchronizing endpoint data stores having disparate schemas
WO2014202323A1 (en) Methods, apparatuses and computer program products for facilitating a data interchange protocol
US20210397632A1 (en) Geographic information system engine system, implementation method, device and storage medium thereof
CN111767144A (en) Transaction routing determination method, device, equipment and system for transaction data
US11636139B2 (en) Centralized database system with geographically partitioned data
CN114629951A (en) Address service switching method and device, computer equipment and storage medium
CN112836093B (en) Data query method, device, electronic equipment and storage medium
CN110852720A (en) Document processing method, device, equipment and storage medium
US20220300503A1 (en) Querying distributed databases
CN109614089B (en) Automatic generation method, device, equipment and storage medium of data access code
CN111241137A (en) Data processing method and device, electronic equipment and storage medium
CN110765238A (en) Data encryption query method and device
CN113886353B (en) Data configuration recommendation method and device for hierarchical storage management software and storage medium
CN110377654B (en) Data request processing method and device, electronic equipment and computer-readable storage medium
WO2016090352A1 (en) Customized synthetic data creation
US8484182B1 (en) Wireless device content searching
CN110941683A (en) Method, device, medium and electronic equipment for acquiring object attribute information in space
CN110727672A (en) Data mapping relation query method and device, electronic equipment and readable medium
CN113157695B (en) Data processing method and device, readable medium and electronic equipment
US20240022471A1 (en) Device-specific pre-configuration of cloud endpoints
US20240129365A1 (en) Implementing a target block command on an unstructured data storage node
US11722457B2 (en) Secure multi-tenant cloud subscription sharing
CN111030856B (en) Cloud-based data access method, electronic device and computer readable medium
CN116679918A (en) Service processing method, device, equipment, system and readable storage medium

Legal Events

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