Disclosure of Invention
In view of the above problems, the present invention has been made to provide an electronic map-based service information distribution and search apparatus and method that overcome or at least partially solve the above problems.
According to an aspect of the present invention, there is provided an electronic map-based service information distribution and search apparatus, the apparatus including:
the interface processing unit is suitable for responding to an event that a user specifies a place on the electronic map, obtaining geographic position information corresponding to the place, and displaying a service information searching interface and a component which can select to enter a service information publishing function;
the information issuing processing unit is suitable for responding to an event that a user selects to enter a service information issuing function through the component, displaying a service information input interface, receiving service information input by the user through the service information input interface, taking the service information and the geographic position information as a piece of issuing information, establishing an index for the service information and the geographic position information, and storing the index into an index database;
a storage unit adapted to store the index database;
and the information search processing unit is suitable for responding to an event that a user inputs a search word through the service information search interface, receiving the input search word, searching out related release information from the index database according to the search word and the geographic position information, and displaying the related release information.
Optionally, the service information received by the information distribution processing unit includes one or more of the following items: service title, publisher name, publisher's contact, service content, service price, and information expiration date.
Optionally, the information search processing unit is adapted to display the found release information whose effective expiration date is not expired.
Optionally, the information search processing unit is adapted to find out from the index database that the geographic location is within a certain geographic range determined by the geographic location information, and the service information is the release information related to the search term.
Optionally, the information search processing unit is specifically adapted to use a place corresponding to the geographic location information as a center, and use a circular area with a preset value as a radius as the certain geographic range; or, the method is specifically suitable for taking an administrative area of a preset level to which the place corresponding to the geographic position information belongs as the certain geographic range.
According to another aspect of the present invention, there is provided an electronic map-based service information distribution and search method, the method including:
responding to an event that a user designates a place on an electronic map, obtaining geographic position information corresponding to the place, and displaying a service information searching interface and a component capable of selecting to enter a service information publishing function;
responding to an event that a user selects to enter a service information publishing function through the component, displaying a service information input interface, receiving service information input by the user through the service information input interface, taking the service information and the geographical position information as a piece of publishing information to establish an index for the service information and the geographical position information, and storing the index into an index database;
and responding to an event that a user inputs a search word through the service information search interface, receiving the input search word, searching out related release information from the index database according to the search word and the geographic position information, and displaying the related release information.
Optionally, the service information includes one or more of: service title, publisher name, publisher's contact, service content, service price, and information expiration date.
Optionally, the finding out and displaying related release information includes:
and displaying the found release information with the effective expiration date unexpired.
Optionally, the searching for relevant release information from the index database according to the search term and the geographic location information includes:
and searching the release information, of which the geographic position is within a certain geographic range determined by the geographic position information and the service information is related to the search word, from the index database.
Optionally, the certain geographic range determined by the geographic location information includes:
a circular area with a place corresponding to the geographic position information as a center and a preset value as a radius;
or,
and the place corresponding to the geographic position information belongs to a preset level administrative region.
The method is characterized in that in response to an event that a user specifies a place on an electronic map, geographic position information corresponding to the place is obtained, and a service information searching interface and a component capable of selecting to enter a service information publishing function are displayed; responding to an event that a user selects to enter a service information publishing function through the component, displaying a service information input interface, receiving service information input by the user through the service information input interface, taking the service information and the geographical position information as a piece of publishing information to establish an index for the service information and the geographical position information, and storing the index into an index database; responding to an event that a user inputs a search word through the service information search interface, receiving the input search word, searching out related release information from the index database according to the search word and the geographic position information, displaying the release information, and fusing the service information into the electronic map search.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a flowchart illustrating a service information distribution and search method based on an electronic map according to an embodiment of the present invention. As shown in fig. 1, the method includes:
step S110, responding to an event that a user specifies a place on the electronic map, obtaining the geographic position information corresponding to the place, and displaying a service information searching interface and a component capable of selecting to enter a service information publishing function.
For example, in one embodiment of the present invention, when a user clicks on the "zoo" station of the subway station on the electronic map of Beijing, the electronic map will show the interface shown in FIG. 2. Fig. 2 is a diagram illustrating an interface when a user designates a place on an electronic map according to an embodiment of the present invention. Referring to fig. 2, a session box is shown on the interface, and there is a control "publish your service information" in the session box, and the control is a component that can select to enter the service information publishing function. And if the user clicks the control for releasing your service information, entering a service information releasing interface. In fig. 2, an input box indicated as "please input a query target" is a service information search interface, and keywords of service information to be searched, such as "rental housing", "second-hand item transaction", and the like, are input in the input box.
Step S120, responding to the event that the user selects to enter the service information publishing function through the component, displaying a service information input interface, receiving the service information input by the user through the service information input interface, using the service information and the geographic position information as a piece of publishing information to build an index for the service information and the geographic position information, and storing the index in an index database.
In one embodiment of the invention, the service information comprises one or more of the following: service title, publisher name, publisher's contact, service content, service price, and information expiration date. Of course, more options can be added as the content of the service information according to the requirement.
In the embodiment of the invention, the indexing process is the same as the inverted indexing of a conventional search engine, and mainly comprises the following steps: each piece of service information (including information of all fields) is used as a result to perform word segmentation on the whole text and establish an index database according to the word segmentation, which is not described herein again.
Step S130, responding to an event that a user inputs a search word through the service information search interface, receiving the input search word, finding out related release information from the index database according to the search word and the geographic location information, and displaying the related release information.
In an embodiment of the present invention, a search information display bar may be disposed on the left side of the electronic map, or the right side may be disposed on the left side of the electronic map, which is only an example.
In an embodiment of the present invention, the finding and displaying related release information includes: and displaying the found release information with the effective expiration date unexpired.
In an embodiment of the present invention, the searching for relevant release information from the index database according to the search term and the geographic location information includes: and searching the release information, of which the geographic position is within a certain geographic range determined by the geographic position information and the service information is related to the search word, from the index database. Wherein the certain geographic range determined by the geographic location information comprises: a circular area with a place corresponding to the geographic position information as a center and a preset value as a radius; or the administrative region of the preset level to which the place corresponding to the geographic position information belongs.
For example, if the user clicks "zoo", a circular area with 2km as a radius around "zoo" is the geographical range of information to be published or searched. Or the zoo is located in the western city of Beijing, and the western city of Beijing is taken as the geographical range of information to be issued or searched.
The sequence of the step S120 and the step S130 is not limited, and depends on the triggering condition of the user.
In the method shown in fig. 1, the service information is fused into the electronic map search, so that the service information release and search based on the electronic map are realized, the geographical position information related to the service information is more visual, and great convenience is brought to users.
In the method shown in fig. 1, after the desired service information is searched, information such as a traffic route to a geographical location related to the service information, and time required for arrival can be viewed by using a function of an electronic map.
The existing electronic map can search geographical positions and a small amount of service information of fixed geographical positions such as hotels, restaurants and the like, but does not have the function of publishing and searching the pipelining service information. For example, the method cannot search the pipelined service life information such as renting, second-hand transaction, recruitment and the like near a certain place. And the user cannot publish his own service information on the existing electronic map. The technical scheme of the invention solves the problems. The user can optionally publish own service information, especially the stream type service information based on the electronic map, and correspondingly can search the stream type service information published by others based on the electronic map.
Fig. 3 is a structural diagram illustrating an electronic map-based service information distribution and search apparatus according to an embodiment of the present invention. As shown in fig. 3, the electronic map-based service information distribution and search apparatus 300 includes:
the interface processing unit 310 is suitable for responding to an event that a user specifies a place on the electronic map, obtaining the geographic position information corresponding to the place, and displaying the service information searching interface and the components capable of selecting to enter the service information publishing function. A specific display can be seen in fig. 2.
The information publishing processing unit 320 is adapted to respond to an event that the user selects to enter the service information publishing function through the component, display the service information input interface, receive the service information input by the user through the service information input interface, index the service information and the geographic position information as a piece of publishing information for the service information and store the service information and the geographic position information in the index database. In the embodiment of the invention, the indexing process is the same as the inverted indexing of a conventional search engine, and mainly comprises the following steps: each piece of service information (including information of all fields) is used as a result to perform word segmentation on the whole text and establish an index database according to the word segmentation, which is not described herein again.
A storage unit 330 adapted to store the index database.
The information search processing unit 340 is adapted to respond to an event that a user inputs a search word through the service information search interface, receive the input search word, find out related release information from the index database according to the search word and the geographic location information, and display the related release information.
In an embodiment of the present invention, the service information received by the information publishing processing unit 320 includes one or more of the following items: service title, publisher name, publisher's contact, service content, service price, and information expiration date.
In an embodiment of the present invention, the information search processing unit 340 is adapted to display the published information with the found effective expiration date unexpired.
In an embodiment of the present invention, the information search processing unit 340 is adapted to find out from the index database that the geographic location is within a certain geographic range determined by the geographic location information, and the service information is the release information related to the search term.
In an embodiment of the present invention, the information search processing unit 340 is specifically adapted to use a place corresponding to the geographic location information as a center, and use a circular area with a preset value as a radius as the certain geographic range; or, the method is specifically suitable for taking an administrative area of a preset level to which the place corresponding to the geographic position information belongs as the certain geographic range. For example, if the user clicks "zoo", a circular area with 2km as a radius around "zoo" is the geographical range of information to be published or searched. Or the zoo is located in the western city of Beijing, and the western city of Beijing is taken as the geographical range of information to be issued or searched.
In summary, according to the present invention, in response to an event that a user designates a place on an electronic map, geographic location information corresponding to the place is obtained, and a service information search interface and a component capable of selecting to enter a service information publishing function are displayed; responding to an event that a user selects to enter a service information publishing function through the component, displaying a service information input interface, receiving service information input by the user through the service information input interface, taking the service information and the geographical position information as a piece of publishing information to establish an index for the service information and the geographical position information, and storing the index into an index database; responding to an event that a user inputs a search word through the service information search interface, receiving the input search word, searching out related release information from the index database according to the search word and the geographic position information, displaying the release information, and fusing the service information into the electronic map search.
It should be noted that:
the algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It will be understood by those skilled in the art that a microprocessor or a Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the electronic map-based service information distribution and search apparatus according to the embodiment of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.