Summary of the invention
Embodiment of the present invention technical matters to be solved is, for the defect that LBS application positional flexibility in prior art is more weak, provides a kind of dirigibility and controllability is better, do not need again the information getting method based on LBS, the Apparatus and system of input characters.
In order to solve the problems of the technologies described above, embodiments provide a kind of resource information rendering method based on LBS, comprising:
Client determines target geographic position according to the position of positioning mark on electronic chart, and the position of described positioning mark on electronic chart is determined by touch operation by user;
The resource type that client inputs according to user, obtains the resource information relevant with described resource type to described target geographic position from server and presents to user.
Wherein, described positioning mark is touch contact pin, described touch contact pin is placed in contact pin groove, the position of described positioning mark on electronic chart be user from described contact pin groove, described touch contact pin to be towed on described electronic chart and after unclamping described touch contact pin, the described position of touch contact pin on described electronic chart.
Wherein, the resource type that described client inputs according to user, the step of presenting to user from the server acquisition resource information relevant with described resource type to described target geographic position comprises:
Client is according to described target geographic position and default scan size determination scanning area;
The resource type that client inputs according to user, obtains resource information relevant to described resource type in described scanning area from server.
Wherein, the resource type that described client inputs according to user, the step obtaining resource information relevant to described resource type in described scanning area from server comprises:
Client sends resource inquiry request according to the resource type of described scanning area and user's input to server;
Server searches resource information relevant to described resource type in described scanning area in a database according to described resource inquiry request, the correlated resources data that the resource information that described and described resource type is relevant comprises the target resource data under described resource type and is correlated with described target resource data;
Client receives the target resource data and correlated resources data that described server returns;
Client is classified to described target resource data, and item name is presented to user by described electronic chart, and when user clicks described item name, target resource data corresponding for described item name is presented to user by described electronic chart;
Described correlated resources data are corresponded respectively to its relevant target resource data by client, and in described electronic chart corresponding relevant resource data target resource data under present resource applying label for identifying described correlated resources data respectively, when user clicks a resource applying label, correlated resources data corresponding for described resource applying label are presented to user by described electronic chart.
Wherein, described method also comprises:
User gets off according to the format record preset as user habit information to the click of described item name with to the click of described resource applying label by client, and described user habit information is sent to server;
User habit information described in server process also sets up logic association, then described logic association is recorded in database, so that when receiving the resource inquiry request of same client, search resource information relevant to the resource type in described resource inquiry request in described scanning area according to described resource inquiry request in a database with described logic association.
Correspondingly, present invention also offers a kind of client, comprising:
Locating module, for determining target geographic position according to the position of positioning mark on electronic chart, the position of described positioning mark on electronic chart is determined by touch operation by user;
Resource information acquisition module, for the resource type inputted according to user, obtains the resource information relevant with described resource type to described target geographic position from server;
Human-computer interaction module, presents to user for the resource information obtained by described resource information acquisition module.
In addition, present invention also offers a kind of resource information based on LBS and present system, comprise the client and server that communication is connected; Described client comprises:
Locating module, for determining target geographic position according to the position of positioning mark on electronic chart, the position of described positioning mark on electronic chart is determined by touch operation by user;
Resource information acquisition module, for the resource type inputted according to user, obtains the resource information relevant with described resource type to described target geographic position from server;
Human-computer interaction module, presents to user for the resource information obtained by described resource information acquisition module.
Wherein, described positioning mark is touch contact pin, described touch contact pin is placed in contact pin groove, the position of described positioning mark on electronic chart be user from described contact pin groove, described touch contact pin to be towed on described electronic chart and after unclamping described touch contact pin, the described position of touch contact pin on described electronic chart.
Wherein:
Described resource information acquisition module comprises:
Scanning area determination module, for according to described target geographic position and preset scan size determination scanning area;
Inquiry request sending module, for sending resource inquiry request according to the resource type of described scanning area and user's input to server;
Asset information receipt module, for the resource information that reception server returns according to described resource inquiry request;
Described server comprises:
Inquiry request receiver module, for receiving the Query Resource Information request from described inquiry request sending module;
Resource information searches module, for searching resource information relevant to described resource type in described scanning area in a database according to described resource inquiry request, the correlated resources data that the resource information that described and described resource type is relevant comprises the target resource data under described resource type and is correlated with described target resource data;
Resource information sending module, for described resource information is searched module searches to target resource data and correlated resources data return to the asset information receipt module of client;
Described human-computer interaction module comprises:
Target resource data processing module, target resource data for receiving described asset information receipt module are classified, item name is presented to user by described electronic chart, and when user clicks described item name, target resource data corresponding for described item name are presented to user by described electronic chart;
Correlated resources data processing module, correlated resources data for described asset information receipt module being received correspond respectively to its relevant target resource data, and in described electronic chart corresponding relevant resource data target resource data under present resource applying label for identifying described correlated resources data respectively, when user clicks a resource applying label, correlated resources data corresponding for described resource applying label are presented to user by described electronic chart.
Wherein:
Described client also comprises:
User habit feedback module, for user being got off according to the format record preset as user habit information to the click of described item name with to the click of described resource applying label, and sends to server by described user habit information;
Described server also comprises:
Logic association module, set up logic association for the treatment of described user habit information, then described logic association is recorded in database, so that described resource information searches module when described inquiry request receiver module receives resource inquiry request, search resource information relevant to the resource type in described resource inquiry request in described scanning area according to described resource inquiry request in a database with described logic association.
Implement the embodiment of the present invention, there is following beneficial effect: by allowing user to utilize touch operation directly to determine target geographic position on electronic chart, instead of simply using user's current location as target geographic position, dirigibility is strong, and controllability is good; Do not need the manual input characters of user to determine target geographic position, user-friendly, it is unique to experience; The flush system list not needing user to provide according to developer passively comes select target geographic position, and initiative is strong, can meet the diversified demand of user to resource information.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Refer to Fig. 1, be the first embodiment process flow diagram of the resource information rendering method based on LBS provided by the invention, the method comprises:
S101, client determine target geographic position according to the position of positioning mark on electronic chart, and the position of described positioning mark on electronic chart is determined by touch operation by user.Existing smart mobile phone, panel computer etc. generally adopt touch screen to control, in order to meet the demand of user, preferably, positioning mark is designed to touch contact pin, described touch contact pin is placed on (as shown in Figure 2 A) in contact pin groove, and the position of described positioning mark on electronic chart is that described touch contact pin to be towed on described electronic chart (as shown in Figure 2 B) and (as shown in Figure 2 C), the described position of touch contact pin on described electronic chart after unclamping described touch contact pin by user from described contact pin groove.Particularly, when described touch contact pin to tow on described electronic chart and after unclamping described touch contact pin by user from described contact pin groove, the now coordinate of touch contact pin present position on electronic chart can be determined, then according to the longitude and latitude of this coordinate determination target geographic position.
S102, the resource type inputted according to user, obtain the resource information relevant with described resource type to described target geographic position from server and present to user.Such as, this step can comprise: the resource type of the longitude and latitude of target geographic position and user's input is sent to server, then the resource information that returns according to the longitude and latitude of described target geographic position and described resource type of reception server, and the resource information of reception is presented to user.
The resource information rendering method based on LBS that the embodiment of the present invention provides, touch operation is utilized directly on electronic chart, to determine target geographic position by allowing user, instead of simply using user's current location as target geographic position, dirigibility is strong, and controllability is good; Do not need the manual input characters of user to determine target geographic position, user-friendly, it is unique to experience; The flush system list not needing user to provide according to developer passively comes select target geographic position, and initiative is strong, can meet the diversified demand of user to resource information.
Refer to Fig. 3, be the second embodiment process flow diagram of the resource information rendering method based on LBS provided by the invention, the method comprises:
S301, client determine target geographic position according to the position of positioning mark on electronic chart, and the position of described positioning mark on electronic chart is determined by touch operation by user.
S302, according to described target geographic position and default scan size determination scanning area.Such as, can by take target geographic position as the center of circle, using the scan size the preset border circular areas that is radius as scanning area.Again such as, can by centered by target geographic position, using the default scan size square area that is the length of side as scanning area.Wherein, scan size can be arranged by user and modify, and that is, scanning area is adjustable.
The resource type that S303, client input according to user, obtains resource information relevant to described resource type in described scanning area from server.Such as, this step can comprise: the resource information type desired by the longitude and latitude scope of scanning area and user is sent to server, then the resource information that returns according to the longitude and latitude scope of described scanning area and described resource information type of reception server, and the resource information of reception is presented to user.
In the embodiment shown in fig. 3, by obtaining the associated resource information around target geographic position, the resource information that more users may need can be provided, promoting Consumer's Experience.
Refer to Fig. 4, be the 3rd embodiment process flow diagram of the resource information rendering method based on LBS provided by the invention, the method comprises:
S401, client determine target geographic position according to the position of positioning mark on electronic chart, and the position of described positioning mark on electronic chart is determined by touch operation by user.
S402, client are according to described target geographic position and default scan size determination scanning area.
S403, client send resource inquiry request according to the resource type of described scanning area and user's input to server.
S404, server search resource information relevant to described resource type in described scanning area in a database according to described resource inquiry request, the correlated resources data that the resource information that described and described resource type is relevant comprises the target resource data under described resource type and is correlated with described target resource data.Wherein, correlated resources data can be at resource data relevant nominally to target resource data.Such as, if the resource type of user's input is film, server can search films all in scanning area in a database as target resource data, can also search the books relevant to each film, event, news etc. in a database as correlated resources data.Associating between correlated resources data with target resource data can be interpersonal association or associating between things with things, such as correlated resources data and target resource data can be same author, producer, publisher, or correlated resources data are identical from the title of target resource data and type is different.
S405, client receive the target resource data and correlated resources data that described server returns.
S406, client are classified to described target resource data, and item name is presented to user by electronic chart, and when user clicks described item name, target resource data corresponding for described item name are presented to user by electronic chart.Such as, if the resource type of user's input is film, client can be classified to the film that server returns, item name is as science fiction, ethics, TV play, advance notice, amusement, love etc., film information is not directly presented to user by client, but in corresponding resource points Display Category title, only have when user clicks a certain item name, just show the film information of respective classes, more can simplify display interface while abundant information providing for user like this, make user very clear.
Described correlated resources data are corresponded respectively to its relevant target resource data by S407, client, and in electronic chart corresponding relevant resource data target resource data under present resource applying label for identifying described correlated resources data respectively, when user clicks a resource applying label, correlated resources data corresponding for described resource applying label are presented to user by electronic chart.This belongs to the expansion of secondary, automatically for user provides more associated resource information, can be convenient to user and obtain oneself interested resource information.
Refer to Fig. 5, be the 4th embodiment process flow diagram of the resource information rendering method based on LBS provided by the invention, the method comprises:
S501, client determine target geographic position according to the position of positioning mark on electronic chart, and the position of described positioning mark on electronic chart is determined by touch operation by user.
S502, client are according to described target geographic position and default scan size determination scanning area.
S503, client send resource inquiry request according to the resource type of described scanning area and user's input to server.
S504, server search resource information relevant to described resource type in described scanning area in a database according to described resource inquiry request, the correlated resources data that the resource information that described and described resource type is relevant comprises the target resource data under described resource type and is correlated with described target resource data.
S505, client receive the target resource data and correlated resources data that described server returns.
S506, client are classified to described target resource data, and item name is presented to user by electronic chart, and when user clicks described item name, target resource data corresponding for described item name are presented to user by electronic chart.
Described correlated resources data are corresponded respectively to its relevant target resource data by S507, client, and in electronic chart corresponding relevant resource data target resource data under present resource applying label for identifying described correlated resources data respectively, when user clicks a resource applying label, correlated resources data corresponding for described resource applying label are presented to user by electronic chart.
User gets off according to the format record preset as user habit information to the click of described item name with to the click of described resource applying label by S508, client, and described user habit information is sent to server.
User habit information described in S509, server process also sets up logic association, then described logic association is recorded in database, so that when receiving resource inquiry request, search resource information relevant to the resource type in described resource inquiry request in described scanning area according to described resource inquiry request in a database with described logic association.Such as, the user habit information of the multiple users collected can be set up logic association, same resource points such as, have the interested resource information of other user of common hobby.By presenting of this logic association data, can provide more possibilities interested resource information for user, be conducive to promoting Consumer's Experience.
Described method also comprises: before step S101, S301, S401, S501, and client receives the touch gestures operation of user, carries out convergent-divergent according to described touch gestures operation to the displaying ratio chi of described electronic chart.By carrying out convergent-divergent to the displaying ratio chi of electronic chart, can regulate the scope of target geographic position, such as, target geographic position can be South Mountain, Shenzhen, also can be high-new southern six roads, South Mountain, Shenzhen.In addition, as long as database information is enough supported, client can present the resource information in any one place, the whole world, even can be positioned at the concrete floor of a building.
Referring to Fig. 6, is the first example structure schematic diagram that the resource information based on LBS provided by the invention presents system.This system comprises the connected client 600 of communication and server 700.
Wherein, client 600 comprises:
Locating module 610, for determining target geographic position according to the position of positioning mark on electronic chart, the position of described positioning mark on electronic chart is determined by touch operation by user.Existing smart mobile phone, panel computer etc. generally adopt touch screen to control, in order to meet the demand of user, preferably, the positioning mark of locating module 610 is designed to touch contact pin, described touch contact pin is placed on (as shown in Figure 2 A) in contact pin groove, and the position of described positioning mark on electronic chart is that described touch contact pin to be towed on described electronic chart (as shown in Figure 2 B) and (as shown in Figure 2 C), the described position of touch contact pin on described electronic chart after unclamping described touch contact pin by user from described contact pin groove.Particularly, when described touch contact pin to tow on described electronic chart and after unclamping described touch contact pin by user from described contact pin groove, locating module 610 can determine the now coordinate of touch contact pin present position on electronic chart, then according to the longitude and latitude of this coordinate determination target geographic position.
Resource information acquisition module 620, for the resource type inputted according to user, obtains the resource information relevant with described resource type to described target geographic position from server.Such as, resource information acquisition module 620 may be used for: the resource type of the longitude and latitude of target geographic position and user's input is sent to server, the then resource information that returns according to the longitude and latitude of described target geographic position and described resource type of reception server.
Human-computer interaction module 630, presents to user for the resource information obtained by described resource information acquisition module 620.
The client that the embodiment of the present invention provides and present system based on the resource information of LBS, touch operation is utilized directly on electronic chart, to determine target geographic position by allowing user, instead of simply using user's current location as target geographic position, dirigibility is strong, and controllability is good; Do not need the manual input characters of user to determine target geographic position, user-friendly, it is unique to experience; The flush system list not needing user to provide according to developer passively comes select target geographic position, and initiative is strong, can meet the diversified demand of user to resource information.
Referring to Fig. 7, is the second example structure schematic diagram that the resource information based on LBS provided by the invention presents system.As shown in Figure 7, resource information acquisition module 620 comprises:
Scanning area determination module 621, for according to described target geographic position and preset scan size determination scanning area.Such as, scanning area determination module 621 can by take target geographic position as the center of circle, using the scan size the preset border circular areas that is radius as scanning area.Again such as, scanning area determination module 621 can by centered by target geographic position, using the default scan size square area that is the length of side as scanning area.Wherein, scan size can be arranged by user and modify, and that is, scanning area is adjustable.
Inquiry request sending module 622, for sending resource inquiry request according to the resource type of described scanning area and user's input to server.
Asset information receipt module 623, for the resource information that reception server returns according to described resource inquiry request.
Described server 700 comprises:
Inquiry request receiver module 710, for receiving the Query Resource Information request from described inquiry request sending module.
Resource information searches module 720, for searching resource information relevant to described resource type in described scanning area in a database according to described resource inquiry request, the correlated resources data that the resource information that described and described resource type is relevant comprises the target resource data under described resource type and is correlated with described target resource data.Wherein, correlated resources data can be at resource data relevant nominally to target resource data.Such as, if the resource type of user's input is film, server can search films all in scanning area in a database as target resource data, can also search the books relevant to each film, event, news etc. in a database as correlated resources data.Associating between correlated resources data with target resource data can be interpersonal association or associating between things with things, such as correlated resources data and target resource data can be same author, producer, publisher, or correlated resources data are identical from the title of target resource data and type is different.
Resource information sending module 730, for described resource information is searched module searches to target resource data and correlated resources data return to the asset information receipt module 623 of client.
Described human-computer interaction module 630 comprises:
Target resource data processing module 631, target resource data for receiving described asset information receipt module are classified, item name is presented to user by described electronic chart, and when user clicks described item name, target resource data corresponding for described item name are presented to user by described electronic chart.Such as, if the resource type of user's input is film, client can be classified to the film that server returns, item name is as science fiction, ethics, TV play, advance notice, amusement, love etc., film information is not directly presented to user by client, but in corresponding resource points Display Category title, only have when user clicks a certain item name, just show the film information of respective classes, more can simplify display interface while abundant information providing for user like this, make user very clear.
Correlated resources data processing module 632, correlated resources data for described asset information receipt module being received correspond respectively to its relevant target resource data, and in described electronic chart corresponding relevant resource data target resource data under present resource applying label for identifying described correlated resources data respectively, when user clicks a resource applying label, correlated resources data corresponding for described resource applying label are presented to user by described electronic chart.This belongs to the expansion of secondary, automatically for user provides more associated resource information, can be convenient to user and obtain oneself interested resource information.
Referring to Fig. 8, is the 3rd example structure schematic diagram that the resource information based on LBS provided by the invention presents system.
As shown in Figure 8, client 600 also comprises:
User habit feedback module 640, for user being got off according to the format record preset as user habit information to the click of described item name with to the click of described resource applying label, and sends to server by described user habit information.
Server 700 also comprises:
Logic association module 740, set up logic association for the treatment of described user habit information, then described logic association is recorded in database, so that described resource information searches module when described inquiry request receiver module receives resource inquiry request, search resource information relevant to the resource type in described resource inquiry request in described scanning area according to described resource inquiry request in a database with described logic association.Such as, the user habit information of the multiple users collected can be set up logic association by logic association module 740, same resource points such as, has the interested resource information of other user of common hobby.By presenting of this logic association data, can provide more possibilities interested resource information for user, be conducive to promoting Consumer's Experience.
Preferably, client 600 can also comprise: Zoom module, for receiving the touch gestures operation of user, carries out convergent-divergent according to described touch gestures operation to the displaying ratio chi of described electronic chart.By carrying out convergent-divergent to the displaying ratio chi of electronic chart, can regulate the scope of target geographic position, such as, target geographic position can be South Mountain, Shenzhen, also can be high-new southern six roads, South Mountain, Shenzhen.In addition, as long as database information is enough supported, client can present the resource information in any one place, the whole world, even can be positioned at the concrete floor of a building.
Preferably, in an embodiment of the present invention, the realization of client adopts the structural design of asynchronous framework, the man-machine interactive operation of client is among different threads from the Query Resource Information request of background server, the logic of cross-thread, adopts the mode of asynchronous message and process asynchronism callback to process.By realizing the mechanism of asynchronous respective request, allowing between man-machine interactive operation and background process and running according to non-linear logistic, can avoid blocking, allow and experience smoothness.Concrete realization, set up a special communication thread exactly, secondary communication thread comprises oneself a message queue, I/O operation (comprising the socket of network) is organized corresponding event and processing logic in the mode of event, and these events be placed among oneself thread queue, and maintain the circulation of message in a circular treatment queue.The calling of other thread and background server communication can be converted to an asynchronous event and be placed in queue, only has the read-write channel of socket by the time to have data just can activate process, thus realizes the mechanism of asynchronous process.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random store-memory body (RandomAccessMemory, RAM) etc.
Above disclosedly be only a kind of preferred embodiment of the present invention, certainly the interest field of the present invention can not be limited with this, one of ordinary skill in the art will appreciate that all or part of flow process realizing above-described embodiment, and according to the equivalent variations that the claims in the present invention are done, still belong to the scope that invention is contained.