1. Field of the Invention
The invention relates to a method for searching data, and more particularly, relates to a method for searching data and a method for planning itinerary, which are based on contact preference.
2. Description of Related Art
With popularity of services provided in broadband network, more and more people are willing to upload digital data to the Internet for their own keeping or sharing with others. Behaviors and environments for sharing the digital data online have also grown mature these days. For example, in current era of smart phones being popularized, people may easily upload and share pictures taken by a smart phone, or performing a positioning action through the smart phone once arrived at a destination point and followed by sharing a positioning data to the others. Accordingly, data being share through the Internet is getting quite huge these days. Therefore, it also becomes more important to effectively search for a desired data from the huge amounts of data.
The invention is directed to a method for searching data and a method for planning itinerary, capable of searching for point of interest (POI) data of one or more contact.
The method for searching data of the invention is adapted for an electronic apparatus. First, at least one contact is selected from a contact list so as to set a POI list associated with the selected contact as a specific data source, wherein the POI list includes one or more POI data. Thereafter, a POI category is decided, and a preset search range is obtained based on a reference location. The specific data source is searched for obtaining a search result conformed to the POI category and the preset search range, and the search result is displayed.
In an embodiment of the invention, the method for searching data further includes: displaying a selecting contact interface, so as to list the contact list in the selecting contact interface; and receiving an operation command of a user which selects the contact from the contact list through the selecting contact interface, so as to select the contact.
In an embodiment of the invention, the method for searching data further includes: displaying a selecting category interface, so as to list a category list in the selecting category interface; and receiving an operation command of a user which selects the POI category from the category list through the selecting category interface, so as to decide the POI category.
In an embodiment of the invention, the method for searching data further includes: displaying a selecting location interface for displaying the search result; and receiving an operation command of a user which selects one of the POI data from the search result through the selecting location interface, so as to set the selected POI data as a target location. Thereafter, the selected contact, the selected POI category and the selected target location are stored.
In an embodiment of the invention, the step of searching the specific data source for obtaining the search result conformed to the POI category and the preset search range includes: searching the specific data source for all POI data conformed to the POI category; and among the POI data conformed to the POI category, setting the POI data that fell within the preset search range to the search result.
In an embodiment of the invention, before the step of obtaining the preset search range based on the reference location, the method further includes detecting a current location of the electronic apparatus, and using the current location as the reference location.
In an embodiment of the invention, the method for searching data further includes: receiving a filter condition, so as to obtain the POI data conformed to the filter condition from the search result, wherein the filter condition includes the POI data associated with a user of the electronic apparatus.
The method for planning itinerary of the invention is adapted to an electronic apparatus. First, at least one contact is selected from a contact list so as to set a POI list associated with the selected contact to a specific data source, wherein the POI list includes one or more POI data. Thereafter, a POI category is decided, and a preset search range is obtained based on a reference location. The specific data source is searched for displaying the POI data conformed to the POI category and fell within the preset search range. Thereafter, one of the displayed POI data is selected as a target location. Lastly, the selected contact, the selected POI category and the selected target location are stored.
In an embodiment of the invention, the method for planning itinerary further includes: providing a user interface for the user to establish an itinerary plan. The user interface includes a contact block, a category block and a location block, the contact block being used to select the contact, the category block being used to decide the POI category, and the location block being used to decide the target location.
In an embodiment of the invention, the method for planning itinerary further includes: When the contact block is selected, displaying a selecting contact interface to list the contact list, and receiving a first operation command of the user through the selecting contact interface, so as to select the contact from the contact list. When the category block is selected, displaying a selecting category interface to list a category list, and receiving a second operation command of the user through the selecting category interface, so as to decide the POI category. When the location block is selected, displaying a selecting location interface to display the POI data conformed to the POI category and fell within the preset search range, and receiving a third operation command of the user through the selecting location interface, so as to select one of the displayed POI data as the target location.
Based on above, the POI data of one or more contacts are selected as the specific data source for searching desired data in the specific data source. Accordingly, the user is able to search the POI data of the contacts having similar interests, so as to improve accuracy in searching for the POI data of the user himself/herself.
To make the above features and advantages of the disclosure more comprehensible, several embodiments accompanied with drawings are described in detail as follows.
The display unit 120 is, for example, a liquid-crystal display (LCD), a plasma display, a vacuum fluorescent display, a light-emitting diode (LED) display, a field emission display (FED) and/or other appropriate displays; the display device type is not limited in the invention. Or, the display unit 120 may also be a display having a touch module.
The storage unit 130 is, for example, a fixed or a movable device in any possible forms including a random access memory (RAM), a read-only memory (ROM), a flash memory, a hard drive or other similar devices, or a combination of the above-mentioned devices. Herein, a computer program product is stored in the storage unit 130. Basically, the computer program product is assembled by a plurality of code snippets (i.e. an organization chart establishment code snippet, a form approval code snippet, a settings code snippet, and a deployment code snippet). Moreover, after the code snippets are executed after being loaded into the electronic apparatus 100, a method for searching data and a method for planning itinerary as described below may be executed by the processing unit 110.
Referring to
More specifically, people may use a registered account to log in an application or a social network for location positioning, so as to establish the POI data associated to such account in the application or a server of the social network. The POI data includes at least one of a coordinate, an address, a landmark name, a building name of a positioning point, or the POI data may also be an article or a note. Herein, once the user of the electronic apparatus 100 starts the computer program product for searching data, after the contact is selected, the processing unit 110 further connects to the related server through a communication unit to obtain the related POI list.
Next, in step S210, a POI category is decided. In the present embodiment, the computer program product provides, for examples, a plurality of primary categories for the user to select from, and each of the primary categories further includes a plurality of secondary categories, but the invention is not limited thereto. The secondary category is selected after selecting the primary category. Or, the user may also establish the POI category of his/her own. For example, a selecting category interface may be started in the display unit 120 to list a category list for the user to select from, so that the processing unit 110 may select the POI category based on the corresponding operation command received through the mouse, the keyboard, the touch module and so on. Further, a corresponding set of keywords may be set to each POI category as to facilitate in searching. After the POI category is decided, the corresponding set of keywords may be utilized for searching. However, above description is merely an implementation, and the invention is not limited thereto. For example, a corresponding POI category may also be set for a category tag included in each of servers providing location positioning function.
Thereafter, in step S215, a preset search range is obtained based on a reference location. For example, the electronic apparatus 100 may further include a positioning module, so as to detect a current location of the electronic apparatus 100 through the positioning module, and set the current location to the reference location. Thereafter, the preset search range may be set with the current location as a center point. Or, the user may also manually enter the reference location instead of using the current location as the reference location.
Next, in step S220, the specific data source is searched for obtaining a search result conformed to the POI category and the preset search range. For example, the POI data conformed to the POI category may be searched in the specific data source, and the POI data fell within the preset search range in the POI data conformed to the POI category may be set to the search result. Further, in step S225, the search result is displayed in the display unit 120. Accordingly, the user may find data of his/her own interest in the POI data of friends. In addition, the processing unit 110 may further receive a filter condition, so as to obtain the POI data conformed to the filter condition from the search result. Aforesaid filter condition includes the POI data associated to the user of the electronic apparatus 100. Accordingly, through aforesaid method, places visited by both the user and the friends may be found, or places already visited by the user may be filtered out from the places visited by the friends.
Further, the user is also capable of planning itinerary through aforesaid method for searching data. For instance,
When the user starts the computer program product, the display unit 120 may display a user interface 30 as shown in
First, the user may click on the contact block 301 in the user interface 30 of
After deciding contact information to be selected, a confirm button may be pressed to switch a frame into the user interface 30 as depicted in
In
After deciding the POI category (the secondary category a1 of the primary category A), the confirm button is pressed to switch the frame into the user interface 30 as depicted in
In
After the target location (the location L) is decided, the confirm button is pressed to switch the frame into the user interface 30 as depicted in
In summary, the POI data of one or more contacts may be selected as the specific data source in foregoing embodiments for searching desired data in the specific data source. Accordingly, the user is able to search the POI data of the contacts having similar interests, so as to improve accuracy in searching for the POI data of the user himself/herself. Further, by setting the filter condition, the places visited by both the user and the friends may be found, or places already visited by the user may be filtered out from the places visited by the friends. In addition, based on aforesaid method for searching data, the itinerary plan may be accomplished since the user is able to select the target location from the places already visited by the friends. Accordingly, the user may then ask the friends who has already visited the target location about details reading the itinerary plan.
It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present disclosure without departing from the scope or spirit of the disclosure. In view of the foregoing, it is intended that the present disclosure cover modifications and variations of this disclosure provided they fall within the scope of the following claims and their equivalents.
This application claims the priority benefits of U.S. provisional application Ser. No. 61/827,663, filed on May 26, 2013. The entirety of the above-mentioned patent applications is hereby incorporated by reference herein and made a part of this specification.
Number | Date | Country | |
---|---|---|---|
61827663 | May 2013 | US |