CN109062649A - A kind of method and apparatus showing charge position information - Google Patents

A kind of method and apparatus showing charge position information Download PDF

Info

Publication number
CN109062649A
CN109062649A CN201810848140.2A CN201810848140A CN109062649A CN 109062649 A CN109062649 A CN 109062649A CN 201810848140 A CN201810848140 A CN 201810848140A CN 109062649 A CN109062649 A CN 109062649A
Authority
CN
China
Prior art keywords
charge position
information
position information
terminal device
location information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810848140.2A
Other languages
Chinese (zh)
Inventor
于磊明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201810848140.2A priority Critical patent/CN109062649A/en
Publication of CN109062649A publication Critical patent/CN109062649A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/0047Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries with monitoring or indicating devices or circuits
    • 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
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/023Services making use of location information using mutual or relative location information between multiple location based services [LBS] targets or of distance thresholds
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The embodiment of the present invention provides a kind of method and apparatus for showing charge position information, is applied to field of communication technology, and can solve can not quickly and accurately know charge position by user, leads to not in time be the problem of terminal device charges.The program is applied to terminal device, and the program includes: to obtain first location information, first location information is used to indicate the first position where terminal device in the case where the electricity of terminal device is less than or equal to first threshold;According to first location information, obtain N number of charge position information, N number of charge position information be instruction charge position apart from first position recently and quantity be N one or more charge position information, a charge position information is used to indicate a charge position, and N is positive integer;Show N number of charge position information.The program is specifically used in the scene that terminal device is in low battery and needs charge.

Description

