CN108156202B - Method, device and system for providing system location service - Google Patents

Method, device and system for providing system location service Download PDF

Info

Publication number
CN108156202B
CN108156202B CN201611109186.XA CN201611109186A CN108156202B CN 108156202 B CN108156202 B CN 108156202B CN 201611109186 A CN201611109186 A CN 201611109186A CN 108156202 B CN108156202 B CN 108156202B
Authority
CN
China
Prior art keywords
location service
party
binding
service application
application
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
CN201611109186.XA
Other languages
Chinese (zh)
Other versions
CN108156202A (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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN201611109186.XA priority Critical patent/CN108156202B/en
Publication of CN108156202A publication Critical patent/CN108156202A/en
Application granted granted Critical
Publication of CN108156202B publication Critical patent/CN108156202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/146Markers for unambiguous identification of a particular session, e.g. session cookie or URL-encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/53Network services using third party service providers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/75Indicating network or usage conditions on the user display

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to the technical field of location service, in particular to a method, a device and a system for providing system location service, which are used for solving the problem that a user cannot independently select location service application in the prior art. The method comprises the following steps: the binding relationship is established between the system position service interface and the appointed third-party position service application in advance, so that when the system position service is used, the position service data provided by the appointed third-party position service application can be acquired through the established binding relationship through the system position service interface instead of the position service data provided by the default position service application of the system, so that the position service application which meets the use requirement and the use habit of the user can be enjoyed, the use convenience of the user is improved, the use flexibility of the terminal is improved, and the user experience is further improved.

Description

Method, device and system for providing system location service
Technical Field
The present application relates to the field of location services, and in particular, to a method, an apparatus, and a system for providing system location services.
Background
With the development of mobile internet technology, the system location service has become one of the important applications of the mobile internet, and is driven by social applications, e-commerce applications and the like.
At present, before the devices of all Android (Android) systems on the market leave the factory, a default location service provider is defined in system firmware, that is, the system location service can only adopt location service data provided by the default location service provider of the system, and cannot autonomously select a third-party location service provider.
For example, assuming that a device used by a user is a default location service provider set in system firmware before shipment, although the user prefers to use location service data provided by a location service provider B, the user can only use location service data provided by a location service provider a when using system location services provided by the device. Meanwhile, since the device is configured to be provided with the location service data by the location service provider a before the device leaves the factory, even if the device is installed with the location service application B corresponding to the location service provider B, the device will send the system location service request to the default location service provider a of the system when receiving the system location service request.
Obviously, in this case, when the user uses the device, the user cannot enjoy an ideal system location service, which seriously affects the convenience of the user and reduces the user experience.
Disclosure of Invention
The embodiment of the application provides a method, a device and a system for providing system location service, which are used for solving the problem that a user cannot independently select location service application according to own preference or requirement in the prior art.
The embodiment of the application provides the following specific technical scheme:
a binding method of a location service application, comprising:
receiving a binding instruction, wherein the binding instruction is used for indicating that a system position service interface is bound with a native position service application;
acquiring binding information for binding of a specified third-party location service application;
and establishing a binding relationship between the system position service interface and the appointed third-party position service application based on the acquired binding information.
Optionally, before receiving the binding instruction, the method further includes:
presenting a third party location service application list;
and determining a designated third-party position service application based on the selection operation of the application options in the application list.
Optionally, presenting a third party location service application list, including:
presenting a third party location service application list through an application program operation interface; alternatively, the first and second electrodes may be,
and presenting a third party position service application list through the system operation interface.
Optionally, after determining the specified third-party location service application based on the selection operation of the application option in the application list, the method further includes:
storing the binding information for binding of the specified third-party location service application into a resource configuration file of a specified storage area;
acquiring binding information for binding of a specified third-party location service application, specifically:
and acquiring binding information for binding of the specified third-party location service application from the resource configuration file of the specified storage area.
Optionally, the binding information is identification information of the specified third-party location service application;
establishing a binding relationship between the system location service interface and the specified third-party location service application based on the obtained binding information, specifically comprising:
acquiring a calling parameter of the appointed third-party location service application based on the identification information, and establishing a binding relationship between the system location service interface and the calling parameter of the appointed third-party location service application; or
Establishing a binding relationship between the system location service interface and the identification information of the designated third party location service application.
Optionally, the binding information is a call parameter of the specified third-party location service application;
based on the obtained binding information, establishing a binding relationship between the system location service interface and the specified third-party location service application, specifically:
and establishing a binding relationship between the system position service interface and the calling parameter of the appointed third-party position service application.
A method of providing system location services, comprising:
receiving a service call request for system location services;
acquiring a calling parameter of a third-party position service application corresponding to a system position service interface of a called system position service based on a binding relationship between the system position service interface and the third-party position service application established in advance;
using the calling parameter and through a system position service interface of the system position service, requesting position service data of the system position service from the corresponding third-party position service application;
and receiving the position service data of the system position service from the corresponding third-party position service application, and returning the position service data to the sender of the service calling request.
Optionally, the obtaining, based on a binding relationship between a system location service interface and a third-party location service application that are established in advance, a calling parameter of the third-party location service application corresponding to the system location service interface of the called system location service includes:
determining the identification information of the corresponding third-party location service application based on the binding relationship between the pre-established system location service interface and the identification information of the third-party location service application and the called system location service interface of the system location service;
and acquiring the calling parameter of the corresponding third-party location service application based on the identification information.
Optionally, the obtaining, based on a binding relationship between a system location service interface and a third-party location service application that are established in advance, a calling parameter of the third-party location service application corresponding to the system location service interface of the called system location service includes:
and acquiring the corresponding calling parameter of the third-party position service application based on the binding relationship between the pre-established system position service interface and the calling parameter of the third-party position service application and the called system position service interface of the system position service.
Optionally, before obtaining a calling parameter of the third-party location service application corresponding to the system location service interface of the called system location service based on a binding relationship between the system location service interface and the third-party location service application established in advance, the method further includes:
determining whether a binding relationship between a pre-established system location service interface and a third party location service application exists;
if the third-party location service application exists, executing the step of obtaining the calling parameters of the third-party location service application corresponding to the system location service interface of the called system location service based on the binding relationship between the pre-established system location service interface and the third-party location service application;
if not, location service data for the system location service is requested from a native location service application through a system location service interface of the system location service.
A binding apparatus of a location service application, comprising:
a receiving unit, configured to receive a binding instruction, where the binding instruction is used to instruct to bind a system location service interface with a native location service application;
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring binding information for binding of a specified third-party location service application;
and the binding unit is used for establishing a binding relationship between the system position service interface and the appointed third-party position service application based on the acquired binding information.
Optionally, the apparatus further includes a selecting unit, configured to present a list of third-party location service applications before receiving the binding instruction, and determine a specified third-party location service application based on a selection operation of an application option in the application list.
Optionally, when presenting the third party location service application list, the selecting unit is configured to:
presenting a third party location service application list through an application program operation interface; alternatively, the first and second electrodes may be,
and presenting a third party position service application list through the system operation interface.
Optionally, after determining the specified third-party location service application based on the selection operation of the application option in the application list, the selecting unit is configured to:
storing the binding information for binding of the specified third-party location service application into a resource configuration file of a specified storage area;
when obtaining binding information for binding of a specified third party location service application, the obtaining unit is configured to:
and acquiring binding information for binding of the specified third-party location service application from the resource configuration file of the specified storage area.
Optionally, the binding information is identification information of the specified third-party location service application;
based on the obtained binding information, when a binding relationship is established between the system location service interface and the specified third-party location service application, the binding unit is configured to:
acquiring a calling parameter of the appointed third-party location service application based on the identification information, and establishing a binding relationship between the system location service interface and the calling parameter of the appointed third-party location service application; or
Establishing a binding relationship between the system location service interface and the identification information of the designated third party location service application.
Optionally, the binding information is a call parameter of the specified third-party location service application;
based on the obtained binding information, when a binding relationship is established between the system location service interface and the specified third-party location service application, the binding unit is configured to:
and establishing a binding relationship between the system position service interface and the calling parameter of the appointed third-party position service application.
An apparatus for providing system location services, comprising:
the system comprises a first communication unit, a second communication unit and a third communication unit, wherein the first communication unit is used for receiving a service calling request for a system position service;
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a calling parameter of a third-party position service application corresponding to a system position service interface of a called system position service based on a binding relationship between a system position service interface and the third-party position service application which is established in advance;
a request unit, configured to request, by using the call parameter and through a system location service interface of the system location service, location service data of the system location service from the corresponding third-party location service application;
and the second communication unit is used for receiving the position service data of the system position service from the corresponding third-party position service application and returning the position service data to the sender of the service calling request.
Optionally, when acquiring a calling parameter of the third-party location service application corresponding to the system location service interface of the called system location service based on a binding relationship between the pre-established system location service interface and the third-party location service application, the acquiring unit is configured to:
determining the identification information of the corresponding third-party location service application based on the binding relationship between the pre-established system location service interface and the identification information of the third-party location service application and the called system location service interface of the system location service;
and acquiring the calling parameter of the corresponding third-party location service application based on the identification information.
Optionally, when acquiring a calling parameter of the third-party location service application corresponding to the system location service interface of the called system location service based on a binding relationship between the pre-established system location service interface and the third-party location service application, the acquiring unit is configured to:
and acquiring the corresponding calling parameter of the third-party position service application based on the binding relationship between the pre-established system position service interface and the calling parameter of the third-party position service application and the called system position service interface of the system position service.
Optionally, before acquiring, based on a binding relationship between a system location service interface and a third-party location service application that are established in advance, a calling parameter of the third-party location service application corresponding to the system location service interface of the called system location service, the acquiring unit is further configured to:
determining whether a binding relationship between a pre-established system location service interface and a third party location service application exists;
if the third-party location service application exists, executing the step of obtaining the calling parameters of the third-party location service application corresponding to the system location service interface of the called system location service based on the binding relationship between the pre-established system location service interface and the third-party location service application;
if not, location service data for the system location service is requested from a native location service application through a system location service interface of the system location service.
A binding system for a location service application includes at least a designated storage area and a location framework, wherein,
the appointed storage area is used for storing binding information for binding of an appointed third-party location service application;
the location framework is used for receiving a binding instruction, acquiring binding information for binding of a specified third-party location service application in the specified storage area, and establishing a binding relationship between a system location service interface and the specified third-party location service application based on the acquired binding information, wherein the binding instruction is used for indicating that the system location service interface and a native location service application are bound.
Optionally, the position frame comprises: a fusion selector and binding module, wherein:
the fusion selector is used for capturing the binding instruction received by the position framework, acquiring binding information for binding of the specified third-party position service application in the specified storage area, and sending the binding information to the binding module;
and the binding module is used for establishing a binding relationship between the system position service interface and the appointed third-party position service application based on the binding information and canceling the establishment of the binding relationship between the system position service interface and the native position service application.
Optionally, the fusion selector is specifically configured to update the binding information of the native location service application in the captured binding instruction to the binding information of the specified third-party location service application, obtain a modified binding instruction, and send the modified binding instruction to the binding module;
and the binding module is specifically configured to obtain the binding information of the specified third-party location service application from the changed binding instruction.
Optionally, the binding information is identification information of the specified third-party location service application;
based on the obtained binding information, when a binding relationship is established between the system location service interface and the specified third-party location service application, the location framework is configured to:
acquiring a calling parameter of the appointed third-party location service application based on the identification information; establishing a binding relationship between the system location service interface and the calling parameter of the specified third-party location service application; or
Establishing a binding relationship between the system location service interface and the identification information of the designated third party location service application.
Optionally, the binding information is a call parameter of the specified third-party location service application;
based on the obtained binding information, when a binding relationship is established between the system location service interface and the specified third-party location service application, the location framework is configured to:
and establishing a binding relationship between the system position service interface and the calling parameter of the appointed third-party position service application.
A system for providing a system location service, comprising at least a location management service and a location framework, wherein,
the position management service is used for receiving a service calling request for system position service, forwarding the service calling request to the position frame, receiving position service data of the called system position service returned by the position frame, and returning the position service data to a sender of the service calling request;
the location framework is used for receiving the service calling request sent by the location management service, acquiring calling parameters of a third-party location service application corresponding to a system location service interface of the called system location service based on a binding relationship between the system location service interface and the third-party location service application established in advance, using the calling parameters, requesting location service data of the system location service from the corresponding third-party location service application through the system location service interface of the system location service, receiving the location service data of the system location service from the corresponding third-party location service application, and returning the location service data to the location management service.
Optionally, the location framework includes a system location service interface corresponding to each of the plurality of system location services, and a request and data processing module, where:
the request and data processing module is used for receiving the service calling request sent by the position management service, determining a corresponding system position service interface based on a service identifier of the system position service requested to be called, which is carried in the service calling request, and sending an application calling request for position service application to the corresponding system position service interface; receiving location service data returned by the system location service interface, and returning the location service data to the location management service;
the system location service interface is used for receiving the application calling request, acquiring calling parameters of a third-party location service application corresponding to the system location service interface based on a binding relationship between the system location service interface and the third-party location service application, using the calling parameters, requesting location service data of the system location service from the corresponding third-party location service application, receiving location service data of the system location service from the corresponding third-party location service application, and returning the location service data to the request and data processing module.
Optionally, the system location service interface is further configured to determine whether a binding relationship between the pre-established self and the third-party location service application exists before obtaining a calling parameter of the third-party location service application corresponding to the self based on the pre-established binding relationship between the self and the third-party location service application, if so, execute the step of obtaining the calling parameter of the third-party location service application corresponding to the self based on the pre-established binding relationship between the self and the third-party location service application, and if not, request location service data of the system location service from the native location service application.
Optionally, when obtaining a calling parameter of the third-party location service application corresponding to the system location service interface of the called system location service based on a binding relationship between the pre-established system location service interface and the third-party location service application, the location framework is configured to:
determining the identification information of the corresponding third-party location service application based on the binding relationship between the pre-established system location service interface and the identification information of the third-party location service application and the called system location service interface of the system location service;
and acquiring the calling parameter of the corresponding third-party location service application based on the identification information.
Optionally, when obtaining a calling parameter of the third-party location service application corresponding to the system location service interface of the called system location service based on a binding relationship between the pre-established system location service interface and the third-party location service application, the location framework is configured to:
and acquiring the corresponding calling parameter of the third-party position service application based on the binding relationship between the pre-established system position service interface and the calling parameter of the third-party position service application and the called system position service interface of the system position service.
In the embodiment of the application, after receiving the binding instruction for indicating the binding of the system position service interface and the native position service application, the binding information for binding of the specified third-party position service application is obtained, and the binding relationship is established between the system position service interface and the specified third-party position service application based on the binding information, so that when the terminal calls the position service data by using the system position service interface of the system position service, the position service data of the third-party position service application establishing the binding relationship with the system position service interface can be called based on the established binding relationship, the native position service application of the system is not needed, but the third-party position service application can be selected according to the self use requirement and the use, and the position service data provided by the third-party position service application is used, the convenience of the user is improved, the flexibility of the terminal is improved, and the user experience is further improved.
Drawings
FIG. 1 is a diagram illustrating binding of a location services application in the prior art;
FIG. 2 is a binding diagram of a location services application in an embodiment of the present application;
FIG. 3 is a flow chart of binding of a location services application in an embodiment of the present application;
FIG. 4 is a list of applications that include an exemplary third party location services application in an embodiment of the present application;
FIG. 5 is a flow chart of a method for providing system location services in an embodiment of the present application;
fig. 6 is a diagram illustrating a binding apparatus structure of a location service application according to an embodiment of the present application;
FIG. 7 is a diagram illustrating an apparatus for providing location services of a system according to an embodiment of the present invention;
FIG. 8 is a diagram of a binding system architecture for a location services application in an embodiment of the present application;
fig. 9 is a system configuration diagram for providing a system location service in the embodiment of the present application.
Detailed Description
In order to solve the problem that a user cannot independently select a location service application according to own preference or requirement in the prior art, in the embodiment of the application, a binding method of the location service application is redesigned, and the method comprises the following steps: a binding relationship is established between the system position service interface and the appointed third-party position service application in advance, so that when the system position service is used, the position service data provided by the appointed third-party position service application can be obtained through the established binding relationship and the system position service interface instead of the position service data provided by the default position service application of the system.
Embodiments of the present application will be described in detail below with reference to the drawings.
Referring to fig. 1, in the prior art, an original Location Service application binding system at least includes a Location frame (Android Location frame) and a default storage area, after a terminal is powered on, a Location management Service (Location Manager Service) reads binding information of a native Location Service application from a Resource configuration file of a native configuration area (Android Resource Config), generates a corresponding binding instruction, and then sends the binding instruction to the Location frame, and the Location frame binds a system Location Service interface and the native Location Service application based on the binding instruction, where the native Location Service application is a Location Service application default to the system.
As shown in fig. 1, the system location services provided in the terminal include, but are not limited to: a system Location service interface of the system Location service may be set as a function module in the Location frame, so as to request Location service data from a native Location service application through the system Location service interface.
After the position frame establishes a binding relationship between the system position service interface and the native position service application, if the position management service receives a call request aiming at a certain system position service, the call request is sent to the position frame, and the position frame requests the native position service application for relevant position service data through the system position service interface of the certain system position service according to the established binding relationship.
Different from the prior art, in the embodiment of the present application, referring to fig. 2, an improved location service application binding system at least includes a location frame and an appointed storage area, where the location frame includes a Fused selector (Fused selector) and a binding module, and compared with an original location service application binding system, the Fused selector and the appointed storage area are added, and the Fused selector is configured to capture a binding instruction issued by a location management service, capture the binding instruction, and read, by the Fused selector, binding information for binding of a third-party location service application specified by a user from the appointed storage area, and send the binding information to the binding module of the location frame.
Specifically, the fusion selector may update the binding information of the native location service application in the captured binding instruction to the binding information of the specified third-party location service application to obtain a changed binding instruction, and send the changed binding instruction to the binding module; or generating a binding instruction with a new format and carrying binding information of the specified third-party location service application, and sending the binding instruction with the new format to the binding module, wherein the format of the binding instruction with the new format is different from that of the captured binding instruction.
Then, after receiving the binding instruction sent by the fusion selector, the binding module acquires the binding information of the specified third-party location service application from the binding instruction, and establishes a binding relationship between the system location service interface and the specified third-party location service application based on the binding information, so that when subsequently providing the system location service, the user can use the self-selected location service application by calling the specified third-party location service application, wherein in the embodiment of the application, the specified storage area is a custom redirected configuration area (custom redirected configuration) in fig. 2.
In the embodiment of the application, the location framework can cancel the establishment of the binding relationship between the system location service interface and the native location service application while completing the establishment of the binding relationship between the system location service interface and the specified third-party location service application.
However, in order to reduce the improvement on the original processing flow of the system, the processing flow of establishing the binding relationship between the system location service interface and the native location service application may still be executed, at this time, the system location service interface establishes the binding relationship with the native location service application and the specified third-party location service application respectively, when providing the system location service, the system location service interface may first determine whether the binding relationship established with the specified third-party location service application exists, if so, the system location service interface may preferentially request the location service data from the third-party location service application based on the binding relationship established with the specified third-party location service application, and if not, the system location service interface may still select to request the location service data from the native location service application based on the binding relationship established with the native location service application.
In this embodiment of the application, the fusion selector may be configured as a functional module in the position frame, or may be configured as a functional module independent of the position frame, which is not limited herein.
Specifically, referring to fig. 3, in the embodiment of the present application, a detailed flow of a binding method for a location service application is as follows:
step 300: and the terminal determines that the user starts a position service self-defining function and presents a third-party position service application list to the user.
Optionally, when performing step 300, the terminal may adopt, but is not limited to, the following two ways:
the first method is as follows: and clicking system configuration by a user, and displaying a third-party position service application list to the user through a system operation interface if the terminal determines that the user starts the position service self-defining function.
The second method comprises the following steps: when a user clicks a newly developed application program for changing the position service, the terminal determines that the user starts the position service self-defining function, and then a third-party position service application list is presented to the user through an application program operation interface.
Furthermore, if the application program operation interface is presented to the user, the application program corresponding to the application program operation interface may be carried by the terminal system itself or downloaded by the user itself; if the system operation interface is presented to the user, the system operation interface can be directly displayed to the user when the terminal is started, or can appear when the user clicks the position designated by the system to set the function.
For example, referring to fig. 4, there are currently three lists of location services applications, namely, location service application a, location service application B, and location service application C.
Step 310: and the terminal determines the third-party position service application specified by the user based on the selected list item in the third-party position service application list.
Specifically, after presenting the third-party location service application list to the user, the terminal determines the third-party location service application specified by the user based on the entry selected by the user in the third-party location service application list.
For example, still referring to the example in step 300, in the third-party location service application list in fig. 4, if the user clicks the location service application a, the terminal confirms that the location service application a is the third-party location service application specified by the user.
Step 320: and the terminal stores the binding information for binding of the third-party location service application specified by the user into the resource configuration file of the specified storage area.
Specifically, after determining a third-party location service application specified by a user, the terminal stores binding information for binding of the specified third-party location service application into a resource configuration file of a specified storage area, where the binding information may be identification information of the specified third-party location service application or may be a call parameter of the specified third-party location service application.
Further, if identification information of a specified third-party location service application is used as binding information, the identification information is saved in a resource configuration file of a specified storage area, where the identification information may be a name of the specified third-party location service application or a version number of the specified third-party location service application, and it should be noted that the version number may also be used as the identification information because a composition format of the version number may also have uniqueness, for example, the format of the version number is: number + letter.
For example, assuming that the third-party location service application specified by the user is a location service application B, the name of the location service application B is "XX map", and the corresponding version number is "8.0B", if the identification information is the name of the specified third-party location service application and the identification information is binding information, the terminal will store the "XX map" as the binding information into the resource configuration file of the specified storage area, and if the identification information is the version number of the specified third-party location service application and the identification information is the binding information, the terminal will store "8.0B" as the binding information into the resource configuration file of the specified storage area.
Still further, if the calling parameter of the specified third-party location service application is taken as the binding information, the calling parameter is saved in the resource configuration file of the specified storage area, wherein the calling parameter may include the package name and the calling path of the specified third-party location service application.
For example, assume that the third-party location service application specified by the user is location service application C, and the package name of location service application C is "java.util.date", the call path is "file: d: the following assumptions are made that if the calling parameter of the specified third-party location service application is determined to be the binding information of the specified third-party location service application, the packet name "java.util.date" and the calling path "file: d: the third-party location service application specified by the user is determined to be the location service application C, and then the third-party location service application is stored in the resource configuration file of the specified storage area as binding information.
After the terminal stores the binding information into the resource configuration file of the designated storage area, the binding information stored in the designated storage area can be used subsequently to realize the binding between the system location service interface and the designated third-party location service application.
Step 330: and generating a default binding instruction, wherein the default binding instruction is used for indicating that the system position service interface is bound with the native position service application.
Specifically, according to a flow of generating a binding instruction in the current system, after the terminal is restarted, in a starting process, the location management service reads binding information of the native location service application in a resource configuration file of a native configuration area, generates a default binding instruction, and sends the binding instruction to the location framework, where the default binding instruction is used for instructing the location framework to bind the system location service interface and the native location service application.
In the embodiment of the application, an interface for triggering generation of the binding instruction may also be provided for the user, and a flow for generating the binding instruction is triggered for an operation of the user based on the interface.
Step 340: binding information for binding of the specified third party location service application is obtained.
Specifically, the newly added fusion selector captures a binding instruction issued by the location management service, and after capturing the binding instruction, the fusion selector reads the binding information for binding of the third-party location service application specified by the user from a specified storage area, where the specified storage area may be a storage area default to the system or a certain location under a certain application program installation directory.
Further, corresponding to step 320, if the identifier information of the specified third-party location service application is stored in the resource configuration file of the specified storage area, the obtained binding information is the corresponding identifier information, and if the identifier information of the specified third-party location service application is stored in the resource configuration file of the specified storage area, the obtained binding information is the corresponding calling parameter.
Step 350: and establishing a binding relationship between the system position service interface and the appointed third-party position service application based on the acquired binding information.
Specifically, after capturing a default binding instruction and reading the binding information of the specified third-party location service application in the specified storage area, the fusion selector reads the binding information for binding of the third-party location service application specified by the user from the specified storage area and sends the binding information to the binding module of the location framework.
Specifically, the fusion selector may update the binding information of the native location service application in the captured binding instruction to the binding information of the specified third-party location service application, obtain the changed binding instruction, and send the changed binding instruction to the newly added binding module.
Or generating a binding instruction with a new format and carrying binding information of the specified third-party location service application, and sending the binding instruction with the new format to the binding module, wherein the format of the binding instruction with the new format is different from that of the captured binding instruction.
Further, after receiving the binding instruction sent by the fusion selector, the binding module acquires the binding information of the specified third-party location service application from the binding instruction, and establishes a binding relationship between the system location service interface and the specified third-party location service application based on the binding information.
Furthermore, because the obtained binding information is different, the process of establishing the binding relationship between the system location service interface and the specified third-party location service application based on the binding information is also different, and the following two cases can be specifically distinguished:
the first condition is as follows: if the binding information is the identification information of the appointed third-party position service application, acquiring the calling parameter of the appointed third-party position service application based on the identification information, and establishing a binding relationship between the system position service interface and the calling parameter of the appointed third-party position service application, or establishing a binding relationship between the system position service interface and the identification information of the appointed third-party position service application.
For example, with the third-party location service application description in fig. 4, if the specified third-party location service application is the location service application B and the name "XX map" of the location service application B is the identification information, and the package name "summer.abc" and the call path "D: \ Program Files \ TGP" in the call parameter of the location service application B corresponding to the "XX map" are obtained according to the identification information "XX map", then a binding relationship may be established between the system location service interface and the "XX map", and a binding relationship may also be established between the system location service interface and the package name "summer.abc" and the call path "D: \ Program Files \ TGP".
Case two: and if the binding information is the calling parameter of the specified third-party position service application, directly establishing a binding relationship between the system position service interface and the calling parameter of the specified third-party position service application.
For example, as illustrated in fig. 4, if the specified third-party location service application is the location service application C, and the packet name "java.util.date" and the call path "file" of the location service application C: d: the/java/eclipse 32/works space/jbpmtest 3/bin/com/test/"is binding information, so that the service interface and the packet name" java.util.date "and the call path" file: d: a binding relation is established between/java/eclipse 32/workspace/jbpmtest 3/bin/com/test/".
And the terminal completes the establishment of the binding relationship between the system position service interface and the third-party position service application appointed by the user.
In the embodiment of the application, the binding relationship between the system location service interface and the specified third-party location service application can be cancelled while the binding relationship between the system location service interface and the native location service application is established.
However, in order to reduce the improvement on the original processing flow of the system, the processing flow of establishing the binding relationship between the system location service interface and the native location service application can still be executed.
Or, establishing a binding relationship between the system location service interface and the native location service application by adopting the following procedures:
after capturing the default binding instruction, the fusion selector adds the binding information of the specified third-party position service application in the binding instruction, meanwhile, retains the binding information of the original position service application and the binding information of the specified third-party position service application, obtains a new binding instruction, and sends the new binding instruction to the binding module.
Further, after receiving a new binding instruction, the binding module obtains binding information of the specified third-party location service application and binding information of the native location service application from the binding instruction, establishes a binding relationship between the system location service interface and the specified third-party location service application based on the binding information of the specified third-party location service application, and establishes a binding relationship between the system location service interface and the native location service application based on the binding information of the native location service application.
Referring to fig. 5, in the embodiment of the present application, a specific process of providing the system location service by the terminal is as follows:
step 500: a service invocation request for a system location service is received.
Specifically, the location management service included in the terminal receives a service invocation request for the system location service.
For example, suppose that a user is currently using a certain meal ordering application on the terminal, and the meal ordering application needs to use the FLP in the system location service to determine the actual location of the user when determining the user order, therefore, the meal ordering application will send a service call request a for the FLP in the system location service to the location management service in the terminal, and accordingly, the terminal will receive the service call request a for the FLP in the system location service.
Of course, the FLP is only an example, and in practical applications, various application programs may send service invocation requests for various types of system location services, respectively, for example, sending a service invocation request Y for NLP, sending a service invocation request Z for AR, sending a service invocation request P for georeference, or sending a service invocation request W for geocode, and so on.
In the embodiment of the present application, if the binding relationship between the system location service interface and the specified third-party location service application is cancelled while the binding relationship between the system location service interface and the native location service application is established, the following step 520 may be directly performed.
If a binding is established between the system location service interface and the specified third party location service application, a binding relationship is still established between the system location services interface and the native location services application, and, at this point, the system position service interface establishes binding relation with the original position service application and the appointed third party position service application, when providing the system position service, proceeding to step 510, first, determining whether a binding relationship exists with the specified third-party location service application, if so, preferentially requesting location service data from the third party location service application based on the binding established with the specified third party location service application, if not, the request for location service data from the native location service application is selected, still based on the binding established with the native location service application.
Step 510: judging whether a binding relationship between a pre-established system position service interface and a third-party position service application exists, if so, executing step 520; otherwise, step 550 is performed.
Specifically, when the binding module in the binding system establishes the binding relationship, the first binding method may be adopted, and only the binding relationship between the system location service interface and the designated third-party location service application is established, or the second binding method may be adopted, and the binding relationship between the system location service interface and the native location service application and between the system location service interface and the designated third-party location service application is established, so that after receiving the call request for the system location service, it is determined first whether the binding relationship between the system location service interface of the system location service and the third-party location service application is established.
Further, if the binding relationship between the system location service interface and the third-party location service application is pre-established, step 520 is executed to obtain the location service data provided by the third-party location service application, and if the binding relationship between the system location service interface and the third-party location service application is not pre-established, step 550 is executed to continue using the location service data provided by the native location service application.
Step 520: and acquiring a calling parameter of the third-party position service application corresponding to the system position service interface of the called system position service based on a binding relationship which is established in advance between the system position service interface and the third-party position service application.
Specifically, when the terminal determines that the binding relationship between the pre-established system location service interface and the third-party location service application exists, the terminal requests the position service data from the third-party position service application preferentially based on the binding relationship established with the third-party position service application, the execution terminal acquires the calling parameter of the third-party position service application corresponding to the system position service interface of the called system position service based on the binding relationship between the pre-established system position service interface and the third-party position service application, because the content specifically contained in the binding information is different, the binding relationship established accordingly also correspondingly exists differently, furthermore, based on the binding relationship, there are different methods for obtaining the call parameter of the third-party location service application corresponding to the system location service interface of the called system location service.
The following two cases can be specifically distinguished:
the first condition is as follows: and determining the identification information of the corresponding third-party location service application based on a binding relationship which is established in advance between the system location service interface and the identification information of the third-party location service application and the system location service interface of the called system location service, and acquiring the calling parameter of the corresponding third-party location service application based on the identification information.
For example, if a binding relationship is established between an FLP interface of an FLP in a system location service and identification information of a location service application B, and the identification information of the location service application B is a version number of "8.0B", the location service application B may be determined according to the version number of "8.0B", and then a call parameter of the location service application B may be determined.
Case two: and acquiring the corresponding calling parameters of the third-party position service application based on a binding relationship which is pre-established between the system position service interface and the calling parameters of the third-party position service application and the system position service interface of the called system position service.
For example, if a binding relationship is established between an NLP interface of an NLP in the system location service and a call parameter of the location service application C, and the call parameter of the location service application C is a packet name "java.util.date" and a call path "file: d: the calling parameters of the location service application C, namely java, util, date and file, can be directly obtained according to the established binding relationship and NLP interface: d: /java/eclipse32/workspace/jbpmtest 3/bin/com/test/".
Step 530: and using the obtained calling parameters and requesting the position service data of the called system position service from the corresponding third-party position service application through the system position service interface of the called system position service.
Specifically, after acquiring a calling parameter of a third-party location service application corresponding to a system location service interface of a called system location service, the terminal requests location service data corresponding to the called system location service from the corresponding third-party location service application by using the calling parameter.
Further, since the location service data storage locations are different, the process of specifically requesting location service data may also be different.
For example, if the location service data is stored in the data buffer area, when the location service data is actually requested, the required location service data may be read from the data buffer area.
For another example, if the location service data is stored in a data storage area allocated to the third-party location service application, when the location service data is actually requested, the necessary location service data can be read from the data storage area.
Step 540: and receiving the position service data sent by the corresponding third-party position service application, and returning the position service data to a sender of the service calling request.
Specifically, after requesting location service data of a called system location service from a corresponding third-party location service application, the terminal receives location service data returned by the corresponding third-party location service application for the called system location service, and returns the location service data to a sender of the service call request.
Further, in step 530, it can be seen that, since the process of requesting the location service data is different, the terminal may receive the location service data differently.
For example, if the terminal requests location service data from the data cache area, the location service data can be directly obtained from the data cache area.
For another example, if the terminal requests location service data from a data storage area allocated to the corresponding third-party location service application, the terminal needs to wait for the request to respond and then acquire the location service data.
For another example, assuming that the third-party location service application specified by the user is an "XX map", if the terminal receives a call request Q of a system location service "order" brought by the user for the third-party software, the terminal requests the "XX map" to acquire location service data related to the "order", and when the terminal acquires the location service data related to the "order", the terminal returns the location service data to the third-party software that sent the call request Q.
Step 550: location service data for the system location service is requested from a native location service application through a system location service interface of the system location service.
Specifically, after determining that the binding relationship between the system location service interface and the third-party location service application which is established in advance does not exist, the terminal directly requests the location service data of the system location service from the native location service application.
For example, if a user uses some type of taxi taking software on a terminal, the taxi taking software needs to use the longitude and latitude and geographic position code conversion in the system location service when determining the actual location of the user, and if the native location service application is the location service application X, the terminal directly requests the location service data from the location service application X through the longitude and latitude and geographic position code conversion interface.
Step 560: and receiving the location service data sent by the native location service application, and returning the location service data to a sender of the service calling request.
Specifically, after requesting location service data of the called system location service from the native location service application, the terminal receives location service data returned by the native location service application for the called system location service, and returns the location service data to a sender of the service call request.
Referring to fig. 6, in the embodiment of the present application, the binding apparatus for a location service application at least includes a receiving unit 600, an obtaining unit 601 and a binding unit 602, wherein,
a receiving unit, configured to receive a binding instruction, where the binding instruction is used to instruct to bind a system location service interface with a native location service application;
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring binding information for binding of a specified third-party location service application;
and the binding unit is used for establishing a binding relationship between the system position service interface and the appointed third-party position service application based on the acquired binding information.
Optionally, the binding apparatus further includes:
a selecting unit 603, configured to present a third party location service application list before receiving the binding instruction, and determine a specified third party location service application based on a selection operation of an application option in the application list.
Optionally, when presenting the third party location service application list, the selecting unit 603 is configured to:
presenting a third party location service application list through an application program operation interface; alternatively, the first and second electrodes may be,
and presenting a third party position service application list through the system operation interface.
Optionally, after determining the specified third-party location service application based on the selection operation on the application option in the application list, the selecting unit 603 is configured to:
storing the binding information for binding of the specified third-party location service application into a resource configuration file of a specified storage area;
when obtaining binding information for binding of a specified third party location service application, the obtaining unit is configured to:
and acquiring binding information for binding of the specified third-party location service application from the resource configuration file of the specified storage area.
Optionally, the binding information is identification information of the specified third-party location service application;
based on the obtained binding information, when a binding relationship is established between the system location service interface and the specified third-party location service application, the binding unit 602 is configured to:
acquiring a calling parameter of the appointed third-party location service application based on the identification information, and establishing a binding relationship between the system location service interface and the calling parameter of the appointed third-party location service application; or
Establishing a binding relationship between the system location service interface and the identification information of the designated third party location service application.
Optionally, the binding information is a call parameter of the specified third-party location service application;
based on the obtained binding information, when a binding relationship is established between the system location service interface and the specified third-party location service application, the binding unit 602 is configured to:
and establishing a binding relationship between the system position service interface and the calling parameter of the appointed third-party position service application.
Referring to fig. 7, in the embodiment of the present application, the apparatus for providing a system location service includes at least a first communication unit 700, an obtaining unit 701, a requesting unit 702, and a second communication unit 703, wherein,
the system comprises a first communication unit, a second communication unit and a third communication unit, wherein the first communication unit is used for receiving a calling request of a system position service;
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a calling parameter of a third-party position service application corresponding to a system position service interface of a called system position service based on a binding relationship between a system position service interface and the third-party position service application which is established in advance;
a request unit, configured to request, by using the call parameter and through a system location service interface of the system location service, location service data of the system location service from the corresponding third-party location service application;
and the second communication unit is used for receiving the position service data of the system position service from the corresponding third-party position service application and returning the position service data to the sender of the calling request.
Optionally, when acquiring a calling parameter of a third-party location service application corresponding to a system location service interface of a called system location service based on a binding relationship between a system location service interface and the third-party location service application established in advance, the acquiring unit 701 is configured to:
determining the identification information of the corresponding third-party location service application based on the binding relationship between the pre-established system location service interface and the identification information of the third-party location service application and the called system location service interface of the system location service;
and acquiring the calling parameter of the corresponding third-party location service application based on the identification information.
Optionally, when acquiring a calling parameter of a third-party location service application corresponding to a system location service interface of a called system location service based on a binding relationship between a system location service interface and the third-party location service application established in advance, the acquiring unit 701 is configured to:
and acquiring the corresponding calling parameter of the third-party position service application based on the binding relationship between the pre-established system position service interface and the calling parameter of the third-party position service application and the called system position service interface of the system position service.
Optionally, before acquiring, based on a binding relationship between a system location service interface and a third-party location service application, a calling parameter of the third-party location service application corresponding to the system location service interface of the called system location service, the acquiring unit 701 is further configured to:
determining whether a binding relationship between a pre-established system location service interface and a third party location service application exists;
if the third-party location service application exists, executing the step of obtaining the calling parameters of the third-party location service application corresponding to the system location service interface of the called system location service based on the binding relationship between the pre-established system location service interface and the third-party location service application;
if not, location service data for the system location service is requested from a native location service application through a system location service interface of the system location service.
Referring to fig. 8, in the embodiment of the present application, the binding system for the location service application includes at least a designated storage area 800 and a location frame 810, wherein,
the designated storage area 800 is used for storing binding information of the designated third-party location service application for binding;
the location framework 810 is configured to receive a binding instruction, obtain binding information of a specified third-party location service application for binding in the specified storage area, and establish a binding relationship between a system location service interface and the specified third-party location service application based on the obtained binding information, where the binding instruction is used to instruct to bind the system location service interface and a native location service application.
Optionally, the position frame 810 includes: a fusion selector 811 and a binding module 812, wherein:
a fusion selector 811, configured to capture the binding instruction received by the location framework, obtain binding information for binding of the specified third-party location service application in the specified storage area, and send the binding information to the binding module;
the binding module 812 is configured to establish a binding relationship between the system location service interface and the specified third-party location service application based on the binding information, and cancel the establishment of the binding relationship between the system location service interface and the native location service application.
Optionally, the fusion selector 811 is specifically configured to update the binding information of the native location service application in the captured binding instruction to the binding information of the specified third-party location service application, obtain a modified binding instruction, and send the modified binding instruction to the binding module;
the binding module 812 is specifically configured to obtain the binding information of the specified third-party location service application from the changed binding instruction.
Optionally, the binding information is identification information of the specified third-party location service application;
based on the obtained binding information, when a binding relationship is established between the system location service interface and the specified third-party location service application, the location framework 810 is configured to:
acquiring a calling parameter of the appointed third-party location service application based on the identification information; establishing a binding relationship between the system location service interface and the calling parameter of the specified third-party location service application; or
Establishing a binding relationship between the system location service interface and the identification information of the designated third party location service application.
Optionally, the binding information is a call parameter of the specified third-party location service application;
based on the obtained binding information, when a binding relationship is established between the system location service interface and the specified third-party location service application, the location framework 810 is configured to:
and establishing a binding relationship between the system position service interface and the calling parameter of the appointed third-party position service application.
Referring to fig. 9, in the embodiment of the present application, the system for providing the system location service at least includes a location management service 900 and a location framework 910, wherein,
the location management service 900 is configured to receive a service invocation request for a system location service, forward the service invocation request to the location framework, receive location service data of the system location service invoked and returned by the location framework, and return the location service data to a sender of the service invocation request;
the location framework 910 is configured to receive the service invocation request sent by the location management service, obtain, based on a binding relationship between a system location service interface and a third-party location service application that is established in advance, an invocation parameter of the third-party location service application corresponding to the system location service interface of the invoked system location service, request, using the invocation parameter, location service data of the system location service from the corresponding third-party location service application through the system location service interface of the system location service, receive location service data of the system location service from the corresponding third-party location service application, and return the location service data to the location management service.
Optionally, the location framework 910 includes a system location service interface 911 corresponding to each of a plurality of system location services, and a request and data processing module 912, where:
the request and data processing module 912 is configured to receive the service invocation request sent by the location management service, determine a corresponding system location service interface based on a service identifier of a system location service requested to be invoked, which is carried in the service invocation request, and send an application invocation request for a location service application to the corresponding system location service interface; receiving location service data returned by the system location service interface, and returning the location service data to the location management service;
the system location service interface 911 is configured to receive the application invocation request, obtain invocation parameters of a third-party location service application corresponding to the application based on a binding relationship between the application and the third-party location service application, request location service data of the system location service from the corresponding third-party location service application by using the invocation parameters, receive location service data of the system location service from the corresponding third-party location service application, and return the location service data to the request and data processing module.
Optionally, the system location service interface 911 is further configured to determine whether a binding relationship between the pre-established self and the third-party location service application exists before obtaining a calling parameter of the third-party location service application corresponding to the self based on the pre-established binding relationship between the self and the third-party location service application, if so, execute the step of obtaining the calling parameter of the third-party location service application corresponding to the self based on the pre-established binding relationship between the self and the third-party location service application, and if not, request the location service data of the system location service from the native location service application.
Optionally, when obtaining a calling parameter of the third-party location service application corresponding to the system location service interface of the called system location service based on a binding relationship between the pre-established system location service interface and the third-party location service application, the location frame 910 is configured to:
determining the identification information of the corresponding third-party location service application based on the binding relationship between the pre-established system location service interface and the identification information of the third-party location service application and the called system location service interface of the system location service;
and acquiring the calling parameter of the corresponding third-party location service application based on the identification information.
Optionally, when obtaining a calling parameter of the third-party location service application corresponding to the system location service interface of the called system location service based on a binding relationship between the pre-established system location service interface and the third-party location service application, the location frame 910 is configured to:
and acquiring the corresponding calling parameter of the third-party position service application based on the binding relationship between the pre-established system position service interface and the calling parameter of the third-party position service application and the called system position service interface of the system position service.
In the embodiment of the application, after receiving the binding instruction for indicating the binding of the system position service interface and the native position service application, the binding information for binding of the specified third-party position service application is obtained, and the binding relationship is established between the system position service interface and the specified third-party position service application based on the binding information, so that when the terminal calls the position service data by using the system position service interface of the system position service, the position service data of the third-party position service application establishing the binding relationship with the system position service interface can be called based on the established binding relationship, the native position service application of the system can be selected according to the self use requirement and use, and the position service data provided by the third-party position service application can be used, the convenience of the user is improved, the flexibility of the terminal is improved, and the user experience is further improved.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to encompass such modifications and variations.

Claims (30)

1. A method for binding a location service application, comprising:
receiving a binding instruction, wherein the binding instruction is used for indicating that a system position service interface is bound with a native position service application;
after receiving the binding instruction, acquiring binding information for binding of a specified third-party location service application;
and establishing a binding relationship between the system position service interface and the appointed third-party position service application based on the acquired binding information.
2. The method of claim 1, wherein prior to receiving the binding instruction, further comprising:
presenting a third party location service application list;
and determining a designated third-party position service application based on the selection operation of the application options in the application list.
3. The method of claim 2, wherein presenting a list of third party location service applications comprises:
presenting a third party location service application list through an application program operation interface; alternatively, the first and second electrodes may be,
and presenting a third party position service application list through the system operation interface.
4. The method of claim 2, wherein after determining the designated third party location services application based on the selection of the application option in the application list, further comprising:
storing the binding information for binding of the specified third-party location service application into a resource configuration file of a specified storage area;
acquiring binding information for binding of a specified third-party location service application, specifically:
and acquiring binding information for binding of the specified third-party location service application from the resource configuration file of the specified storage area.
5. The method of any of claims 1-4, wherein the binding information is identification information of the specified third party location service application;
establishing a binding relationship between the system location service interface and the specified third-party location service application based on the obtained binding information, specifically comprising:
acquiring a calling parameter of the appointed third-party location service application based on the identification information, and establishing a binding relationship between the system location service interface and the calling parameter of the appointed third-party location service application; or
Establishing a binding relationship between the system location service interface and the identification information of the designated third party location service application.
6. The method of any of claims 1-4, wherein the binding information is a call parameter of the specified third party location service application;
based on the obtained binding information, establishing a binding relationship between the system location service interface and the specified third location service application, specifically:
and establishing a binding relationship between the system position service interface and the calling parameter of the appointed third-party position service application.
7. A method for providing system location services, comprising:
receiving a service call request for system location services;
acquiring a calling parameter of a third-party location service application corresponding to a system location service interface of a called system location service based on a binding relationship between a pre-established system location service interface and the third-party location service application, wherein the binding relationship is pre-established based on the method of claim 1;
using the calling parameter and through a system position service interface of the system position service, requesting position service data of the system position service from the corresponding third-party position service application;
and receiving the position service data of the system position service from the corresponding third-party position service application, and returning the position service data to the sender of the service calling request.
8. The method of claim 7, wherein the obtaining of the calling parameter of the third-party location service application corresponding to the called system location service interface of the system location service based on the binding relationship between the pre-established system location service interface and the third-party location service application comprises:
determining the identification information of the corresponding third-party location service application based on the binding relationship between the pre-established system location service interface and the identification information of the third-party location service application and the called system location service interface of the system location service;
and acquiring the calling parameter of the corresponding third-party location service application based on the identification information.
9. The method of claim 7, wherein the obtaining of the calling parameter of the third-party location service application corresponding to the called system location service interface of the system location service based on the binding relationship between the pre-established system location service interface and the third-party location service application comprises:
and acquiring the corresponding calling parameter of the third-party position service application based on the binding relationship between the pre-established system position service interface and the calling parameter of the third-party position service application and the called system position service interface of the system position service.
10. The method according to any one of claims 7 to 9, wherein before obtaining the calling parameter of the third party location service application corresponding to the system location service interface of the called system location service based on the binding relationship between the pre-established system location service interface and the third party location service application, the method further comprises:
determining whether a binding relationship between a pre-established system location service interface and a third party location service application exists;
if the third-party location service application exists, executing the step of obtaining the calling parameters of the third-party location service application corresponding to the system location service interface of the called system location service based on the binding relationship between the pre-established system location service interface and the third-party location service application;
if not, location service data for the system location service is requested from a native location service application through a system location service interface of the system location service.
11. An apparatus for binding a location service application, comprising:
a receiving unit, configured to receive a binding instruction, where the binding instruction is used to instruct to bind a system location service interface with a native location service application;
the obtaining unit is used for obtaining the binding information for binding of the specified third-party location service application after the receiving unit receives the binding instruction;
and the binding unit is used for establishing a binding relationship between the system position service interface and the appointed third-party position service application based on the acquired binding information.
12. The apparatus of claim 11, further comprising:
and the selection unit is used for presenting a third-party position service application list before receiving the binding instruction, and determining the specified third-party position service application based on the selection operation of the application options in the application list.
13. The apparatus of claim 12, wherein the selection unit, when presenting the list of third party location service applications, is to:
presenting a third party location service application list through an application program operation interface; alternatively, the first and second electrodes may be,
and presenting a third party position service application list through the system operation interface.
14. The apparatus of claim 12, wherein after determining the designated third party location service application based on the selection of the application option in the application list, the selection unit is to:
storing the binding information for binding of the specified third-party location service application into a resource configuration file of a specified storage area;
when obtaining binding information for binding of a specified third party location service application, the obtaining unit is configured to:
and acquiring binding information for binding of the specified third-party location service application from the resource configuration file of the specified storage area.
15. The apparatus of any of claims 11-14, wherein the binding information is identification information of the specified third party location service application;
based on the obtained binding information, when a binding relationship is established between the system location service interface and the specified third-party location service application, the binding unit is configured to:
acquiring a calling parameter of the appointed third-party location service application based on the identification information, and establishing a binding relationship between the system location service interface and the calling parameter of the appointed third-party location service application; or
Establishing a binding relationship between the system location service interface and the identification information of the designated third party location service application.
16. The apparatus of any of claims 11-14, wherein the binding information is a call parameter of the specified third party location service application;
based on the obtained binding information, when a binding relationship is established between the system location service interface and the specified third-party location service application, the binding unit is configured to:
and establishing a binding relationship between the system position service interface and the calling parameter of the appointed third-party position service application.
17. An apparatus for providing system location services, comprising:
the system comprises a first communication unit, a second communication unit and a third communication unit, wherein the first communication unit is used for receiving a service calling request for a system position service;
an obtaining unit, configured to obtain, based on a binding relationship between a system location service interface and a third-party location service application, which is established in advance, a calling parameter of the third-party location service application corresponding to the system location service interface of the called system location service, where the binding relationship is established in advance based on the apparatus of claim 11;
a request unit, configured to request, by using the call parameter and through a system location service interface of the system location service, location service data of the system location service from the corresponding third-party location service application;
and the second communication unit is used for receiving the position service data of the system position service from the corresponding third-party position service application and returning the position service data to the sender of the service calling request.
18. The apparatus of claim 17, wherein when the obtaining unit is configured to obtain the invocation parameter of the third-party location service application corresponding to the system location service interface of the invoked system location service, based on a binding relationship between the pre-established system location service interface and the third-party location service application, the obtaining unit is configured to:
determining the identification information of the corresponding third-party location service application based on the binding relationship between the pre-established system location service interface and the identification information of the third-party location service application and the called system location service interface of the system location service;
and acquiring the calling parameter of the corresponding third-party location service application based on the identification information.
19. The apparatus of claim 17, wherein when the obtaining unit is configured to obtain the invocation parameter of the third-party location service application corresponding to the system location service interface of the invoked system location service, based on a binding relationship between the pre-established system location service interface and the third-party location service application, the obtaining unit is configured to:
and acquiring the corresponding calling parameter of the third-party position service application based on the binding relationship between the pre-established system position service interface and the calling parameter of the third-party position service application and the called system position service interface of the system position service.
20. The apparatus according to any one of claims 17 to 19, wherein before acquiring the invocation parameter of the third party location service application corresponding to the system location service interface of the invoked system location service based on the pre-established binding relationship between the system location service interface and the third party location service application, the acquiring unit is further configured to:
determining whether a binding relationship between a pre-established system location service interface and a third party location service application exists;
if the third-party location service application exists, executing the step of obtaining the calling parameters of the third-party location service application corresponding to the system location service interface of the called system location service based on the binding relationship between the pre-established system location service interface and the third-party location service application;
if not, location service data for the system location service is requested from a native location service application through a system location service interface of the system location service.
21. A binding system for a location service application includes at least a designated storage area and a location framework, wherein,
the appointed storage area is used for storing binding information for binding of an appointed third-party location service application;
the location framework is used for receiving a binding instruction, acquiring binding information for binding of a specified third-party location service application in the specified storage area after receiving the binding instruction, and establishing a binding relationship between a system location service interface and the specified third-party location service application based on the acquired binding information, wherein the binding instruction is used for indicating that the system location service interface and a native location service application are bound.
22. The system of claim 21, wherein the position frame comprises: a fusion selector and binding module, wherein:
the fusion selector is used for capturing the binding instruction received by the position framework, acquiring binding information for binding of the specified third-party position service application in the specified storage area, and sending the binding information to the binding module;
and the binding module is used for establishing a binding relationship between the system position service interface and the appointed third-party position service application based on the binding information and canceling the establishment of the binding relationship between the system position service interface and the native position service application.
23. The system according to claim 22, wherein the convergence selector is specifically configured to update the binding information of the native location service application in the captured binding instruction to the binding information of the specified third-party location service application, obtain a modified binding instruction, and send the modified binding instruction to the binding module;
and the binding module is specifically configured to obtain the binding information of the specified third-party location service application from the changed binding instruction.
24. The system of any of claims 21-23, wherein the binding information is identification information of the specified third party location service application;
based on the obtained binding information, when a binding relationship is established between the system location service interface and the specified third-party location service application, the location framework is configured to:
acquiring a calling parameter of the appointed third-party location service application based on the identification information; establishing a binding relationship between the system location service interface and the calling parameter of the specified third-party location service application; or
Establishing a binding relationship between the system location service interface and the identification information of the designated third party location service application.
25. The system of any of claims 21-23, wherein the binding information is a call parameter for the specified third party location service application;
based on the obtained binding information, when a binding relationship is established between the system location service interface and the specified third-party location service application, the location framework is configured to:
and establishing a binding relationship between the system position service interface and the calling parameter of the appointed third-party position service application.
26. A system for providing a system location service, comprising at least a location management service and a location framework, wherein,
the position management service is used for receiving a service calling request for system position service, forwarding the service calling request to the position frame, receiving position service data of the called system position service returned by the position frame, and returning the position service data to a sender of the service calling request;
the location framework is configured to receive the service invocation request sent by the location management service, obtain, based on a binding relationship between a system location service interface and a third-party location service application that is pre-established, invocation parameters of the third-party location service application corresponding to the system location service interface of the invoked system location service, request, using the invocation parameters, location service data of the system location service from the corresponding third-party location service application to the corresponding third-party location service application through the system location service interface of the system location service, receive location service data of the system location service from the corresponding third-party location service application, and return the location service data to the location management service, where the binding relationship is pre-established based on the system of claim 21.
27. The system of claim 26, wherein the location framework comprises a system location service interface corresponding to each of the plurality of system location services, and a request and data processing module, wherein:
the request and data processing module is used for receiving the service calling request sent by the position management service, determining a corresponding system position service interface based on a service identifier of the system position service requested to be called, which is carried in the service calling request, and sending an application calling request for position service application to the corresponding system position service interface; receiving location service data returned by the system location service interface, and returning the location service data to the location management service;
the system location service interface is used for receiving the application calling request, acquiring calling parameters of a third-party location service application corresponding to the system location service interface based on a binding relationship between the system location service interface and the third-party location service application, using the calling parameters, requesting location service data of the system location service from the corresponding third-party location service application, receiving location service data of the system location service from the corresponding third-party location service application, and returning the location service data to the request and data processing module.
28. The system of claim 27, wherein the system location service interface is further configured to determine whether a pre-established binding relationship between itself and a third-party location service application exists before obtaining a calling parameter of a corresponding third-party location service application based on the pre-established binding relationship between itself and the third-party location service application, if so, perform the step of obtaining the calling parameter of the corresponding third-party location service application based on the pre-established binding relationship between itself and the third-party location service application, and if not, request location service data of the system location service from a native location service application.
29. The system of claim 26, wherein when obtaining the calling parameter of the third-party location service application corresponding to the called system location service interface of the system location service based on the binding relationship between the pre-established system location service interface and the third-party location service application, the location framework is configured to:
determining the identification information of the corresponding third-party location service application based on the binding relationship between the pre-established system location service interface and the identification information of the third-party location service application and the called system location service interface of the system location service;
and acquiring the calling parameter of the corresponding third-party location service application based on the identification information.
30. The system of claim 26, wherein when obtaining the calling parameter of the third-party location service application corresponding to the called system location service interface of the system location service based on the binding relationship between the pre-established system location service interface and the third-party location service application, the location framework is configured to:
and acquiring the corresponding calling parameter of the third-party position service application based on the binding relationship between the pre-established system position service interface and the calling parameter of the third-party position service application and the called system position service interface of the system position service.
CN201611109186.XA 2016-12-06 2016-12-06 Method, device and system for providing system location service Active CN108156202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611109186.XA CN108156202B (en) 2016-12-06 2016-12-06 Method, device and system for providing system location service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611109186.XA CN108156202B (en) 2016-12-06 2016-12-06 Method, device and system for providing system location service

Publications (2)

Publication Number Publication Date
CN108156202A CN108156202A (en) 2018-06-12
CN108156202B true CN108156202B (en) 2020-12-29

Family

ID=62467692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611109186.XA Active CN108156202B (en) 2016-12-06 2016-12-06 Method, device and system for providing system location service

Country Status (1)

Country Link
CN (1) CN108156202B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109050271B (en) * 2018-06-20 2021-11-16 于淼 Charging request processing method, server and charging request processing system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5150096A (en) * 1990-11-06 1992-09-22 Lake Jr Samuel H Emergency map apparatus and method of use thereof
CN103698788A (en) * 2013-12-06 2014-04-02 广东欧珀移动通信有限公司 GPS (Global Position System) position method and device
CN104809213A (en) * 2015-04-29 2015-07-29 努比亚技术有限公司 Method, device and system for starting application software client
CN105045613A (en) * 2015-06-25 2015-11-11 广州视源电子科技股份有限公司 Fixed position searching method and system thereof
CN106131795A (en) * 2016-08-30 2016-11-16 维沃移动通信有限公司 A kind of localization method and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5150096A (en) * 1990-11-06 1992-09-22 Lake Jr Samuel H Emergency map apparatus and method of use thereof
CN103698788A (en) * 2013-12-06 2014-04-02 广东欧珀移动通信有限公司 GPS (Global Position System) position method and device
CN104809213A (en) * 2015-04-29 2015-07-29 努比亚技术有限公司 Method, device and system for starting application software client
CN105045613A (en) * 2015-06-25 2015-11-11 广州视源电子科技股份有限公司 Fixed position searching method and system thereof
CN106131795A (en) * 2016-08-30 2016-11-16 维沃移动通信有限公司 A kind of localization method and mobile terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"安卓如何修改图片默认的打开方式?";百度知道用户;《百度知道》;20160420;第1页 *

Also Published As

Publication number Publication date
CN108156202A (en) 2018-06-12

Similar Documents

Publication Publication Date Title
JP6407240B2 (en) Application state change notification program and method
JP2019506654A (en) Page jump method and apparatus
CN110162720B (en) Webpage loading method and device, computer equipment and storage medium
EP4236412A2 (en) Profile download method and system, and related device
US20130225087A1 (en) Mobile terminal device and method for sharing application
US20140086105A1 (en) Device and method for providing drawing screen sharing service
KR20190117485A (en) Service data processing method and device, and Service processing method and device
EP3876496A1 (en) Mobile terminal and computer program product for widget sharing
KR101828903B1 (en) Roaming network access method and apparatus
US20130160080A1 (en) Apparatus and method for verifying application user
CN105743945A (en) Method and system for downloading files on the basis of switching download sources
KR20050039834A (en) Systems and techniques for originating calls in multi-mode network environments
JP6585740B2 (en) Network connection system and method
CN113552808A (en) Network distribution method for electronic home equipment, electronic home equipment and mobile terminal
CN108156202B (en) Method, device and system for providing system location service
CN108243229B (en) Request processing method and device
CN110673970B (en) Cross-process calling system and method based on web application
RU2764288C1 (en) Method for deploying a resource required for a network function, a data carrier and an electronic device
CN107113281A (en) Content shared method, terminal, server and system
CN113721936A (en) Application management method, intelligent terminal, device and storage medium
CN113448607A (en) Method and device for firmware upgrading and intelligent household appliance
CN112769887B (en) File downloading method, system, equipment and computer readable storage medium
KR101560426B1 (en) Method and devices to seamlessly inject services in content flows
CN112910675A (en) Equipment management method, device and system
CN114781856B (en) Location service triggering and location service providing method and device

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
TA01 Transfer of patent application right

Effective date of registration: 20200512

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 100102, Beijing, Chaoyang District, Wangjing, Tong Tung Street East Square International Center, block A, 16

Applicant before: AUTONAVI INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant