1. Technical Field
Embodiments of the present disclosure relate to a server and a method for providing information of local products.
2. Description of Related Art
Many travelers or tourists like to purchase unique local products from where they are travelling to. However, it may be difficult for them to find the place to buy the unique local products while they are visiting an unfamiliar place.
The disclosure, including the accompanying drawings, is illustrated by way of example and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean at least one.
The information providing system 10 may include a plurality of programs in the form of one or more computerized instructions stored in the storage system 11 and executed by the processor 12 to perform operations of the server 1. In the embodiment, the information providing system 10 includes a receiving module 101, a location module 102, a display module 103, an address searching module 104, and a route calculation module 105. In general, the word “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an erasable programmable read only memory (EPROM). The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable medium include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
The receiving module 101 receives information of various products from one or more product vendors, and stores the received information into the product database 111. The received information includes, for example, names, prices and images of the products, and purchasing addresses of the products. The product vendors may use one of the client devices 3 to login into the server 1, and upload the information of the products to the product database 111 of the server 1. Additionally, the receiving module 101 can send an advertisement message relevant to the products to the client devices 3 through the network 2. The advertisement message may include, for example, popular products in the product database 111 and a way (i.e., a website address of the server 1) to access the server 1.
The location module 102 acquires a location of a user when the user accesses the server 1 using the client device 3, and determines a geographical area where the location of the user is located. In one embodiment, the geographical area may represent a particular city, such as, Guilin, Chengdu, and Beijing. For example, if the location of the user is “XX Street, Chengdu city”, the determined geographical area may be “Chengdu” correspondingly.
In one embodiment, if the client device 3 used by the user includes a positioning device, such as a global positioning system (GPS), the location module 102 may acquire the location of the user via the positioning device through the network 2. For example, the location module 102 may send a message to the client device 3 to notify the user activating the positioning device, and then acquires the location of the user from the positioning device after the positioning device is activated. In other embodiments, if the client device 3 does not include the positioning device, the location module 102 may acquire the location of the user by notifying the user to input his/her location using the client device 3.
The display module 103 searches for products local to the determined geographical area (hereinafter, “local products”) from the product database 111, and displays the searched local products on a user interface for the user to select his/her favorite. In one embodiment, the user interface may be displayed in a form of a webpage through a display device of the client device 3.
The address searching module 104 searches purchasing addresses of a selected local product from the product database 111, and determines the nearest purchasing address of the selected local product. In the embodiment, the nearest purchasing address has a minimum distance to the location of the user.
The route calculation module 105 calculates one or more routes from the location of the user to the nearest purchasing address according to the electronic map 110, and displays the calculated one or more routes to the user through the user interface. The one or more routes may include at least one bus route and/or at least one driving route. In an alternative embodiment, the route calculation module 105 further calculates all of routes from the location of the user to each of the searched purchasing addresses, and displays each of the calculated routes to the user through the user interface.
In step S01, the receiving module 101 receives information of various products from one or more product vendors, and stores the received information into the product database 111. The received information includes, for example, names, prices and images of the products, and purchasing addresses of the products.
In step S02, when the user accesses the server 1 using the client device 3, the location module 102 acquires a location of the user, and determines a geographical area where the user is located according to the location of the user.
In step S03, the display module 103 searches for products local to the determined geographical area (local products) from the product database 111, and displays the searched local products on a user interface for the user to select his/her favorite.
In step S04, when a searched local product is selected by the user, the address searching module 104 searches purchasing addresses of the selected local product from the product database 111, and determines the nearest purchasing address to the user.
In step S05, the route calculation module 105 calculates one or more routes from the location of the user to the nearest purchasing address according to the electronic map 110, and displays the calculated one or more routes to the user through the user interface. The one or more routes may include at least one bus route and/or at least one driving route. Alternatively, the route calculation module 105 may further calculate all of routes from the location of the user to each of the searched purchasing addresses, and displays each of the calculated routes to the user through the user interface.
Although certain embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201210104454.4 | Apr 2012 | CN | national |