Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment mono-
The embodiment of the present invention provides a kind of method of obtaining address information, and referring to Fig. 1, method flow comprises:
101: when monitoring the event of obtaining address information, obtain current geographical location information;
102: send the request of obtaining address information to server, carry described geographical location information in described request;
103: receive the address information that described server arrives according to described geographic location information query, and the described address information inquired is defined as to user's address information to be entered.
The embodiment of the present invention is when monitoring the event of obtaining address information, obtain current geographical location information, and geographical location information is sent to server, the address information corresponding according to this geographical location information of geographic location information query return to terminal by server, receive this address information and the address information to be entered as the user using it.Simplify the operation of user's Input Address information, improved the efficiency of user's Input Address information.
Embodiment bis-
The embodiment of the present invention provides a kind of method of obtaining address information, referring to Fig. 2.It should be noted that, the embodiment of the present invention be take the user and is carried out shopping at network Input Address information and describe as example.
Wherein, this method flow that obtains address information comprises:
201: when monitoring the event of obtaining address information, obtain current geographical location information.
Wherein, when the user carries out shopping at network, complete the free choice of goods, after adding shopping cart and selecting the means of payment, can enter the page of Input Address information.
Wherein, the event of obtaining address information is: when the user presets trigger condition to the operation of terminal is satisfied, trigger the event of obtaining address information.
Can be by system triggers before entering the page of Input Address, now setting the user, to select the means of payment be default trigger condition, trigger the event of obtaining address information, this is a kind of before entering the Input Address information page, trigger in advance the process of obtaining address information, this situation is not the initiatively situation because needing Input Address information to be triggered of user.
Another kind of mode is that the user is after the page that enters Input Address information, the prompting user initiatively triggers the event of obtaining address information, wherein default trigger condition can be set to: the event that receives the button that obtains address information set in advance, perhaps receive by acceleration transducer and sense the modes such as event that the user shakes mobile phone, wherein, default trigger condition does not limit at this.This situation is initiatively triggered the operation of obtaining address information, and then starts to be obtained the flow process of address information after being the prompting user by the user.
Further, obtaining current geographical location information can position and get latitude and longitude coordinates for by different locate mode in terminal, for the latitude and longitude coordinates got, two kinds of processing modes is arranged:
The first: behind location, directly using the latitude and longitude coordinates that gets as current geographical location information.
2011: according to global position system GPS (Global Positioning System) location or Wireless Fidelity WIFI(Wireless Fidelity) location or architecture mode, obtain the first current latitude and longitude coordinates;
2012: according to described the first latitude and longitude coordinates, be defined as current geographical location information.
The second, behind location, because likely there is error in latitude and longitude coordinates, therefore after being applied in and getting the first latitude and longitude coordinates, the invocation map module is labeled in the first latitude and longitude coordinates in map, by the user, is determined whether to modify, if revise get the correction position that the user clicks, and get the second latitude and longitude coordinates corresponding to correction position, using this second latitude and longitude coordinates as current geographical location information.
Wherein, correction position is a coordinate figure in map, obtain the mode of the second latitude and longitude coordinates corresponding to correction position by this coordinate figure, can for using correction position directly as the second latitude and longitude coordinates, as current geographical location information, and the geographical location information in the request of obtaining address information sends to server using this correction position instep 202, by server, according to this correction position, get the second latitude and longitude coordinates and get corresponding address information according to this latitude and longitude coordinates.Wherein, can also in by the ground module, directly get the second latitude and longitude coordinates corresponding to this correction position.
Wherein, the geographical location information of process obtain to(for) the second can be:
2011: according to global position system GPS location or Wireless Fidelity WIFI location or architecture mode, obtain the first current latitude and longitude coordinates;
2013: the invocation map module shows the map of described the first latitude and longitude coordinates region, and described the first latitude and longitude coordinates is labeled in described map;
2014: receive the correction position that the user chooses in described map, and obtain the second corresponding latitude and longitude coordinates according to described correction position;
2015: described the second latitude and longitude coordinates is defined as to current geographical location information.
202: send the request of obtaining address information to server, carry described geographical location information in described request.
The server pre-save has the corresponding relation of geographical location information and address information, and the geographical location information in the request of obtaining address information sent according to the terminal received obtains address information from this corresponding relation.Wherein, because latitude and longitude coordinates is a larger scope, therefore may comprise one or more address informations, therefore according to geographical location information, can get one or more address informations, and it is returned to terminal.
203: receive the address information that described server arrives according to described geographic location information query, and the described address information inquired is defined as to user's address information to be entered.
After terminal receives address information, can point out directly this address information address information to be entered in the page of Input Address information, and input in corresponding input frame.The address information that receives can also be shown to the user with the form of list, make the user choose and whether use this address information, or choose the address information at self place in a plurality of address informations.
Therefore the process of step 203 after receiving the address information that server returns can be:
2031: the described address information inquired is shown to the user with the form of list, and the wherein said address information inquired is one or more;
2032: receive the address information that the user chooses in described list, and the described address information of choosing is defined as to user's address information to be entered.
The embodiment of the present invention is when monitoring the event of obtaining address information, obtain current geographical location information, and geographical location information is sent to server, the address information corresponding according to this geographical location information of geographic location information query return to terminal by server, receive this address information and the address information to be entered as the user using it.Simplify the operation of user's Input Address information, improved the efficiency of user's Input Address information.
Embodiment tri-
The embodiment of the present invention provides a kind of device that obtains address information, and referring to Fig. 3, this device comprises:
Acquisition module 301, for when monitoring the event of obtaining address information, obtain current geographical location information;
Sending module 302, for send the request of obtaining address information to server, carry described geographical location information in described request;
Determination module 303, the address information arrived according to described geographic location information query for receiving described server, and the described address information inquired is defined as to user's address information to be entered.
Wherein, described acquisition module 301 comprises:
Acquiring unit, for according to global position system GPS location or Wireless Fidelity WIFI location or architecture mode, obtain the first current latitude and longitude coordinates;
The first determining unit, for according to described the first latitude and longitude coordinates, be defined as current geographical location information.
Wherein, described the first determining unit comprises:
Call subelement, show the map of described the first latitude and longitude coordinates region for the invocation map module, and described the first latitude and longitude coordinates is labeled in described map;
Obtain submodule, the correction position of choosing at described map for receiving the user, and obtain the second corresponding latitude and longitude coordinates according to described correction position;
Determine subelement, for described the second latitude and longitude coordinates is defined as to current geographical location information.
Wherein, described determination module 303 comprises:
Display unit, for the described address information inquired is shown to the user with the form of list, the wherein said address information inquired is one or more;
The second determining unit, the address information of choosing in described list for receiving the user, and the described address information of choosing is defined as to user's address information to be entered.
Wherein, the described event of obtaining address information comprises:
When the user presets trigger condition to the operation of terminal is satisfied, trigger the event of obtaining address information.
The embodiment of the present invention is when monitoring the event of obtaining address information, obtain current geographical location information, and geographical location information is sent to server, the address information corresponding according to this geographical location information of geographic location information query return to terminal by server, receive this address information and the address information to be entered as the user using it.Simplify the operation of user's Input Address information, improved the efficiency of user's Input Address information.
Embodiment tetra-
The embodiment of the present invention provides a kind of terminal, please refer to Fig. 4, and it shows the block diagram of the terminal that the embodiment of the present invention four provides, and this terminal is for implementing the method that above-described embodiment obtains address information.Terminal in the embodiment of the present invention can comprise one or more following parts: for the computer program instruction to complete the processor of various flow processs and method, for information and the random incoming memory of stored program instruction (RAM) and read-only memory (ROM), for storing the memory of data and information, I/O equipment, interface, antenna etc.
Terminal 400 can comprise RF(Radio Frequency, radio frequency) parts such ascircuit 410,memory 420,input unit 430,display unit 440,transducer 450,voicefrequency circuit 460, WiFi (wireless fidelity, Wireless Fidelity)module 470,processor 480,power supply 482, camera 490.It will be understood by those skilled in the art that the terminal structure shown in Fig. 4 does not form the restriction to terminal, can comprise the parts more more or less than diagram, or combine some parts, or different parts are arranged.
Below in conjunction with Fig. 4, each component parts ofterminal 400 is carried out to concrete introduction:
RF circuit 410 can be used for receiving and sending messages or communication process in, the reception of signal and transmission, especially, after the downlink information of base station is received, process toprocessor 480; In addition, the up data of design are sent to base station.Usually, the RF circuit includes but not limited to antenna, at least one amplifier, transceiver, coupler, LNA(Low Noise Amplifier, low noise amplifier), duplexer etc.In addition,RF circuit 410 can also be by radio communication and network and other devices communicatings.Described radio communication can be used arbitrary communication standard or agreement, include but not limited to GSM (Global System of Mobile communication, global system for mobile communications), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, code division multiple access), WCDMA (Wideband Code Division Multiple Access, Wideband Code Division Multiple Access (WCDMA)), LTE (Long Term Evolution, Long Term Evolution), Email, SMS (Short Messaging Service, Short Message Service) etc.
Memory 420 can be used for storing software program and module, andprocessor 480 is stored in software program and the module ofmemory 420 by operation, thereby carries out various function application and the data processing of terminal 400.Memory 420 can mainly comprise storage program district and storage data field, wherein, but the required application program (such as sound-playing function, image player function etc.) of storage program district storage operation system, at least one function etc.; The data (such as voice data, phone directory etc.) that the use according toterminal 400 creates etc. can be stored in the storage data field.In addition,memory 420 can comprise high-speed random access memory, can also comprise nonvolatile memory, for example at least one disk memory, flush memory device or other volatile solid-state parts.
Input unit 430 can be used for receiving numeral or the character information of input, and generation arranges with the user of terminal 400 and function is controlled relevant key signals input.Particularly, input unit 430 can comprise contact panel 431 and other input equipments 432.Contact panel 431, also referred to as touch-screen, can collect the user or near touch operation (use any applicable objects such as finger, stylus or annex such as the user on contact panel 431 or near operation contact panel 431) thereon, and drive corresponding jockey according to predefined formula.Optionally, contact panel 431 can comprise touch detecting apparatus and two parts of touch controller.Wherein, touch detecting apparatus detects user's touch orientation, and detects the signal that touch operation is brought, and sends signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and converts it to contact coordinate, then gives processor 480, and the order that energy receiving processor 480 is sent is also carried out.In addition, can adopt the polytypes such as resistance-type, condenser type, infrared ray and surface acoustic wave to realize contact panel 431.Except contact panel 431, input unit 430 can also comprise other input equipments 432.Particularly, other input equipments 432 can include but not limited to one or more in physical keyboard, function key (controlling button, switch key etc. such as volume), trace ball, mouse, action bars etc.
The various menus that displayunit 440 can be used for showing the information of being inputted by the user or offers user's information and terminal 400.Display unit 440 can comprisedisplay floater 441, optionally, can adopt the forms such as LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) to configure display floater 441.Further,contact panel 431 can coverdisplay floater 441, whencontact panel 431 detect thereon or near touch operation after, sendprocessor 480 to determine the type of touch event, withpreprocessor 480, according to the type of touch event, provide corresponding vision output on display floater 441.Although in Fig. 4,contact panel 431 anddisplay floater 441 be as two independently parts realize input and the input function ofterminal 400, but in certain embodiments, can contactpanel 431 anddisplay floater 441 is integrated and realize the input and output function ofterminal 400.
Terminal 400 also can comprise at least onetransducer 450, such as gyro sensor, magnetic induction sensor, optical sensor, motion sensor and other transducers.Particularly, optical sensor can comprise ambient light sensor and proximity transducer, and wherein, ambient light sensor can be regulated according to the light and shade of ambient light the brightness ofdisplay floater 441, proximity transducer can, when terminal 400 moves in one's ear, cut outdisplay floater 441 and/or backlight.A kind of as motion sensor; acceleration transducer can detect on all directions the size of the acceleration that (is generally three axles); size and the direction of gravity be can detect when static, application (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, knock) of identification terminal attitude etc. can be used for; As forterminal 400 other transducers such as configurable barometer, hygrometer, thermometer, infrared ray sensor also, do not repeat them here.
Voicefrequency circuit 460, loud speaker 461, microphone 462 can provide the audio interface between user and terminal 400.Voicefrequency circuit 460 can be transferred to loud speaker 461 by the signal of telecommunication after the voice data conversion received, and by loud speaker 461, is converted to voice signal output; On the other hand, microphone 462 is converted to the signal of telecommunication by the voice signal of collection, be converted to voice data after being received byvoicefrequency circuit 460, after again voicedata output processor 480 being processed, to send to such as another terminal, or export voice data tomemory 420 in order to further process throughRF circuit 410.
WiFi belongs to the short range wireless transmission technology, terminal 400 byWiFi module 470 can help that the user sends and receive e-mail, browsing page and access streaming video etc., it provides wireless broadband internet access for the user.Although Fig. 4 showsWiFi module 470, be understandable that, it does not belong to must forming ofterminal 400, fully can be as required in the scope of the essence that does not change invention and omit.
Processor 480 is control centres ofterminal 400, utilize the various piece of various interface and the whole terminal of connection, be stored in software program and/or the module inmemory 420 by operation or execution, and call the data that are stored inmemory 420, carry out various functions and the deal with data ofterminal 400, thereby terminal is carried out to integral monitoring.Optionally,processor 480 can comprise one or more processing units; Preferably,processor 480 can integrated application processor and modem processor, and wherein, application processor is mainly processed operating system, user interface and application program etc., and modem processor is mainly processed radio communication.Be understandable that, above-mentioned modem processor also can not be integrated inprocessor 480.
Terminal 400 also comprises that the power supply 482(powered to all parts is such as battery), preferably, power supply can be connected withprocessor 482 logics by power-supply management system, thereby realizes the functions such as management charging, electric discharge and power managed by power-supply management system.
Camera 490 generally is comprised of camera lens, imageing sensor, interface, digital signal processor, CPU, display screen etc.Wherein, camera lens is fixed on the top of imageing sensor, can change focusing by the manual adjustments camera lens; Imageing sensor is equivalent to traditional camera " film ", is the heart of camera collection image; Interface, for utilizing winding displacement, board to board connector, spring connected mode to be connected with terminal mainboard, sends to describedmemory 420 by the image of collection to camera; Digital signal processor is processed the image gathered by mathematical operation, and the analog image of collection is converted to digital picture and sends tomemory 420 by interface.
Although not shown, terminal 400 can also comprise bluetooth module etc., does not repeat them here.
Wherein, the terminal in the embodiment of the present invention comprises:
One or more processors;
Memory; With
One or more modules, one or more module stores are in memory and be configured to be carried out by one or more processors, and one or more modules have following function:
When monitoring the event of obtaining address information, obtain current geographical location information;
Send the request of obtaining address information to server, carry described geographical location information in described request;
Receive the address information that described server arrives according to described geographic location information query, and the described address information inquired is defined as to user's address information to be entered.
Wherein, describedly obtain current geographical location information, comprising:
According to global position system GPS location or Wireless Fidelity WIFI location or architecture mode, obtain the first current latitude and longitude coordinates;
According to described the first latitude and longitude coordinates, be defined as current geographical location information.
Wherein, describedly according to described the first latitude and longitude coordinates, be defined as current geographical location information, comprise:
The invocation map module shows the map of described the first latitude and longitude coordinates region, and described the first latitude and longitude coordinates is labeled in described map;
Receive the correction position that the user chooses in described map, and obtain the second corresponding latitude and longitude coordinates according to described correction position;
Described the second latitude and longitude coordinates is defined as to current geographical location information.
Wherein, described the described address information inquired is defined as to user's address information to be entered, comprises:
The described address information inquired is shown to the user with the form of list, and the wherein said address information inquired is one or more;
Receive the address information that the user chooses in described list, and the described address information of choosing is defined as to user's address information to be entered.
Wherein, the described event of obtaining address information comprises:
When the user presets trigger condition to the operation of terminal is satisfied, trigger the event of obtaining address information.
The embodiment of the present invention is when monitoring the event of obtaining address information, obtain current geographical location information, and geographical location information is sent to server, the address information corresponding according to this geographical location information of geographic location information query return to terminal by server, receive this address information and the address information to be entered as the user using it.Simplify the operation of user's Input Address information, improved the efficiency of user's Input Address information.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.