A kind of method and apparatus showing charge position information
Technical field
The present embodiments relate to field of communication technology more particularly to a kind of method for showing charge position information and set It is standby.
Background technique
In general, terminal device can prompt the electricity of user's present terminal equipment at low battery (such as electricity is 20%) For low battery.At this point, user needs to charge for terminal device, to guarantee the normal use of terminal device.
In the prior art, user, which usually requires artificially to find, (can be denoted as charge position for the place of terminal device charging Set), such as it is provided with the place of charging plug.However, user may not be able to accurately know chargeable position in a short time, there are no Method accurately knows the chargeable position nearest apart from user.In this way, since user can not quickly and accurately know charge position, Therefore lead to not in time be terminal device charging.
Summary of the invention
The embodiment of the present invention provides a kind of method and apparatus for showing charge position information, can not be fast by user with solution Speed accurately knows charge position, leads to not in time be the problem of terminal device charges.
In order to solve the above-mentioned technical problem, the embodiments of the present invention are implemented as follows:
In a first aspect, the embodiment of the present invention provides a kind of method for showing charge position information, this method is applied to terminal Equipment, this method comprises: first location information is obtained in the case where the electricity of terminal device is less than or equal to first threshold, First location information is used to indicate the first position where terminal device;According to first location information, N number of charge position confidence is obtained Breath, N number of charge position information be instruction charge position apart from first position recently and quantity be N one or more fill Electric position information, a charge position information are used to indicate a charge position, and N is positive integer;Show N number of charge position confidence Breath.
Second aspect, the embodiment of the invention also provides a kind of method for showing charge position information, this method is applied to Server, this method comprises: the first request message that receiving terminal apparatus is sent, carries first position in the first request message Information, first location information are used to indicate the first position where terminal device;According to first location information, N number of charging is determined Location information, N number of charge position information be instruction charge position apart from first position recently and quantity be one of N or Multiple charge position information, a charge position information are used to indicate a charge position, and N is positive integer;It is sent out to terminal device The first response message is sent, N number of charge position information is carried in the first response message.
The third aspect, the embodiment of the invention also provides a kind of terminal device, which includes: the first acquisition mould Block, second obtain module and display module;First obtains module, is less than or equal to first threshold for the electricity in terminal device In the case where, first location information is obtained, first location information is used to indicate the first position where terminal device;Second obtains Module obtains N number of charge position information, N number of charge position for obtaining the first location information that module obtains according to first Information be instruction charge position apart from first position recently and quantity be N one or more charge position information, one is filled Electric position information is used to indicate a charge position, and N is positive integer;Display module, the N obtained for showing the second acquisition module A charge position information.
Fourth aspect, the embodiment of the invention also provides a kind of server, which includes: receiving module, determines mould Block and sending module;Receiving module carries in the first request message for the first request message that receiving terminal apparatus is sent First location information, first location information are used to indicate the first position where terminal device;Determining module, for according to reception The received first location information of module determines N number of charge position information, which is the charge position of instruction One or more charge position information that nearest and quantity is N apart from first position, a charge position information are used to indicate one A charge position, N are positive integer;Sending module is taken in the first response message for sending the first response message to terminal device The N number of charge position information determined with determining module.
5th aspect the embodiment of the invention provides a kind of terminal device, including processor, memory and is stored in this and deposits On reservoir and the computer program that can run on the processor, such as first is realized when which is executed by the processor The step of method of charge position information is shown described in aspect.
6th aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage mediums Computer program is stored in matter, and display charge position as described in relation to the first aspect is realized when which is executed by processor The step of method of information.
7th aspect the embodiment of the invention provides a kind of server, including processor, memory and is stored in the storage On device and the computer program that can run on the processor, such as second party is realized when which is executed by the processor The step of method of charge position information is shown described in face.
Eighth aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer-readable storage mediums Computer program is stored in matter, and the display charge position as described in second aspect is realized when which is executed by processor The step of method of information.
In embodiments of the present invention, in the case where the electricity of terminal device is less than or equal to first threshold, terminal device Available first location information, the first location information are used to indicate the first position where terminal device;Terminal device root According to first location information, N number of charge position information is obtained, which is the charge position distance first of instruction Position recently and quantity be N one or more charge position information, a charge position information is used to indicate a charge position It sets, N is positive integer;Terminal device shows N number of charge position information.Based on this programme, user does not need rule of thumb to look into manually It askes and is currently located the charge position nearest apart from first position, and the N number of charge position that can be shown by checking terminal device Information quickly and accurately knows N number of charge position of N number of charge position information instruction, i.e., N number of charging near first position Position.In this way, be conducive to user reaches the charge position nearest apart from first position in time, to be in time that terminal device charges.
Detailed description of the invention
Fig. 1 is a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention;
Fig. 2 is a kind of network architecture signal of method application for showing charge position information provided in an embodiment of the present invention Figure;
Fig. 3 is one of the flow diagram of method of display charge position information provided in an embodiment of the present invention;
Fig. 4 is the two of the flow diagram of the method for display charge position information provided in an embodiment of the present invention;
Fig. 5 is one of the schematic diagram at interface that terminal device provided in an embodiment of the present invention is shown;
Fig. 6 is the two of the schematic diagram at the interface that terminal device provided in an embodiment of the present invention is shown;
Fig. 7 is the three of the schematic diagram at the interface that terminal device provided in an embodiment of the present invention is shown;
Fig. 8 is the four of the schematic diagram at the interface that terminal device provided in an embodiment of the present invention is shown;
Fig. 9 provides one of the possible structural schematic diagram of terminal device for the embodiment of the present invention;
Figure 10 is the possible second structural representation of terminal device provided in an embodiment of the present invention;
Figure 11 is a kind of possible structural schematic diagram of server provided in an embodiment of the present invention;
Figure 12 is a kind of hardware structural diagram of terminal device provided in an embodiment of the present invention;
Figure 13 is a kind of hardware structural diagram of server provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
It should be noted that "/" herein indicate or the meaning, for example, A/B can indicate A or B;Herein "and/or" is only a kind of incidence relation for describing affiliated partner, indicates may exist three kinds of relationships, for example, A and/or B, it can To indicate: individualism A exists simultaneously A and B, these three situations of individualism B." multiple " refer to two or more.
It should be noted that in the embodiment of the present invention, " illustrative " or " such as " etc. words make example, example for indicating Card or explanation.Be described as in the embodiment of the present invention " illustrative " or " such as " any embodiment or design scheme do not answer It is interpreted than other embodiments or design scheme more preferably or more advantage.Specifically, " illustrative " or " example are used Such as " word is intended to that related notion is presented in specific ways.
Term " first " and " second " in specification of the invention etc. rather than are used for for distinguishing different objects The particular order of description object.For example, the first input and the second input etc. are for distinguishing different inputs, rather than for retouching State the particular order of input.
The method and apparatus of display charge position information provided in an embodiment of the present invention, can be applied to terminal device acquisition And during showing charge position information.
Referring to FIG. 1, providing a kind of network architecture of method application for showing charge position information for the embodiment of the present invention Schematic diagram.As shown in Figure 1, including server 11 and at least one terminal device 12 in the network architecture, which is used for It is interacted at least one terminal device 12 to provide charge position information at least one terminal device 12.Wherein, a charging Location information is used to indicate a charge position.
The embodiment of the present invention realizes that terminal device obtains simultaneously here, to interact between server 11 and a terminal device 12 The process of display charge position information is illustrated:
Wherein, terminal device 12, for reporting the location information of its position to server 11 in charging;Also use In the request message to the transmission acquisition charge position information of server 11, and show the charge position information acquired.Service Device 11 saves the location information for the location information that receiving terminal apparatus 12 reports;It is also used to receiving terminal device 12 After the request message of initiation, charge position information is determined according to the request message and the location information saved, and set to terminal Standby 12 send the charge position information for determining and obtaining.
Specifically, above-mentioned server 11 can save for service server etc. and analyze what more terminal devices provided The equipment of mass data (such as location information).Terminal device 12 in the embodiment of the present invention can be personal computer The terminal devices such as (Personal Computer, PC), mobile phone, tablet computer, portable computer.
It should be noted that the method and apparatus of display charge position information provided in an embodiment of the present invention, which can Think terminal device or terminal device and server.Specifically, terminal device can pass through its central processing unit The side for being used to execute display charge position information in (Central Processing Unit, CPU) or the terminal device The method that the control module of method executes display charge position.Similar, server can be by its CPU or the server Relevant control module obtains charge position information in the method for the display charge position for supporting terminal device to execute.
In the method for display charge position provided in an embodiment of the present invention, terminal device, which can be obtained independently, to be met terminal and sets Charge position information (the charge position indicated the charge position nearest apart from first position of the standby first position being currently located Information), as terminal device can obtain the charge position information from server.In this way, user does not need rule of thumb to look into manually It askes and is currently located the charge position nearest apart from first position, and the charge position confidence that can be shown by checking terminal device Breath quickly and accurately knows the charge position of charge position information instruction, i.e., charge position nearest apart from first position.From And be conducive to user and reach the charge position nearest apart from first position in time, to be in time that terminal device charges.
Terminal device in the embodiment of the present invention can be the terminal device with operating system.The operating system can be Android (Android) operating system can be ios operating system, can also be other possible operating systems, and the present invention is implemented Example is not especially limited.
Below by taking Android operation system as an example, the side of display charge position information provided in an embodiment of the present invention is introduced Software environment applied by method.
As shown in Fig. 2, being a kind of configuration diagram of possible Android operation system provided in an embodiment of the present invention.Scheming In 2, the framework of Android operation system includes 4 layers, be respectively as follows: application layer, application framework layer, system Runtime Library layer and Inner nuclear layer (is specifically as follows Linux inner core).
Wherein, application layer includes each application program (including system application and in Android operation system Tripartite's application program).
Application framework layer is the frame of application program, and developer can be in the exploitation for the frame for abiding by application program In the case where principle, some application programs are developed based on application framework layer.For example, system setting application, system chat are answered With with system camera application etc. application programs.Third party is arranged application, third party's camera applications and third party's chat application etc. and answers Use program.
System Runtime Library layer includes library (also referred to as system library) and Android operation system running environment.Library is mainly Android behaviour As system it is provided needed for all kinds of resources.Android operation system running environment is used to provide software loop for Android operation system Border.
Inner nuclear layer is the operating system layer of Android operation system, belongs to the bottom of Android operation system software level.It is interior Stratum nucleare provides core system service and hardware-related driver based on linux kernel for Android operation system.
By taking Android operation system as an example, in the embodiment of the present invention, developer can be based on above-mentioned Android as shown in Figure 2 The software journey of the method for display charge position information provided in an embodiment of the present invention is realized in the system architecture of operating system, exploitation Sequence, so that the method for the display charge position information can be run based on Android operation system as shown in Figure 2.Handle Device or terminal device equipment can realize that the embodiment of the present invention is provided by running the software program in Android operation system Display charge position information method.
It is shown below with reference to the flow chart of the method for display charge position information shown in Fig. 3 to provided in an embodiment of the present invention Show that the method for charge position information is described in detail.Wherein, it is mentioned although showing the embodiment of the present invention in method flow diagram The logical order of the method for the display charge position information of confession, but in some cases, it can be to be different from sequence herein Execute shown or described step.For example, the method for showing charge position information shown in Fig. 3 may include S301- S303:
S301, the electricity of terminal device be less than or equal to first threshold in the case where, terminal device obtain first position Information, first location information are used to indicate the first position where terminal device.
Wherein, the method for display charge position information provided herein of the embodiment of the present invention can be applied to terminal device, I.e. above-mentioned S301-S303 can be applied to terminal device.
It is understood that the electricity of terminal device is less than or equal to first threshold, illustrate that the electricity of terminal device is low Electricity.
Illustratively, above-mentioned first threshold can be the numerical value less than or equal to 30%, such as 20% or 30%.
Specifically, first position locating for above-mentioned terminal device is the real time position of the terminal device.
Optionally, terminal device can be spaced the position letter that (such as 1 minute) obtains a terminal device at regular intervals Breath.
Specifically, including the longitude and latitude of the position of location information instruction, such as first position in a location information It include the longitude and latitude of first position in information.
It is understood that terminal device may be used also in the case where the electricity of terminal device is less than or equal to first threshold The operating mode of the terminal device is switched to battery saving mode.Wherein, the operating mode of terminal device equipment is in power saving mould When formula, the consumption degree of the electricity of terminal device is lower, is conducive to extend the cruise duration of terminal device, that is, keep booting when Between it is longer.
S302, terminal device obtain N number of charge position information according to first location information.
Wherein, above-mentioned N number of charge position information is that the charge position of instruction is nearest apart from first position and quantity is N's One or more charge position information, a charge position information are used to indicate a charge position, and N is positive integer.
It is understood that can be one location information instruction of distance by instruction charge position in the embodiment of the present invention Position one or more charge position information recently, be known as meeting the charge position information of the location information.It N number of is filled as above-mentioned Electric position information is to meet N number of charge position information of first location information.
Optionally, meet the charge position near the N number of charge position information namely first position of first location information. For example, the charge position of charge position information instruction can be the charge position within 1000 meters of first position.
Optionally, one or more historical position informations can have been pre-saved in terminal device, and meet each go through N number of charge position information of history location information.
Optionally, terminal device can compare the first location information and the one or more history bit confidence obtained in real time Breath, when first location information is matched with a historical position information, terminal device can determine the historical position information pair The charge position information answered is to meet the charge position information of first location information.
Wherein, a location information matches (such as above-mentioned first location information and a history bit with another location information Set information matches), the distance between position of the two location informations instruction is referred in preset range, at the distance In the range of 10 meters.
Illustratively, here, the first location information of terminal device can be denoted as location information 1 to the embodiment of the present invention.Eventually End equipment can preserve historical position information 1 and meet the charge position information and history bit confidence of historical position information 1 Breath 2 and the charge position information for meeting historical position information.Wherein, the charge position information for meeting historical position information 1 includes Charge position information 1, charge position information 2, charge position information 3, charge position information 4 and charge position information 5;Meet and goes through The charge position information of history location information 2 includes charge position information 6, charge position information 7, charge position information 8, charge position Confidence breath 9 and charge position information 10.At this point, terminal device can be true if location information 1 is matched with historical position information 1 Surely the charge position information for meeting location information 1 includes charge position 1~charge position of information information 5, i.e. N is equal to 5.
S303, terminal device show N number of charge position information.
Illustratively, terminal device shows 1~charge position of above-mentioned charge position information information 5.
Optionally, terminal device can show N number of charge position information on its system notification bar.Wherein, terminal device In system notification bar may include fixed display in terminal device notification bar, as the negative one screen of terminal, pull-up menu or under Draw the notification bar in menu;And the notification bar for the display that suspends in terminal device, terminal is shown in as the notification bar can suspend The upper end of the screen of equipment, and can display information (such as above-mentioned N number of charge position information) afterwards a period of time (such as 10 seconds) it Cancel display afterwards.
Optionally, terminal device can show N number of charge position information on currently running interface.Specifically, terminal Equipment can suspend on the surface display or covering show N number of charge position information.For example, terminal device is currently shown Interface be currently running picture library application program, i.e., the interface is the interface that picture library application program provides, and terminal device can be at this time It suspends on the interface that the picture library application program provides and shows N number of charge position information.
It is understood that user can check N number of charge position after terminal device shows N number of charge position information Confidence breath, quickly and accurately to know N number of charge position near the first position being currently located.
In addition, terminal device is also to user's display reminding message, example if terminal device obtains the failure of charge position information Such as the prompting message can be " nearby chargeable place obtains failure ".
It should be noted that the method and apparatus of display charge position information provided in an embodiment of the present invention, sets in terminal In the case that standby electricity is less than or equal to first threshold, the available first location information of terminal device, first position letter Breath is used to indicate the first position where terminal device;Terminal device obtains N number of charge position confidence according to first location information Breath, N number of charge position information be instruction charge position apart from first position recently and quantity be N one or more fill Electric position information, a charge position information are used to indicate a charge position, and N is positive integer;Terminal device shows N number of charging Location information.Based on this programme, user does not need the charge position that rule of thumb manual queries current distance first position is nearest, And the N number of charge position information that can be shown by checking terminal device, quickly and accurately know that N number of charge position information refers to The N number of charge position shown, i.e., N number of charge position near first position.In this way, be conducive to user reaches distance first in time Nearest charge position is set, to be in time that terminal device charges.
In one possible implementation, in the embodiment of the present invention, terminal device can be obtained from server meet the The charge position information of one location information.Illustratively, as shown in figure 4, being filled for another display provided in an embodiment of the present invention The flow diagram of the method for electric position information.In conjunction with Fig. 3, as shown in figure 4, method provided in an embodiment of the present invention includes S401-S407:
S401, the electricity of terminal device be less than or equal to first threshold in the case where, terminal device obtain first position Information, first location information are used to indicate the first position where terminal device.
Wherein, S401 provided in an embodiment of the present invention is identical as above-mentioned S301, and it is above-mentioned right to be referred to the description of S401 The associated description of S301, which is not described herein again.
S402, terminal device send the first request message to server, and first position letter is carried in the first request message Breath.
Optionally, in conjunction with above-described embodiment, terminal device can be in interval acquiring first location information at regular intervals The first request message for carrying the first location information is reported to server in preset duration later, as the preset duration can Think 5 seconds.
Alternatively, terminal device can after interval acquiring first location information at regular intervals, if current first Location information is different from the preceding first location information once obtained, then terminal device triggers to server and reports carrying this first First request message of confidence breath.Wherein, current first location information is different from the preceding first location information once obtained, refers to Be between the position of current first location information instruction and the position of the preceding first location information instruction once obtained Distance be greater than preset range (such as 10 meters).
It is understood that terminal device can not save and the matched historical position information of first location information wherein In the case where, the first request message is sent to server.
The first request message that S403, server receiving terminal equipment are sent.
Wherein, it after server receives the first request message that terminal device (being denoted as terminal device 1) sends, can solve First request message is analysed, to obtain the first location information carried in first request message.
S404, server determine N number of charge position information according to first location information.
Optionally, one or more historical position informations can be preserved in server, and meet each historical position The charge position information of information.Illustratively, historical position information 3 is preserved in server, and meets historical position information 3 Charge position information, such as charge position 11~charge position of information information 15.
It is understood that the historical position information saved in server, can send for server receiving terminal equipment 1 The first request message before, the first position that is carried in the request message that is sent by the terminal device 1 or other terminal devices Information.
S405, server send the first response message to terminal device, carry N number of charge position in the first response message Information.
S406, terminal device receive the first response message that server is sent.
Specifically, the S302 provided in above-described embodiment can realize that is, S302 could alternatively be by S402 and S406 S402 and S406.
It is understood that can parse first response message after terminal device receives the first response message, with Obtain the N number of charge position information carried in first response message.
Optionally, in the case where not saving location information matched with first location information in terminal device, terminal is set It is standby to save first position letter after receiving from server and meeting N number of charge position information of first location information Breath and N number of charge position information.To which it is subsequent at same position (i.e. first position) to be conducive to terminal device, can be fast Fast ground gets N number of charge position information from the information that the terminal device locally saves.For example, location information 1 with go through When history location information 3 matches, terminal device, can be at this after receiving charge position 11~charge position of information information 15 It is a historical position information (i.e. historical position information 3) that ground, which saves the location information 1, and saves the charge position information 11 ~charge position information 15.
S407, terminal device show N number of charge position information.
Wherein, S407 provided in an embodiment of the present invention is identical as above-mentioned S303, and it is above-mentioned right to be referred to the description of S407 The associated description of S303, which is not described herein again.
It should be noted that server can mention in the method for display charge position information provided in an embodiment of the present invention For one or more charge position information.Specifically, obtaining the charge position for meeting first location information in terminal device demand When information, terminal device can be interacted with server, to obtain the charge position information for meeting first location information from server. In this way, even if terminal device itself cannot be determined for compliance with the charge position information of first location information, which can also be with The charge position information (such as above-mentioned N number of charge position information) is acquired from server.To be conducive to improve terminal device The efficiency of charge position information is obtained, and then is conducive to user and quickly and accurately knows the charge position nearest apart from first position It sets, is charged using reaching the charge position nearest apart from first position in time as terminal device.
In one possible implementation, the method for display position information provided in an embodiment of the present invention, in server At least two location informations can be saved.Specifically, the S404 in above-described embodiment may include S404a and S404b:
The position and first position that S404a, server are indicated according to location information each at least two location informations it Between the ascending sequence of distance, N number of location information is determined from least two location informations, N is preset value.
Wherein, the position that two location informations indicate at least two location informations is identical as the distance between first position When, any position information in the two location informations can be determined as the location information of front by server.
It should be noted that each location information at least two location informations provided in the embodiment of the present invention indicates Position be a charge position.Specifically, each location information is that any terminal equipment interacted with server is charging When be reported to server, wherein each location information is received before server executes above-mentioned S404a.
Illustratively, in the embodiment of the present invention, above-mentioned preset value can be 5, i.e. N is equal to 5.
It is understood that server determines that the position of each location information instruction in obtained N number of location information is equal It is closer with the first position where terminal device.
Specifically, server can compare the information of the longitude and latitude that include in a location information, with first position The information of the longitude and latitude that include in information obtains the distance between position and first position of location information instruction.
S404b, server are for each location information in N number of location information, according to a location information and first Confidence breath, generates a charge position information, to obtain N number of charge position information.
Specifically, in above-mentioned " according to a location information and first location information, generating a charge position information ", it should The charge position of charge position information instruction is the position of location information instruction.
It should be noted that server can be by the method for display charge position information provided in an embodiment of the present invention Range determines the charge position that the closer quantity in first position is preset value (i.e. N) from ascending sequence to get symbol is arrived Close N number of charge position information of first location information.In this way, meeting first location information to terminal device transmission in server In the case where N number of charge position information, user can quickly and accurately learn the nearest charging of the instruction that terminal device is shown The charge position information of position.To further be conducive to user and reach nearest charge position in time and filled for terminal device Electricity.
In one possible implementation, the method for display charge position information provided in an embodiment of the present invention, it is N number of to fill Each charge position information in electric position information includes a station location marker and/or a distance values, a distance values It is used to indicate the distance between charge position and the first position of the instruction of a charge position information.
Wherein, the station location marker for including in a charge position information is for identifying the charge position information.
Illustratively, when above-mentioned N number of charge position information includes charge position information 11~charge position information 15, charging The station location marker for including in location information 11 can be " place 1 ", and the station location marker for including in charge position information 12 can be The station location marker for including in " place 2 ", charge position information 13 can be " place 3 ", the position for including in charge position information 14 It can be " place 5 " that set mark, which can be the station location marker for including in " place 4 " and charge position information 15,.
Optionally, the station location marker for including in a charge position information is specifically as follows the charge position information and indicates The title of position.For example, the station location marker for including in above-mentioned charge position information 11 is " road A B Building Floor 6 ".
Illustratively, as shown in figure 5, the schematic diagram at the interface shown for terminal device provided in an embodiment of the present invention.With Under by terminal device be mobile phone for be illustrated.It include an information list in the interface 50 of the terminal device shown in Fig. 5, it should It include " place 1 " option, " place 2 " option, " place 3 " option, " place 4 " option and " place 5 " option in information list.This When, it include a station location marker in a charge position information.
Optionally, as shown in fig. 6, the signal at the interface shown for another terminal device provided in an embodiment of the present invention Figure.In conjunction with Fig. 5, in the information list that includes in the interface 60 of the terminal device shown in Fig. 6, " place 1 " option is corresponding " from you 100 meters ", i.e., distance values are 100;" place 2 " option it is corresponding " from you 300 meters ", i.e., distance values are 300;" place 3 " option It is corresponding " from you 500 meters ", i.e., distance values are 500;" place 4 " option it is corresponding " from you 1000 meters ", i.e., distance values are 1000; " place 4 " option it is corresponding " from you 2000 meters ", i.e., distance values are 2000.
Certainly, in the embodiment of the present invention, multiple charge position information that terminal device is shown, such as above-mentioned charge position information The sequence of 11~charge position information 15 can be each charge position in the information list in above-mentioned interface 50 and interface 60 Other sequences except the sequence of information, the present invention is not especially limit this.
It is understood that above-mentioned interface 50 and interface 60 can be shown in currently running in terminal device answer for covering With the interface on the interface of program or desktop.
Optionally, here, preset value can be 1 to the embodiment of the present invention, i.e. N is equal to 1.Wherein, what terminal device obtained fills Electric position information is the charge position of an instruction charge position information nearest apart from first position.
It should be noted that terminal device can in the method for the display charge position information provided in the embodiment of the present invention To show to user including station location marker and/or distance values, so that the charging that user can intuitively show from terminal Charge position is known in location information.Be conducive to improve the efficiency that user knows charge position information.
In one possible implementation, each charge position in the embodiment of the present invention, in N number of charge position information Information corresponds to a navigation information, and a navigation information is the charge position that first position is indicated to a charge position information Navigation information.Specifically, in the method for display position information provided in an embodiment of the present invention, after above-mentioned S303 or S407, also May include S408 and S409:
S408, terminal device receive first input of the user to the first charge position information, and the first charge position information is N One in a charge position information.
Illustratively, in conjunction with above-described embodiment, the first charge position information that terminal device is shown can be shown for above-mentioned Fig. 5 " place 1 " corresponding charge position information 11 out.
Optionally, the first charge position information is the smallest charge position of distance values for including in N number of charge position information Confidence breath.
Specifically, when the quantity for the charge position information that terminal device is shown is 1, i.e., above-mentioned first charge position confidence Cease the charge position of the instruction charge position information nearest apart from first position.For example, in conjunction with above-described embodiment, the first charge position Confidence breath can be charge position information 11 provided by the above embodiment.
It should be noted that the screen of terminal device provided in an embodiment of the present invention can be touch screen, which can With the input for receiving user, and the corresponding content of the input is shown to the user in response to the input.Wherein, above-mentioned first Input can be touch-screen input, fingerprint input, gravity input, key-press input etc..Wherein, touch-screen input is user to terminal device Touch screen pressing input, long-pressing input, slidably input, click input, suspend input (user is defeated near touch screen Enter) etc. input.Fingerprint input be user to the sliding fingerprint of the Fingerprint Identification Unit of terminal device, long-pressing fingerprint, click fingerprint and Double-click the input such as fingerprint.Gravity input is that user inputs the shaking of terminal device specific direction, shaking of specific times etc..It presses Key input corresponds to user and clicks input, double-click input, length to keys such as the power keys, volume key, Home key of terminal device By inputs such as input, combination button inputs.Specifically, the embodiment of the present invention is not especially limited the mode of the first input, it can Think any achievable mode.
S409, it is inputted in response to first, terminal device exports the corresponding navigation information of the first charge position information.
It is understood that the corresponding navigation information of above-mentioned first charge position information, as first position is filled to first Navigation information between first charge position of electric position information instruction.It wherein, may include first position in the navigation information To the vehicles (such as road * * bus) taken needed for the path of the first charge position and the path, the length in the path Deng.Wherein, the length in the path is greater than or equal to the distance between first position and the first charge position.
Optionally, terminal device is showing the interface including the first charge position information (as shown in above-mentioned Fig. 5 to user Interface 50) after, if receive first input of the user to the first charge position information, by the changing interface of terminal device For the interface of map application in terminal device, and the corresponding navigation information of the first charge position information is shown on the surface (such as cartographic information).
Optionally, terminal device exports the corresponding navigation information of the first charge position information, in addition to showing the first charge position Confidence ceases except corresponding navigation information, can also export voice messaging relevant to the navigation information, for user's navigation.
It should be noted that the method for display charge position information provided in an embodiment of the present invention, what terminal device provided Each charge position information can correspond to a navigation information, and the charge position confidence that user can show terminal device Breath is inputted, and shows the corresponding navigation information of charge position information with triggering terminal equipment.In this way, what terminal device provided The corresponding navigation information of charge position information is conducive to user and rapidly reaches the charge position and charge for terminal device.
In one possible implementation, it in the method for display charge position information provided in an embodiment of the present invention, uses Family can choose whether that triggering terminal equipment obtains the charge position information for meeting first location information.Specifically, above-mentioned implementation The S301 that example provides can be realized by S301a, S301b and S301c:
S301a, the electricity of terminal device be less than or equal to first threshold in the case where, terminal device show first prompt Message, the first prompting message are used to prompt the user whether that triggering terminal equipment to obtain the charge position for meeting location information.
Optionally, above-mentioned first prompting message can be also used for prompting the user whether the operating mode of terminal device It is switched to " battery saving mode ".
Illustratively, as shown in fig. 7, the schematic diagram at the interface shown for terminal device provided in an embodiment of the present invention.Its In, it include that " electricity is lower, if switching in the interface 70 of the terminal device shown in Fig. 7 in the first prompting message for may include To battery saving mode and search chargeable place nearby? " and " determination " option 701 and " cancellation " option 702.Specifically, " really Option 701 obtains the charge position information for meeting first location information for triggering terminal equipment calmly ";" cancellation " option 702 is used The process for meeting the charge position information of first location information is obtained in triggering terminal device end.
S301b, terminal device receive second input of the user to the first prompting message.
Illustratively, the second input is " determination " option shown in interface 70 of the user to the terminal device shown in Fig. 7 701 input.
Similar, the description of the implementation of the second input is referred in the embodiment of the present invention above-mentioned to the first input Implementation first pass description, which is not described herein again.
S301c, it is inputted in response to second, terminal device obtains first location information.
It is filled it is emphasized that the second input of user here of the embodiment of the present invention can start to obtain with triggering terminal equipment The process of electric position information, particular user triggering terminal equipment obtain first location information.
It is understood that after the second input of terminal device reception user, if first location information success is obtained, and The N number of charge position information success for meeting first location information is obtained, then the interface that terminal device is shown is by display first The changing interface of prompting message is the interface for showing N number of charge position information.For example, the interface that terminal device can be shown The interface 50 shown in above-mentioned Fig. 5 is switched to by the interface 70 shown in Fig. 7.
In addition, optional, terminal device can be in the case where its electricity be lower than first threshold, and autonomous triggering obtains charging The process of location information without input (such as above-mentioned second input) triggering of user, and is obtaining rear line successfully The second prompting message is shown, to prompt the user whether to select to check the charge position information for meeting first location information.At this point, eventually End equipment can not show the interface 70 of the terminal device shown in above-mentioned Fig. 7, but show the interface including the second prompting message.
Illustratively, as shown in figure 8, the signal at the interface shown for another terminal device provided in an embodiment of the present invention Figure.Second prompting message shown in the interface 80 of terminal device shown in Fig. 8 may include that " electricity is lower, from you at 100 meters Chargeable, click is gone to " and " determinations " option 801 and " cancellation " option 802.Wherein, " determination " option 801 is for triggering end End equipment shows the corresponding navigation information of charge position information for meeting first location information;" cancellation " option 802 is for triggering Terminal device terminates the process that display meets the corresponding navigation information of charge position information of first location information.
It is understood that terminal device obtains in the case that the interface 80 of the terminal device shown in Fig. 8 shows second message The quantity of the charge position information taken can be 1 (i.e. N is equal to 1), such as nearest apart from a first position charge position pair The charge position information answered.
It should be noted that in the method for display charge position information provided in an embodiment of the present invention, due to terminal device The first prompting message can be shown to user before the process for starting to obtain charge position information, so that user can be with It independently chooses whether triggering terminal and obtains charge position information, such as triggering terminal equipment obtains first location information and meets the The charge position information of one location information.In this way, in user, demand terminal device does not obtain charge position information, as user is current In the case where charge position where knowing it near first position, terminal device, which does not need to execute, obtains charge position information Process is conducive to the utilization of resources for saving terminal device.To when being conducive to extend continuation of the journey of the terminal device in low battery Between.
In one possible implementation, in the method for display charge position information provided in an embodiment of the present invention, eventually End equipment can send the corresponding location information of charge position that it is currently located in charging to server.Specifically, above-mentioned May include S410-S412 after specially S409 after S303 or S407:
S410, it is located at the second position of the first charge position information instruction and terminal device in charging in terminal device In the case where state, terminal device sends second location information to server, includes the warp of the second position in second location information Degree and latitude.
Specifically, user can know the first charge position information that terminal device is shown, and reach the first charge position For terminal device charging.
It is understood that terminal device can determine it before terminal device sends second location information to server In charged state, and determine that the corresponding location information in position being currently located (is such as currently located the second position corresponding second Location information).
Illustratively, when terminal device connects charger, terminal device can detecte charging broadcast;Then, this is filled Electricity broadcast can start to execute the process for sending location information to server with triggering terminal equipment, and specially triggering terminal equipment obtains It takes and sends second location information.
The second location information that S411, server receiving terminal equipment are sent.
S412, server save second location information, to update at least two location informations.
It should be noted that in the method for display charge position information provided in an embodiment of the present invention, due to terminal device The corresponding location information of its present position (such as second location information) can be sent to server in charging, and the position Confidence breath can indicate a charge position, therefore receive the location information in server, and update at least two of its preservation After location information, is conducive to subsequent determine according at least two location information of raising server and obtains charge position information Accuracy.
In one possible implementation, as shown in figure 9, it is possible for a kind of terminal device provided in an embodiment of the present invention Structural schematic diagram.Terminal device 90 shown in Fig. 9 includes: that the first acquisition module 901, second obtains module 902 and display mould Block 903;First obtains module 901, for obtaining the in the case where the electricity of terminal device 90 is less than or equal to first threshold One location information, first location information are used to indicate the first position where terminal device 90;Second obtains module 902, is used for The first location information that module 901 obtains is obtained according to first, obtains N number of charge position information, which is The charge position of instruction is apart from one or more charge position information that first position is nearest and quantity is N, a charge position Information is used to indicate a charge position, and N is positive integer;Display module 903, the N obtained for showing the second acquisition module 902 A charge position information.
It optionally, as shown in Figure 10, is the possible structural representation of another terminal device provided in an embodiment of the present invention Figure.In conjunction with Fig. 9, as shown in Figure 10, the second acquisition module 902 includes: sending submodule 9021 and receiving submodule 9022;It sends Submodule 9021 carries the first acquisition module 901 in the first request message and obtains for sending the first request message to server The first location information taken;Receiving submodule 9022, for receiving the first response message of server transmission, the first response message In carry N number of charge position information.
Optionally, each charge position information in N number of charge position information include a station location marker and/or one away from From numerical value, a distance values be used to indicate between the charge position and first position of the instruction of charge position information away from From.
Optionally, the corresponding navigation information of each charge position information in N number of charge position information, a navigation letter Breath is the navigation information for the charge position that first position is indicated to a charge position information;Terminal device 90 further include: receive Module and output module;Receiving module after showing N number of chargeable location information for display module 903, receives user to the First input of one charge position information, the first charge position information are one in N number of charge position information;Output module, For in response to received first input of receiving module, the corresponding navigation information of the first charge position information of output;Wherein, first Charge position information is the smallest charge position information of distance values for including in N number of charge position information.
Optionally, terminal device 90 further include: sending module;Sending module is filled for being located at first in terminal device 90 In the case that the second position and terminal device 90 that electric position information indicates are in charged state, second is sent to server Confidence ceases, and includes the longitude and latitude of the second position in second location information.
Terminal device 90 provided in an embodiment of the present invention can be realized terminal device in above method embodiment realize it is each A process, to avoid repeating, which is not described herein again.
It should be noted that terminal device provided in an embodiment of the present invention, it is less than or equal to the in the electricity of terminal device In the case where one threshold value, the available first location information of terminal device, the first location information is used to indicate terminal device institute First position;Terminal device obtains N number of charge position information according to first location information, which is The charge position of instruction is apart from one or more charge position information that first position is nearest and quantity is N, a charge position Information is used to indicate a charge position, and N is positive integer;Terminal device shows N number of charge position information.Based on this programme, use Family does not need rule of thumb manual queries and is currently located the charge position nearest apart from first position, and can be by checking terminal N number of charge position information that equipment is shown quickly and accurately knows N number of charge position of N number of charge position information instruction, i.e., N number of charge position near first position.In this way, be conducive to user reaches the charge position nearest apart from first position in time, To be in time that terminal device charges.
In one possible implementation, as shown in figure 11, possible for a kind of server provided in an embodiment of the present invention Structural schematic diagram.Server 110 shown in Figure 11 includes: receiving module 1101, determining module 1102 and sending module 1103; Receiving module 1101 carries first position in the first request message for the first request message that receiving terminal apparatus is sent Information, first location information are used to indicate the first position where terminal device;Determining module 1102, for according to receiving module 1101 received first location informations determine N number of charge position information, which is the charge position of instruction One or more charge position information that nearest and quantity is N apart from first position, a charge position information are used to indicate one A charge position, N are positive integer;Sending module 1103, for sending the first response message, the first response message to terminal device In carry determining module 1102 determine N number of charge position information.
Optionally, at least two location informations are preserved in server 110;Determining module 1102 is specifically used for according to extremely The distance between the position and the received first position of receiving module 1101 of each location information instruction in few two location informations Ascending sequence determines N number of location information from least two location informations, and N is preset value;For N number of location information In each location information one charge position information is generated, to obtain N according to a location information and first location information A charge position information.
Server 110 provided in an embodiment of the present invention can be realized each mistake that server is realized in above method embodiment Journey, to avoid repeating, which is not described herein again.
It should be noted that server provided in an embodiment of the present invention, server can provide one or more charge positions Confidence breath.Specifically, terminal device can be with when the acquisition of terminal device demand meets the charge position information of first location information It is interacted with server, to obtain the charge position information for meeting first location information from server.In this way, even if terminal device from Body cannot be determined for compliance with the charge position information of first location information, which can also acquire this from server and fill Electric position information (such as above-mentioned N number of charge position information).To be conducive to improve the effect that terminal device obtains charge position information Rate, and then be conducive to user and quickly and accurately know the charge position nearest apart from first position, to reach distance first in time The nearest charge position in position is terminal device charging.
Figure 12 is a kind of hardware structural diagram of terminal device provided in an embodiment of the present invention, the terminal device 100 packet It includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display The components such as unit 106, user input unit 107, interface unit 108, memory 109, processor 110 and power supply 111.This Field technical staff is appreciated that terminal device structure shown in Figure 12 does not constitute the restriction to terminal device, and terminal is set Standby may include perhaps combining certain components or different component layouts than illustrating more or fewer components.In the present invention In embodiment, terminal device include but is not limited to mobile phone, tablet computer, laptop, palm PC, vehicle-mounted terminal equipment, Wearable device and pedometer etc..
Wherein, processor 110, for obtaining in the case where the electricity of terminal device 90 is less than or equal to first threshold First location information, first location information are used to indicate the first position where terminal device 90;Interface unit 108 is used for root According to the first location information that processor 110 obtains, the N number of charge position information for meeting first location information, a charging are obtained Location information is used to indicate a charge position, and N is positive integer;Display unit 106, the N obtained for display interface unit 108 A charge position information.
It should be understood that the embodiment of the present invention in, radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal Send and receive, specifically, by from base station downlink data receive after, to processor 110 handle;In addition, by uplink Data are sent to base station.In general, radio frequency unit 101 includes but is not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 101 can also by wireless communication system and network and other set Standby communication.Illustratively, the first sending submodule 9021 in terminal device and sending module can be real by radio frequency unit 101 It is existing.
Terminal device provides wireless broadband internet by network module 102 for user and accesses, and such as user is helped to receive It sends e-mails, browse webpage and access streaming video etc..
Audio output unit 103 can be received by radio frequency unit 101 or network module 102 or in memory 109 The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 103 can also provide and end The relevant audio output of specific function that end equipment 100 executes is (for example, call signal receives sound, message sink sound etc. Deng).Audio output unit 103 includes loudspeaker, buzzer and receiver etc..For example, in the embodiment of the present invention, terminal device In output module for exporting the corresponding navigation information of charge position information can be realized by the audio output unit 103.
Input unit 104 is for receiving audio or video signal.Input unit 104 may include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or network module 102.Mike Wind 1042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be The format output that mobile communication base station can be sent to via radio frequency unit 101 is converted in the case where telephone calling model.
Terminal device 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when terminal device 100 is moved in one's ear Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify terminal device posture (ratio Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes Sensor 105 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.Illustratively, the present invention is real It applies in example, terminal device can be by charge position information that display unit 106 is shown and can be with various prompting messages (such as One prompting message).In addition, in the embodiment of the present invention, for exporting the corresponding navigation information of charge position information in terminal device Output module can also be realized by the display unit 106.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with terminal device Family setting and the related key signals input of function control.Specifically, user input unit 107 include touch panel 1071 and Other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby (for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071 Neighbouring operation).Touch panel 1071 may include both touch detecting apparatus and touch controller.Wherein, touch detection Device detects the touch orientation of user, and detects touch operation bring signal, transmits a signal to touch controller;Touch control Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 110, receiving area It manages the order that device 110 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc. Seed type realizes touch panel 1071.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can include but is not limited to physical keyboard, function key (such as volume control button, Switch key etc.), trace ball, mouse, operating stick, details are not described herein.Illustratively, in the embodiment of the present invention, terminal device The first input and the second input of user's input can be received by the touch panel 1071 in input unit 107.
Further, touch panel 1071 can be covered on display panel 1061, when touch panel 1071 is detected at it On or near touch operation after, send processor 110 to determine the type of touch event, be followed by subsequent processing device 110 according to touching The type for touching event provides corresponding visual output on display panel 1061.Although in Figure 12, touch panel 1071 and aobvious Show that panel 1061 is the function that outputs and inputs of realizing terminal device as two independent components, but in some embodiments In, can be integrated by touch panel 1071 and display panel 1061 and realize the function that outputs and inputs of terminal device, it is specific this Place is without limitation.
Interface unit 108 is the interface that external device (ED) is connect with terminal device 100.For example, external device (ED) may include having Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module Mouthful etc..Interface unit 108 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and By one or more elements that the input received is transferred in terminal device 100 or can be used in 100 He of terminal device Data are transmitted between external device (ED).For example, receiving submodule 9022 and reception in the embodiment of the present invention, in above-mentioned terminal device Module can be realized by interface unit 108.
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.It is exemplary , in the embodiment of the present invention, memory 109 in terminal device can be used to save the first location information that meets of its acquisition N number of charge position information.
Processor 110 is the control centre of terminal device, utilizes each of various interfaces and the entire terminal device of connection A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage Data in device 109 execute the various functions and processing data of terminal device, to carry out integral monitoring to terminal device.Place Managing device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.It is exemplary , the first acquisition module 901 in above-mentioned terminal device can be realized by processor 110.
Terminal device 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put The functions such as electricity and power managed.
In addition, terminal device 100 includes some unshowned functional modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of terminal device, including processor 110, and memory 109 is stored in On memory 109 and the computer program that can run on the processor 110, the computer program are executed by processor 110 Each process of Shi Shixian above method embodiment, and identical technical effect can be reached, it is no longer superfluous here to avoid repeating It states.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each mistake for the embodiment of the method that above-mentioned terminal device executes when being executed by processor Journey, and identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium Matter, as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc..
It in one possible implementation, as shown in figure 13, is a kind of the hard of server provided in an embodiment of the present invention Part structural schematic diagram.Server 130 shown in Figure 13 includes: processor 1301, transceiver 1302, memory 1303, Yong Hujie Mouth 1304 and bus interface.In 13, bus architecture may include the bus and bridge of any number of interconnection, specifically by processor The various circuits for the memory that 1301 one or more processors represented and memory 1303 represent link together.Total coil holder Structure can also link together various other circuits of such as peripheral equipment, voltage-stablizer and management circuit or the like, this It is all a bit it is known in the art, therefore, it will not be further described herein.Bus interface provides interface.Transceiver 1302 can be multiple element, that is, include transmitter and receiver, provide for logical with various other devices over a transmission medium The unit of letter.For different servers, user interface 1304, which can also be, external can be inscribed the interface for needing equipment, connection Equipment include but is not limited to keypad, display, loudspeaker, microphone, control stick etc..Processor 1301 is responsible for management bus Framework and common processing, memory 1303 can store the used data when executing operation of processor 1301.
In addition, server 1300 further includes some unshowned functional modules, details are not described herein.
Wherein, transceiver 1302 carry in the first request message for the first request message that receiving terminal apparatus is sent There is first location information, first location information is used to indicate the first position where terminal device;Processor 1301 is used for basis The received first location information of transceiver 1302 is determined for compliance with N number of charge position information of first location information, a charge position Confidence breath is used to indicate a charge position, and N is positive integer;Transceiver 1302 is also used to send the first response to terminal device Message carries N number of charge position information that processor 1301 determines in the first response message.
It should be noted that server provided in an embodiment of the present invention, server can provide one or more charge positions Confidence breath.Specifically, terminal device can be with when the acquisition of terminal device demand meets the charge position information of first location information It is interacted with server, to obtain the charge position information for meeting first location information from server.In this way, even if terminal device from Body cannot be determined for compliance with the charge position information of first location information, which can also acquire this from server and fill Electric position information (such as above-mentioned N number of charge position information).To be conducive to improve the effect that terminal device obtains charge position information Rate, and then be conducive to user and quickly and accurately know the charge position nearest apart from first position, to reach distance first in time The nearest charge position in position is terminal device charging.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each process for the embodiment of the method that above-mentioned server executes when being executed by processor, And identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, Such as ROM, RAM, magnetic or disk.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that an equipment (can be mobile phone, computer, service Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited to above-mentioned specific Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much Form belongs within protection of the invention.

Claims (18)

1. a kind of method for showing charge position information, which is characterized in that be applied to terminal device, which comprises
In the case where the electricity of the terminal device is less than or equal to first threshold, acquisition first location information, described first Location information is used to indicate the first position where the terminal device;
According to the first location information, N number of charge position information is obtained, N number of charge position information is the charging of instruction One or more charge position information that first position described in positional distance is nearest and quantity is N, a charge position information use In indicating a charge position, N is positive integer;
Show N number of charge position information.
2. obtaining N number of charging the method according to claim 1, wherein described according to the first location information Location information, comprising:
The first request message is sent to server, carries the first location information in first request message;
The first response message that the server is sent is received, carries N number of charge position in first response message Information.
3. according to the method described in claim 2, it is characterized in that, each charge position in N number of charge position information Information includes a station location marker and/or a distance values, and a distance values are used to indicate a charge position information and refer to The distance between the charge position shown and the first position.
4. according to the method in claim 2 or 3, which is characterized in that each charge position in N number of charge position information Confidence ceases a corresponding navigation information, and a navigation information is the charging that the first position is indicated to a charge position information The navigation information of position;
After display N number of chargeable location information, further includes:
First input of the user to the first charge position information is received, the first charge position information is N number of charge position One in confidence breath;
In response to first input, the corresponding navigation information of the first charge position information is exported;
Wherein, the first charge position information is the smallest charging of distance values for including in N number of charge position information Location information.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
It is located at the second position of the first charge position information instruction in the terminal device and the terminal device is in and fills In the case where electricity condition, second location information is sent to the server, includes the second in the second location information The longitude and latitude set.
6. a kind of method for showing charge position information, which is characterized in that be applied to server, which comprises
The first request message that receiving terminal apparatus is sent carries first location information in first request message, described First location information is used to indicate the first position where the terminal device;
According to the first location information, determine that N number of charge position information, N number of charge position information are the charging of instruction One or more charge position information that first position described in positional distance is nearest and quantity is N, a charge position information use In indicating a charge position, N is positive integer;
The first response message is sent to the terminal device, carries N number of charge position confidence in first response message Breath.
7. according to the method described in claim 6, it is characterized in that, preserving at least two location informations in the server;
It is described according to the first location information, determine N number of charge position information, comprising:
According to the distance between the position of location information each at least two location information instruction and described first position Ascending sequence determines N number of location information from least two location information, and N is preset value;
It is raw according to a location information and the first location information for each location information in N number of location information At a charge position information, to obtain N number of charge position information.
8. a kind of terminal device, which is characterized in that the terminal device includes: the first acquisition module, the second acquisition module and shows Show module;
Described first obtains module, for obtaining in the case where the electricity of the terminal device is less than or equal to first threshold First location information, the first location information are used to indicate the first position where the terminal device;
Described second obtains module, for obtaining the first location information that module obtains according to described first, obtains N number of fill Electric position information, N number of charge position information are that the charge position of instruction is nearest apart from the first position and quantity is N One or more charge position information, a charge position information is used to indicate a charge position, and N is positive integer;
The display module, for showing the described second N number of charge position information for obtaining module acquisition.
9. terminal device according to claim 8, which is characterized in that the second acquisition module includes: sending submodule And receiving submodule;
The sending submodule carries described for sending the first request message to server in first request message First obtains the first location information that module obtains;
The receiving submodule is taken in first response message for receiving the first response message of the server transmission With N number of charge position information.
10. terminal device according to claim 9, which is characterized in that each charging in N number of charge position information Location information includes a station location marker and/or a distance values, and a distance values are used to indicate a charge position confidence Cease the distance between the charge position indicated and described first position.
11. terminal device according to claim 9 or 10, which is characterized in that each of described N number of charge position information Charge position information corresponds to a navigation information, and a navigation information is that the first position is indicated to a charge position information Charge position navigation information;
The terminal device further include: receiving module and output module;
The receiving module after showing N number of chargeable location information for the display module, receives user to first First input of charge position information, the first charge position information are one in N number of charge position information;
The output module, for exporting first charge position in response to received first input of the receiving module Confidence ceases corresponding navigation information;
Wherein, the first charge position information is the smallest charging of distance values for including in N number of charge position information Location information.
12. terminal device according to claim 11, which is characterized in that the terminal device further include: sending module;
The sending module, for the terminal device be located at the first charge position information instruction the second position and In the case that the terminal device is in charged state, second location information, the second confidence are sent to the server It include the longitude and latitude of the second position in breath.
13. a kind of server, which is characterized in that the server includes: receiving module, determining module and sending module;
The receiving module carries in first request message for the first request message that receiving terminal apparatus is sent First location information, the first location information are used to indicate the first position where the terminal device;
The determining module, for determining N number of charge position confidence according to the received first location information of the receiving module Breath, N number of charge position information be instruction charge position apart from the first position recently and quantity be one of N or Multiple charge position information, a charge position information are used to indicate a charge position, and N is positive integer;
The sending module carries in first response message for sending the first response message to the terminal device N number of charge position information that the determining module determines.
14. server according to claim 13, which is characterized in that preserve at least two positions letter in the server Breath;
The determining module, specifically for the position indicated according to location information each at least two location information and institute The ascending sequence in the distance between the received first position of receiving module is stated, from least two location information Determine that N number of location information, N are preset value;For each location information in N number of location information, believed according to a position Breath and the first location information, generate a charge position information, to obtain N number of charge position information.
15. a kind of terminal device, which is characterized in that including processor, memory and be stored on the memory and can be in institute The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor Any one of described in display charge position information method the step of.
16. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium Sequence realizes the display charge position confidence as described in any one of claims 1 to 5 when the computer program is executed by processor The step of method of breath.
17. a kind of server, which is characterized in that including processor, memory and be stored on the memory and can be described The computer program run on processor is realized when the computer program is executed by the processor as in claim 6 or 7 The step of method of described in any item display charge position information.
18. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium Sequence realizes the display charge position confidence as described in any one of claim 6 or 7 when the computer program is executed by processor The step of method of breath.
CN201810848140.2A 2018-07-27 2018-07-27 A kind of method and apparatus showing charge position information Pending CN109062649A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810848140.2A CN109062649A (en) 2018-07-27 2018-07-27 A kind of method and apparatus showing charge position information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810848140.2A CN109062649A (en) 2018-07-27 2018-07-27 A kind of method and apparatus showing charge position information

Publications (1)

Publication Number Publication Date
CN109062649A true CN109062649A (en) 2018-12-21

Family

ID=64835892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810848140.2A Pending CN109062649A (en) 2018-07-27 2018-07-27 A kind of method and apparatus showing charge position information

Country Status (1)

Country Link
CN (1) CN109062649A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111148198A (en) * 2019-12-09 2020-05-12 广东小天才科技有限公司 Control method of wearable device and wearable device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103915879A (en) * 2013-01-08 2014-07-09 三星电子株式会社 Method and apparatus for displaying information about wireless charging pad in electronic device
US20150339468A1 (en) * 2014-05-23 2015-11-26 Samsung Electronics Co., Ltd. Method and apparatus for user authentication
CN106093789A (en) * 2016-07-11 2016-11-09 天津艾思科尔科技有限公司 A kind of household service robot realizing electric power detection distant early warning
CN106453841A (en) * 2016-09-13 2017-02-22 广东小天才科技有限公司 Method for automatically reminding charging of smart phone and smart phone
CN106549447A (en) * 2016-11-21 2017-03-29 上海斐讯数据通信技术有限公司 A kind of charging method and charging system of mobile terminal
CN107404572A (en) * 2017-06-29 2017-11-28 深圳市金立通信设备有限公司 A kind of charge prompting method and terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103915879A (en) * 2013-01-08 2014-07-09 三星电子株式会社 Method and apparatus for displaying information about wireless charging pad in electronic device
US20150339468A1 (en) * 2014-05-23 2015-11-26 Samsung Electronics Co., Ltd. Method and apparatus for user authentication
CN106093789A (en) * 2016-07-11 2016-11-09 天津艾思科尔科技有限公司 A kind of household service robot realizing electric power detection distant early warning
CN106453841A (en) * 2016-09-13 2017-02-22 广东小天才科技有限公司 Method for automatically reminding charging of smart phone and smart phone
CN106549447A (en) * 2016-11-21 2017-03-29 上海斐讯数据通信技术有限公司 A kind of charging method and charging system of mobile terminal
CN107404572A (en) * 2017-06-29 2017-11-28 深圳市金立通信设备有限公司 A kind of charge prompting method and terminal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111148198A (en) * 2019-12-09 2020-05-12 广东小天才科技有限公司 Control method of wearable device and wearable device

Similar Documents

Publication Publication Date Title
CN108363524B (en) A kind of application icon display methods and mobile terminal
CN109814968A (en) A kind of data inputting method, terminal device and computer readable storage medium
CN110221737A (en) A kind of icon display method and terminal device
CN108828692A (en) A kind of weather prediction method and terminal device
CN109600297A (en) A kind of mark sweep-out method and terminal device
CN110445924A (en) Network task executes method and terminal device
CN109656437A (en) A kind of information display method and terminal device
CN108345474A (en) Startup method, starter and the mobile terminal of application program
CN107835495A (en) A kind of message prompt method, device and mobile terminal
CN109151176A (en) A kind of information acquisition method and terminal
CN109388456A (en) A kind of head portrait selection method and mobile terminal
CN110049187A (en) A kind of display methods and terminal device
CN108984066A (en) A kind of application icon display methods and mobile terminal
CN108429856A (en) A kind of location information acquisition methods and mobile terminal
CN108712555A (en) A kind of method and device sending warning message
CN110096203A (en) A kind of screenshot method and mobile terminal
CN109005297A (en) A kind of display methods and mobile terminal of navigation application
CN109117037A (en) A kind of method and terminal device of image procossing
CN109327568A (en) A kind of method and mobile terminal switching camera
CN109618278A (en) A kind of localization method and mobile terminal
CN109815678A (en) A kind of authority configuring method and mobile terminal
CN109062649A (en) A kind of method and apparatus showing charge position information
CN109246308A (en) A kind of method of speech processing and terminal device
CN108600517A (en) A kind of method and terminal of switching screen state
CN108616648A (en) A kind of equipment room relation establishing method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181221

RJ01 Rejection of invention patent application after publication